Courses / RAG Systems / Module 18
Module 18: Interview prep: RAG system-design rounds
6 h · theory 2 · hands-on 2 · project 1 · revision 1
You will be able to
- Answer RAG concept and debugging questions
- Do a retrieval system-design round in 45 minutes
- Present the capstone in a deep-dive
Capstone increment: Interview kit: one-page brief, architecture diagram and metrics.
Job-description skills: Interview prep · Lab tools: none
1. What RAG interviews test
Expect four kinds of round: concept questions (BM25 versus dense, chunking, metrics), debugging scenarios (“the assistant gave a wrong answer; find out why”), a system-design round (45 to 60 minutes on an unseen brief), and a deep-dive on a project you built. Interviewers mark you on trade-offs and measurement, not on naming tools.
The design round has a shape. Practise it until the order is automatic, so your attention goes to the problem.
2. Concepts to explain cold
Be able to explain each in two minutes with an example: BM25 and why it wins on exact terms; dense retrieval and where embeddings fail; chunking trade-offs and contextual headers; hybrid search and RRF; cross-encoders and re-rank depth; HNSW parameters; recall@k, MRR and nDCG; faithfulness and judge calibration; grounding and “not found”; permission-aware retrieval; semantic caching risks; when GraphRAG or agentic RAG is worth it.
For each, prepare one number from your own capstone. “Contextual headers raised recall@5 from 0.79 to 0.84 on our golden set” is the kind of sentence that ends a follow-up question.
3. Debugging rounds
Use the same order every time: reproduce the failure; check the right content is in the index (ingestion); check where it ranks (retrieval); check it reached the prompt (context assembly); then check the answer against the context (generation and grounding). Name a fix and a regression test for each.
Common scenarios to rehearse: a superseded document outranks the current one; a table answer is wrong because parsing lost the header; Hindi questions fail while English work; a user sees content from a document they shouldn’t; answers got longer and less faithful after a prompt change.
4. The design round, worked through
Brief: an internal policy assistant for a bank with 50,000 employees. Clarify (5 minutes): users and locations, languages, documents and how often they change, permissions, accuracy bar, latency, data residency. Estimate (5): questions per day, peak queries per second, chunks and storage, monthly model cost. Sketch (10): ingestion and query paths. Deep-dive (15): retrieval quality and evaluation, the part interviewers probe hardest. Harden (10): permissions, residency, cost controls, failure modes and rollout.
Finish by naming the metric you’d watch first after launch and the condition that would make you change the design.
5. The project deep-dive
Prepare a one-page brief: the problem, your architecture diagram, three decisions with the evidence for each, the metrics table, one failure you found and fixed, and what you’d do next. Expect “why not X?” for every choice; the ADRs you wrote in Module 15 are your answers.
Practise out loud, timed, at least three times, ideally with someone who interrupts. Fluency on your own project is the strongest signal you can give.
Hands-on: coding window
The coding window and the full VS Code lab are available after you sign in.
Sign in to codeLabs
Lab 18.1: Concept round
Record yourself answering 15 concept questions from this course, two minutes each, with one capstone number per answer. Re-record the three weakest.
Expected: 15 recordings and a list of the answers you improved.
Lab 18.2: Mock design round
Do the bank policy assistant brief in 45 minutes with a peer or the course’s AI professor playing interviewer, following the five-stage shape.
Expected: Your diagram, estimates and the interviewer’s notes.
Lab 18.3: Interview kit (capstone increment)
Write the one-page brief, export the architecture diagram, and put the metrics table and demo link in one place.
Expected: Interview kit: one-page brief, architecture diagram and metrics.
Go deeper
Videos
- AI Engineer System Design Interview: Design a RAG System · DataInterview · ~11 min. A mock AI-engineer system-design interview on designing a RAG system.
- Vector Databases Explained for System Design Interviews · Hello Interview · ~25 min. Vector databases explained for system-design interviews: what interviewers expect you to know.
Further reading
- Book Machine Learning Interviews Book · Chip Huyen. How ML interview loops are run, what each round tests and how to prepare.
- Course The System Design Primer · Donne Martin. The general system-design basics (caching, queues, sharding, back-of-envelope numbers) that every design round assumes.
- Paper Retrieval-Augmented Generation for Large Language Models: A Survey · Gao et al., 2023. A map of naive, advanced and modular RAG and the techniques in each stage.
GitHub repositories
- alirezadir/AIMLInterviews: The ML and GenAI system-design sections; practise two briefs with the five-stage shape.
- donnemartin/system-design-primer: Caching, sharding and replication fundamentals the deep-dive questions build on.
- chiphuyen/ml-interviews-book: How ML interviews are structured and what each round assesses.
Checkpoint quiz
Interview questions
- Design a RAG system for a bank’s internal policies in 45 minutes.
- A user got an answer from a document they shouldn’t see. Debug it.
- Explain hybrid search and re-ranking to a product manager.
- How do you know your RAG system is good enough to launch?
- Walk me through the hardest decision in your capstone and the evidence behind it.
Ask the professor
Sign in to ask questions about this module.
Discussion
Community discussion appears here once giscus is configured (see README).