Skip to content

Glossary

What is RAG (retrieval-augmented generation)?

The approach behind tools that answer questions from your own documents, and the reason they can still get things wrong.

Updated

Definition

RAG, or retrieval-augmented generation, is a technique where an AI first searches a set of trusted documents and then writes its answer using what it found.

What it means at work

Instead of relying only on what a model learned in training, a RAG system retrieves relevant passages from your files, policies or knowledge base and hands them to the model with your question. This keeps answers tied to your material and lets them show sources. Many ‘chat with your documents’ and internal help-desk tools work this way.

What the sources say

An example

An HR team loads the employee handbook into a RAG-based assistant. A new hire asks about parental leave; the assistant finds the leave section, answers from it and links to the page. If the handbook does not cover the question, a well-built system says so.

A common misconception

RAG reduces made-up answers but does not eliminate them. In the same vein, the Anthropic glossary states that the effectiveness of RAG depends on the quality and relevance of the external knowledge base. If the search pulls the wrong passage, or the documents are outdated or contradict each other, the answer can still be wrong. Good results depend on clean, current source material and on checking cited passages.

Sources

Frequently asked

Is RAG the same as fine-tuning?

No. RAG looks up documents at question time. Fine-tuning changes the model itself through extra training.

// Free · AI automation starter kit

Get the starter kit

The copy-paste prompts and scripts from our guides in one place, plus a checklist for picking the first task worth automating. Free, sent to your inbox.

No spam. Unsubscribe any time by replying “stop”.