What is RAG?
A model only knows what it learned. What if the answer is in a file it has never seen? A model learned from text up to a point in time.
Chapters
- 0:00Introduction
- 0:07The problem: The knowledge gap
- 0:17The name: Three words
- 0:27Picture it: An open book
- 0:35One question: How it runs
- 0:45Where it helps: Good uses
- 0:53Not the same: RAG or training
- 1:04Stay sharp: Check the sources
- 1:15Wrap up
Read the transcript
Introduction
A model only knows what it learned. What if the answer is in a file it has never seen?
The problem: The knowledge gap
A model learned from text up to a point in time. It hasn't read your private files. It can't see what changed yesterday. And it may guess, and sound sure.
The name: Three words
Retrieval means finding the right information. Augmented means adding it to your question. Generation means the model writes the answer.
Picture it: An open book
Without it, the model answers from memory. With it, it's more like an open book exam: the right pages are on the desk.
One question: How it runs
You ask a question. The system searches your documents. The best passages go to the model with the question. You get an answer you can check.
Where it helps: Good uses
Company handbooks and policies. Research papers and reports. Product manuals and support notes.
Not the same: RAG or training
RAG hands the model information when you ask. Fine tuning changes the model itself. It's better for style and habits than for facts that change.
Stay sharp: Check the sources
The answer is only as good as what was found. The wrong passage gives a wrong answer. A citation can still be misread. So open the source when it matters.
Wrap up
Find the right pages, then let the model answer from them.
Sources
- arxiv.org/abs/2005.11401
- qdrant.tech/articles/what-is-rag-in-ai
- sbert.net/examples/applications/retrieve_rerank/README.html