A complete study edition
The RAG Interview
Retrieval, Ranking, Grounding,
and System Design.
From first principles to production trade-offs. Explore the entire Notion study collection, organized for reading, practice, and reference.
41 chapters12 parts7 appendices
Source metadata: Hao Hoang · AI Interview Prep · First edition, 2026.
About this edition and source rights
The curriculum
Build the system.
Understand every trade-off.
Twelve parts, from framing the question to designing systems at scale. Open a part to explore its chapters.
01The RAG Interview LandscapeChapters 1–3
02The Generator SideChapters 4–8
03Prompting and Context ConstructionChapters 9–11
04Representing What You RetrieveChapters 12–14
05Indexing and Vector SearchChapters 15–17
06Retrieval and RankingChapters 18–23
07Query Understanding and Control FlowChapters 24–26
08Training the RAG SystemChapters 27–29
09Generation and Context AssemblyChapters 30–31
10EvaluationChapters 32–34
11Trust, Credibility, and Adversarial RobustnessChapters 35–36
12Scaling, Advanced Variants, and Design DrillsChapters 37–41
Reference & practice
Keep the essentials close.
The book’s starting model
Knowledge in weights.
Evidence in a datastore.
Retrievable knowledge and model parameters play different roles. This original diagram from Chapter 1 introduces the two paths.
Diagram description and source
flowchart TD
Q[query x]
D[D: non-parametric datastore. Capacity grows with stored rows. Write one embedded chunk and row. Reversible in seconds.]
W[[θ: parametric weights. Capacity fixed before training. Write with a gradient pass over every parameter. Entangled and measured in GPU-hours.]]
R[RET returns c_1 through c_k]
G[GEN reads x and c_1 through c_k]
Y[answer y]
Q -->|retrieve| D
Q -->|condition| W
D --> R
R --> G
W --> G
G --> Y
style D stroke-dasharray: 5 5
Take it with you
Read here. Study anywhere.
Prefer your own workspace? Download the complete Notion import, or browse the portable Markdown source on GitHub.
ZIP · 1.5 MB · All 60 book pages, plus import instructions and attribution.
Import instructions · SHA-256 checksum