Retrieval-augmented generation
Lesson 13 of 20 · AI.Micro
Find the relevant documents first, put them in the prompt, then let the model answer from them.
Check yourself
Can I pay by card for a latte?
«Can I pay by card for a latte?» The model was never trained on Café Aroma’s rules. Asked directly, it would guess. RAG fixes that in four stages.
Check yourself
What does the «retrieve» stage of RAG do?
Do it in the browser: a real generative AI tool, a short mission and instant feedback. No install.
Start this lesson — free