Forty minutes left in the interview. The interviewer says: "Design a chatbot that answers customer questions from our product documentation." Most candidates start drawing boxes within ten seconds — vector database, embeddings, LLM — and lose the round right there. This lesson is the alternative: a repeatable structure that turns everything in this course into a forty-minute answer that sounds like someone who has shipped one.
The structure that carries any RAG design round
Six steps, in this order. The order matters more than any individual component, because it demonstrates that you let requirements drive architecture rather than reciting a stack.
| # | Step | The question you're answering |
|---|---|---|
| 1 | Requirements | who asks what, how often, and what does a wrong answer cost? |
| 2 | Ingestion & indexing | how does content become searchable, and stay current? |
| 3 | Retrieval | how does the right chunk reach the top, for every query type? |
| 4 | Generation & guardrails | how is the answer kept grounded, safe and citable? |
| 5 | Quality & operations | how do you know it works — and keep knowing? |
| 6 | Scale & trade-offs | what breaks at 10×, and what did you deliberately not build? |
1 · Requirements — spend the first five minutes here
Ask, don't assume. Users: employees, customers, or both — and does everyone see the same documents? Corpus: how many documents, what formats, how often do they change, are there versions and withdrawals? Volume: queries per day, peak concurrency. Latency: chat UX or batch? Languages. And the one that reshapes everything: what does a wrong answer cost? A wrong cafeteria timing is a shrug; a wrong dosage, refund promise or safety step is a headline.
The cost of a wrong answer sets your refusal threshold, your grounding strictness, and whether a human sits in the loop. Stating that explicitly is the strongest opening move available to you.
2 · Ingestion & indexing
Narrate the pipeline with one decision per stage. Parsing — per format, with extraction sanity checks (a scanned PDF that yields no text must raise an alert, not disappear). Chunking — structure-aware where documents have headings or clauses, 200–500 tokens with overlap otherwise, tables and code kept whole. Enrichment — prefix document and section so fragments carry their context. Metadata — source, section, version, effective date, status, language, and permissions. Embedding — one model, chosen by testing recall on your own data. Maintenance — deterministic chunk ids, event-driven re-index on document change, delete orphans, alert on drift.
3 · Retrieval
Walk the funnel from lesson 6, and saywhy each stage exists for this product: query rewriting if it's conversational; filters first (permissions, product line, current version) so restricted or obsolete chunks never enter the pool; hybrid search because real queries mix natural language with model numbers and codes; fusion by rank; reranking down to 3–5 chunks; and a relevance threshold that allows retrieving nothing.
4 · Generation & guardrails
The prompt carries context, question, a grounding instruction, a refusal rule and a citation requirement — temperature 0. Around it: an input guardrail (PII masking, injection screening, scope filter) and an output guardrail (groundedness check, no-commitment rules, no leaked source names the user shouldn't see). Name the domain's catastrophic promise explicitly — the refund it must never offer, the seat it must never confirm, the medical step it must never invent — and put a check on it.
5 · Quality & operations
Golden set sampled from real questions, including must-refuse and paraphrased cases; recall@k and faithfulness measured separately; LLM-as-judge calibrated against human labels; the suite runs as a regression gate on every change. In production: thumbs-down and escalation rates, refusal-rate monitoring (a spike means the index broke), PII-masked logs of retrieved chunk ids and scores, and a weekly human audit that feeds failures back into the golden set.
6 · Scale & trade-offs — how to finish
Close with three sentences that make the whole answer sound senior. What I'd build first: the MVP — one language, the top documents, basic retrieval, grounding, refusal, golden set. What I deliberately deferred: reranking, semantic caching, agentic retrieval — because I'd add each only when measurement justified it. What breaks at 10×: generation latency and cost, ingestion throughput, hot-shard skew, cache hit rate — and how you'd respond (streaming, model routing, caching, sharding).
Selection-round radar: interviewers grade RAG design rounds on four things: did you gather requirements before designing, did you handle access control, did you say how you'd measure success, and did you name your trade-offs. Miss any one and a technically perfect diagram still scores mid.
A worked example, compressed
"Design a support bot over 10,000 product manuals, 6 languages." — Requirements: public customers, safety-critical instructions (so refusal beats guessing), manuals added weekly, chat latency. Ingestion:parse per product, structure-aware chunking that keeps procedures and tables whole, metadata = product id, model number, manual version, language. Multilingual: a multilingual embedding model so a Hindi question retrieves English manual text; answer in the user's language, cite the source. Retrieval: mandatory model-number filter (a Model X question must never retrieve Model Y — this is the safety-critical detail), hybrid for model codes, rerank to 4. Generation: grounded, cited, refuses when confidence is low, never invents a safety step. Quality: golden set per language from real support tickets; recall@k, faithfulness, refusal correctness. Rollout: top 3 products, 2 languages, measure, expand.
Common mistakes
- Drawing architecture before asking a single requirement question.
- Forgetting access control until the interviewer asks — it reshapes indexing, retrieval, caching and logging.
- No evaluation story: "how would you know it works?" must be answered before it's asked.
- Listing every advanced technique instead of choosing and justifying.
- Describing only the happy path — no failure behaviour, no degraded mode.
- No MVP-vs-later split, so the design sounds like a two-year project.
Quick recap
| Step | Say this |
|---|---|
| Requirements | users, corpus, volume, latency, languages, cost of a wrong answer |
| Ingestion | parse + sanity checks, structure-aware chunks, metadata, deterministic ids, deletes |
| Retrieval | rewrite → filter → hybrid → fuse → rerank → threshold |
| Generation | grounded prompt, refusal, citations, input/output guardrails |
| Quality | golden set, recall@k + faithfulness, regression gate, production monitoring |
| Close | MVP now, deferred later, what breaks at 10× — and why |
Practice Zone — PYQs from real selection rounds
Six MCQs and two full design tasks — the complete multilingual manual bot, then the same brief with a four-week deadline (what ships, what waits, and what must never be cut).
In a RAG design interview, what should you establish BEFORE drawing any architecture?
Asked in

Which requirement most changes the architecture of a document-QA system?
Asked in

You're designing RAG over 50 million documents with 5,000 QPS. Which becomes the hardest problem?
Asked in

How should a well-designed RAG chatbot handle a question that's clearly outside its corpus?
Asked in

Which failure mode should your design explicitly plan for?
Asked in

What's the right way to close a RAG design answer in an interview?
Asked in

Design tasks:
"Design a chatbot that answers customer questions from our 10,000 product manuals, in 6 languages, with 99% uptime." Give the complete structured answer as you would in the interview.
Asked in

Same brief as above, but the client wants something live in 4 weeks. What ships in the MVP, what is explicitly deferred, and what must NOT be cut?
Asked in

FAQ
How much detail is expected in a 45-minute round?
Cover all six steps, then go deep wherever the interviewer pushes. Spending twenty minutes on chunking and never reaching evaluation reads as narrow; a complete arc with two deep dives reads as experienced.
What if I've never built a RAG system at work?
Build a small one over your own notes, with a 20-question golden set, and speak from that. "In my project, retrieval failed on paraphrased questions until I added hybrid search" is worth more than any amount of theory — and it's a weekend of work.
I finished the course. What now?
Two moves: drill the company-wise RAG PYQ pages like mock interviews, then continue to AI Agents, where retrieval becomes one tool among many and the system starts making its own decisions.
Course complete. Now prove it — Company-wise RAG PYQs: start with TCS →


