
RAG explained in plain words
Retrieval-augmented generation fetches relevant documents first, then asks a model to answer with that material in view. It can reduce guesswork, but it is not a guarantee of truth.
Sponsored placement
This space is available for an education-friendly sponsor. No advertiser is listed here yet, and nothing here is an endorsement.
Retrieval-augmented generation, or RAG, is a way to give a language model fresh or private material at the moment you ask a question. Instead of relying only on what the model learned when it was trained, a system first searches a collection of documents — your policies, a product manual, a set of articles — and then writes an answer with the retrieved passages in its context window.
The name, and the core pattern, come from a 2020 paper by Lewis and colleagues. IBM and Google both publish plain explainers of the same idea. In a typical pipeline, your files are split into chunks, each chunk is stored so it can be searched by meaning as well as by keywords, and the question is used to pull back the most relevant pieces. Those pieces are then attached to a prompt that says, in effect, “answer from this material, and say when it is not there.”

RAG is useful when the facts change, or when they were never public. A staff handbook, a contract archive or this week's release notes will not be inside a general model. Retrieval is also a way to stay inside a token limit without pasting an entire library into the chat.
It is not a truth serum. If the search misses the right file, if the file is out of date, or if the model skims a passage and adds a flourish, you can still get a confident wrong answer — a hallucination with a footnote attached. Always open the cited excerpt. For teams choosing whether RAG is even the right project, the AI Use-Case Scorecard on the $10 shelf helps compare ideas on value, risk and data readiness. A RAG starter template is also listed on the shelf. And whatever the architecture, check important answers before you act on them.
When retrieval helps, and when it does not
| Question | How to read it |
|---|---|
| What does RAG actually do? | It retrieves relevant passages, then generates an answer with them in view. It is useful for private or changing material that is not fixed in the model. |
| Does a cited passage make the answer true? | Not automatically. Bad retrieval, stale files or a misread passage can still produce a wrong answer. |
| What should you still do? | Check important claims against the source documents themselves. |
Sponsored placement
This space is available for an education-friendly sponsor. No advertiser is listed here yet, and nothing here is an endorsement.
What to remember
- RAG means: retrieve relevant passages, then generate an answer with them in view.
- It is useful for private or changing material that is not fixed in the model.
- Bad retrieval, stale files or a misread passage can still produce a wrong answer.
- You still need to check important claims against the source documents.
Sources
Figures in this article come from the public sources above and may have changed since. Follow the links for the latest numbers.