Retrieval-augmented generation is a pattern for getting a language model to answer from your documents rather than only from what it absorbed during training. Instead of fine-tuning a model on your content, you keep the content in a searchable index and supply the relevant parts at question time. That separation is what makes the pattern practical to maintain.
Three Stages, Clearly Separated
Retrieval: when a question arrives, the system searches a prepared index of your documents and returns the passages most likely to contain the answer. Context assembly: those passages are inserted into the prompt alongside instructions that constrain the model to answer from them and cite them. Generation: the model writes an answer grounded in that supplied context.
Most Problems Are Retrieval Problems
If the passage containing the answer never reaches the prompt, no model can answer correctly. It will either decline or produce something plausible and wrong. This is why the course spends as much effort on ingestion, chunking and search quality as on prompting, and why teams who only tune prompts tend to plateau quickly.
When The Pattern Fits
Retrieval suits answers that live in documents which change often, must be attributable to a source, or are private to your organization. It fits poorly when the task is mainly multi-step reasoning or calculation with no reference material, where retrieval adds latency and cost without adding grounding.
Action Step
Write down five real questions your users would ask. For each, locate the exact document passage that answers it. Any question with no identifiable source passage is one a retrieval system cannot answer either, and that is a content gap, not a model gap.
This lesson is educational and reflects general practice. Results depend on your situation, market and effort; adapt what you learn to your own context.