Skip to content

AI and automation

What is RAG (retrieval-augmented generation)?

Definition

RAG (retrieval-augmented generation): A technique in which an AI model first retrieves relevant information from a source and bases its answer on it, to reduce made-up answers.

Also known as: retrieval-augmented generation, grounded answers

RAG stands for retrieval-augmented generation. If a large language model answers only from what it learned in training, it cannot know a business's current prices, rules or opening hours. With RAG the system first looks for information relevant to the question in a source, such as the business's knowledge base; it gives the passages it finds to the model along with the question; and the model writes its answer based on those passages.

The technique became widely known through a 2020 paper by Lewis and colleagues. Its benefit is twofold: the answer rests on the business's own information, and its source can be shown. That lowers the risk of an answer that is not true (a hallucination).

RAG does not remove the risk. If the information is missing from the source or out of date, the answer can still be wrong, and the model can also go beyond the text it found. That is why keeping the source current, and leaving the final decision on answers to customers with a person, both matter.

Example

Maria S. asks about the return period. The system first finds the knowledge base entry "Returns are accepted within 14 days of delivery", gives that text to the model together with the question, and the model writes its answer based on that entry. The agent sees the suggestion with its source, checks it and sends it.

In UPPU

The agent assistant suggests replies from the conversation and your knowledge base, showing the source, and can prepare drafts on the channels you choose. Nothing is sent on its own.

Sources

Last checked: 22 October 2026

  1. Lewis et al. (2020): Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (accessed 22 October 2026)

Posts that use this term

All terms