What is Retrieval-Augmented Generation?
Retrieval-Augmented Generation (RAG) is a method in which suitable documents or records are first searched for in a knowledge source in response to a query (retrieval). A large language model receives these hits together with the question and formulates the answer from them (generation).
The benefit: answers are based on current, company-owned content rather than only on the model's training knowledge. Sources can be cited and checked, and the risk of fabricated statements decreases.
Distinction: RAG and training your own model
- With training or fine-tuning, the model itself is changed. This is costly, and knowledge is difficult to update afterward.
- With RAG, the model remains unchanged. Changes in knowledge are made in the source, for example in a manual or a document collection.
- RAG does not prevent errors completely: the result depends on the quality, currency, and access rights of the source.
Example
A service employee asks, during case processing, about the procedure for a special case. The system searches work instructions and process descriptions, passes the hits to the language model, and displays the answer together with the sources. Current work instructions and maintained process documentation are thus the basis of answer quality.
What to watch for
- Permissions: only search content that the requesting person is allowed to see.
- Maintenance of sources: outdated documents lead to outdated answers.
- Citing sources, so that results remain verifiable.
Related terms
- Large language model – the model that formulates the answer.
- Generative AI – the superordinate approach.
- Work instruction – typical knowledge source.
- Organization manual – bundled rules as a data basis.
- AI agents – use RAG as knowledge access.