Chapter 07 · overview · 1 min read
Generation with Retrieved Context
Retrieval only hands a model raw material; what the model does with that material is a separate problem. This section is about turning a stack of retrieved passages into an answer that's actually grounded in them — ordered sensibly, attributed to its sources, and honest about what the passages don't settle.
Topics in this section:
- Context Assembly and Ordering: deciding what order retrieved passages go in, and why it isn't arbitrary.
- Citation and Source Attribution: tracing a generated claim back to the passage that supports it.
- Handling Noisy or Conflicting Retrieved Context: what to do when retrieved passages disagree, or don't actually answer the question.
- Context-Window Budgeting for RAG: deciding how many passages fit, and which ones to cut when they don't.
- Grounded Generation and Faithfulness: getting a model to answer from what it was given, instead of what it already "knew."