System design · Free PDF
AI System Design
A framework for the design round and worked cases: support bot, document search, coding agent and more.
Ingestion, chunking, retrieval and reranking, grounding, and how you evaluate the answers.
Free PDF · sent by email the day it’s ready
For engineers asked to design search, Q&A or assistant features over a company’s own documents.
Expect follow-ups on retrieval quality, freshness, access control and evaluation.
What it covers
One of the 16 questions, with its model answer.
RAG design decisions
Model answer
When the knowledge isn't unstructured text that people search by meaning. If the corpus is small and stable, I paste it into the prompt: no retrieval step means no retrieval misses. If the question is structured, like "orders over $500 last month," that's a SQL query behind a tool, because embeddings are fuzzy and the question is exact. If the data changes per request, like an account balance or the user's current plan, I call the live API instead of indexing a snapshot that goes stale. And if it's general, stable knowledge the model already handles well, retrieval only adds latency.
My two sorting questions are: is it structured, and does it change per request? A yes to either usually means a tool, not an index. RAG's lane is semi-stable documents people search by meaning, like a handbook or a help center.
Requirements, architecture, tradeoffs, evaluation and failure modes, in the order you say them.
Prompts worked end to end the way you would answer them at the whiteboard, with the diagram.
The choices interviewers push on, and what each option costs in latency, money and risk.
How the system breaks in production, how you would notice, and what you would measure.
Read it on your phone before the call, or print the sections you want to drill.
The guide isn’t out yet, so chapters and their order may still change.
Free PDF
A model answer for every question, what the interviewer is checking, the follow-up and the mistake to avoid.
Yes. Leave your email and we send the PDF the day it is ready. No payment details, and every email has a one-click unsubscribe link.
The questions page lists every question with a handful of sample answers. The PDF has a model answer for each question, plus what the interviewer is checking, the likely follow-up and the mistake to avoid.
No. It is written from the concepts the role or system depends on. We don’t name companies or claim to know what any one company asks.
It isn’t out yet. Leave your email and we send it the day it is; nothing else arrives before then.
System design · Free PDF
A framework for the design round and worked cases: support bot, document search, coding agent and more.
System design · Free PDF
Agent loops, tools, state and memory, permissions, and how agents fail in production.
System design · Free PDF
Choosing a database, indexing, replication, sharding, consistency and vector stores.