Tutorials · Chapter C (3/4) · ~8 min
RAG — look it up, then answer
Try it → see it → read → next
RAG makes the AI fetch relevant notes first, then write an answer from them.
Try yourself
Playground
RAG: look it up, then answer
Ask with RAG on, then toggle RAG off to catch guessing.
Recap
What you just did
You compared closed-book guessing with RAG: retrieve relevant docs, then generate an answer grounded in them.
Teach
How it works
See it
- QuestionYour ask
- RetrieveFind docs
- StuffAdd to prompt
- AnswerWith evidence
Look up trusted notes first — then answer with that context
See it is RAG in one glance: question → retrieve docs → stuff into the prompt → answer with evidence. When a policy changes, update the docs — you don’t always retrain the whole model.
Use it
When you'd use this
- Company FAQ / employee handbook bots
- Personal note Q&A
- Product docs that change every sprint
Watch out
Watch out
If retrieval pulls the wrong chunk, the answer can sound right and still be wrong. Bad backpack → bad trip.
Try next
Try this next
Ask a question with RAG off (pure guess) vs on (with a short note attached). Spot where the facts come from.