AI QUANTUM OS
Photo: Tony Webster, CC BY 2.0, via Wikimedia Commons. Cropped.

Home / Articles / AI today

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.

AI today · 2 min readBy AI Quantum OSUpdated 22 November 2026

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.”

Video still: What is Retrieval Augmented Generation?
Video: What is Retrieval Augmented Generation?, by Google Cloud Tech. The player loads YouTube only after you press play.

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

QuestionHow 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.

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.

Share this page