Skip to content

AI Glossary · Concepts

What is Retrieval-Augmented Generation (RAG)?

Retrieval-Augmented Generation (RAG)

Retrieval-augmented generation (RAG) retrieves external information and supplies it to a model when generating an answer. It can provide current or private evidence without retraining the model, but retrieval alone does not guarantee factual accuracy.

Also known as: RAG

· Updated · Chain of Thought

RAG & Retrieval

  • 4 explainers
  • 8 episodes
  • 1 source

A support assistant can retrieve the current returns policy, put the relevant passage beside a customer’s question, and ask the model to answer from it. The policy can change independently of the model’s weights. The original RAG paper combined a pretrained generator with a dense retriever over an external document index, then fine-tuned the generator and the retriever’s query encoder together.

Retrieval need not mean nearest-neighbor vector search: systems can use keywords, structured queries, graphs, or combinations. What makes the pattern RAG is supplying retrieved information to generation.

Example: a correct document about the wrong product can still produce a wrong answer. Check that the retrieved evidence covers the question, that the model’s claims follow from it, and that the user is allowed to see it. Faithfulness and answer relevance measure different parts of that problem.

Bob van Luijt’s episode 8 discussion at 6:03 explains how retrieval can grow into an agent feedback loop. The RAG evaluation guide helps separate missing evidence from a generation error.

See AI vocabulary in plain English for this term alongside the other language of models, data, agents, and infrastructure.

Sources

Go deeper

From the conversation