Skip to main content

RAG (Retrieval-Augmented Generation)

RAG (Retrieval-Augmented Generation)

  • Agents
  • Stage 3 · Going Deeper
  • refs checked 2026-11-17
What problem it solves

Let the model retrieve external material first, put the found passages into context, and answer from them.

What it is
RAG combines parametric memory (model weights) with non-parametric memory (an external document index): a retriever finds relevant passages, then a generator answers from them. Its value is not only more facts: answers can carry sources, and the corpus can be updated without retraining the model.
A RAG pipeline: documents are chunked and embedded, candidates are retrieved and reranked, then the generator answers with citations.
A RAG pipeline: documents are chunked and embedded, candidates are retrieved and reranked, then the generator answers with citations.
Why it matters

For private or time-sensitive knowledge, fine-tuning is not the only option. RAG is often faster and traceable, but retrieval and chunking errors propagate straight into the answer.

Chinese aliases

Sources
  • Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks ↗
  • Gao et al., Retrieval-Augmented Generation for Large Language Models: A Survey ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →