Flashcard: name the three augmentation sub-decisions in a production RAG pipeline.
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
The augmentation step is prompt construction: decide chunk ordering (head/tail, not raw similarity), write grounding and refusal directives, and tag chunks with numbers so the model can cite.
Imagine you hand a student an open book exam plus a stack of photocopied pages. Just dumping the pages on their desk isn't enough. You decide which pages go on top and bottom, because people skim the start and end and gloss over the middle of a thick pile. You write a sticky note saying 'only answer from these pages, and if they don't cover it, say so.' And you number every page so the student can write 'see page 3' next to each claim. Those three moves are exactly the augmentation step in RAG. Retrieval already found the pages; augmentation is how you arrange and frame them before the model reads. It is pure prompt engineering, and it often matters as much as which pages you fetched.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: define augmentation as prompt construction, then the three decisions (ordering with lost-in-the-middle, directives for grounding and refusal, citation tagging), plus the retrieval-vs-augmentation boundary.
| Stage | What it decides | Example concern |
|---|---|---|
| Retrieval | Which chunks to fetch | Hybrid search, reranking, top-k |
| Augmentation | How chunks enter the prompt | Ordering, directives, citation tags |
| Generation | How the model produces text | Model choice, temperature, decoding |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Confusing augmentation with retrieval. Reranking, embeddings, and vector search are retrieval-stage concerns. Augmentation is everything about how chunks are arranged and framed inside the prompt.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.