Topic 6
Wrap-up, and the rest of the module
A RAG system is a retriever and a generator. Most of this module is about the retriever, because that's where most of the design decisions are, and because, as you saw, it caps what the generator can do.
Scroll sideways to see the whole diagram
This lesson: the shape of a RAG system and when it's worth building.
Text version
- This lesson: the shape of a RAG system and when it's worth building.
- Next, the two families of retriever and how each computes a relevance score.
- Then combining them, and reranking the candidates with a more precise model.
- Then the indexing side: chunking, metadata, and rewriting queries before search.
- Finally, how to measure retrieval and answers separately, and find which step failed.
Predict first
Wrap-up. From this lesson, you can now:
- describe RAG as retrieve-then-generate, and where the pattern and the name come from;
- explain what retrieval adds over training data alone: fresh, per-user, citable context;
- decide when a knowledge base is small enough to put in the prompt, and when it needs retrieval;
- separate indexing from querying, and say which changes require re-indexing;
- explain why retrieval recall caps end-to-end accuracy;
- route questions to no search, a document index or a table.
Quick check