Chapter 05
Retrieval-augmented generation (RAG)
The single most useful pattern in modern LLM applications: grounding a model in your own documents so it answers from what you gave it, not from what it might have memorised. Built up step by step and shipped as a working Q&A bot.
In this chapter