Skip to main content
Chapter 1 Introduction to AI System Design

High-Level vs Low-Level AI System Design

13 min read Lesson 2 / 34 Preview

Two zoom levels, one interview

A senior AI system design interview almost always operates at two zoom levels. High-level design (HLD) answers what are the components and how do they talk to each other? Low-level design (LLD) answers how is one critical component built — its data model, its API, its hot path? You will be expected to switch between them on demand.

What HLD looks like for AI systems

For an LLM-backed product, an HLD usually shows:

  • Edge — clients, gateway, auth, rate limiting, abuse detection.
  • Orchestration — prompt assembly, tool selection, retries, fallbacks.
  • Knowledge — vector store, keyword index, structured DB, freshness pipeline.
  • Models — primary LLM, smaller routing model, embedding model, re-ranker, content filter.
  • Telemetry — eval harness, traces, cost meter, feedback store.

Drawing this in five clean boxes plus arrows is half the battle.

What LLD looks like for AI systems

LLD is where most candidates lose marks. Be ready to specify:

  • Schemas — chunk, embedding, message, run, span, eval.
  • Latency budgets — for example retrieve 80 ms + rerank 40 ms + first token 200 ms.
  • Failure modes — model timeout, partial tool failure, hallucination caught in eval.
  • Hotspots — KV-cache reuse, prompt-cache hits, batch packing.

A practical rule

Open with HLD until your interviewer challenges a component. Then drop into LLD on that component, finish, and pop back up. The next lesson turns this into a repeatable interview script.

Previous Why AI System Design Matters in 2026
Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support