- Glossary
- Retrieval-augmented generation (RAG)
Glossary term
Retrieval-augmented generation (RAG)
Retrieving relevant documents at request time and adding them to the prompt so the answer is grounded in them.
Also called RAG.
Open lesson 21.1
The four steps: chunk, embed, retrieve, generate · Chapter 21, and 4 more lessons below
In plain words
Keeps answers current and citable without retraining. Most quality problems come from retrieval, not generation.
Taught in
- 21.1The four steps: chunk, embed, retrieve, generateChapter 21, Naive RAG · main lesson
- 0.5Pick your path: exam, builder or no-codeChapter 0, Your first agent in 15 minutes
- 4.1What an embedding isChapter 4, Embeddings and semantic search
- 24.3RAG vs long context vs fine-tuningChapter 24, Agentic RAG
- 29.1Prompting vs RAG vs fine-tuningChapter 29, Fine-tuning
Also in these lessons
Catastrophic forgettingChunk overlapDimensionEmbedding modelExam domainFine-tuningPreference tuningSupervised fine-tuning (SFT)Vocabulary