RAG (Retrieval-Augmented Generation)
5 min read.
Run retrieve → augment → generate as an animated pipeline, see why grounding beats a frozen model when facts change, peek at the offline indexing half, and diagnose where RAG breaks.
Think of it this way: RAG is an open-book exam: instead of memorizing everything (retraining), the student looks up the relevant pages at question time and answers from them — citing the page.
Press Play to run the pipeline.
UserWhat is our refund window?
Document store
Augmented prompt
Not built yetAnswer
Waits for the context.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Trace a RAG request
Order what happens when a question arrives.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
- 6Drop a step here
Quiz
20 questionsWhat are the three core steps of RAG?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.