HowDoesAIDoThat?

Glossary / plain-language definition

Retrieval augmented generation (RAG)

Retrieval augmented generation (RAG) finds relevant source material and gives it to an AI model before it answers.

By HowDoesAIDoThatSources checked 11 October 2026
Example

A support assistant retrieves the current returns policy before answering a customer's question.

Imagine a support assistant answering a question about returns. A retrieval system finds the relevant policy passage, then supplies it with the customer's question. The model uses that context to write its answer. IBM explains RAG.

This makes a document collection available without retraining the base model each time a policy changes. Updating the source can change what the assistant retrieves. RAG and fine-tuning can also be used together.

Keep the supporting passage visible, check its date and make sure it answers the question. An outdated policy or a missed exception can still lead to a wrong reply.

For one document, pasting the relevant section into a prompt may be enough. RAG becomes useful when you need to find the right material across a larger collection.

Sources

Primary references checked 11 October 2026.