What is RAG?
In short
RAG stands for Retrieval-Augmented Generation. It is a way of letting AI first look up the right information in your own documents or data sources, and base its answer on that.
How does it work?
- Someone asks a question.
- The system searches your own sources, such as policy documents, manuals or a knowledge base.
- The relevant passages are passed to the language model.
- The model writes an answer based on those passages, ideally with a reference to the source.
Why is it useful?
A language model does not know your organisation. With RAG, AI works with current, internal knowledge instead of general knowledge. Because the answer points to a source, people can also check it.
What to watch out for
- The quality of the sources determines the quality of the answer.
- When versions conflict, it must be clear which source takes precedence: global or local, current or expired.
- Give important sources an owner and a date when they were last validated.
- Make sure the system follows the same access rights as the documents themselves.
Common misconception“With RAG, the answer is always right.”
RAG makes answers easier to check, but not error-free. If outdated or conflicting information sits in the sources, it ends up in the answer too.
Read also: Better prompting helps. But it cannot decide which version of your organisation is true. →
Related terms
AI on your own knowledge
We build RAG solutions that answer questions based on your own documents, with source references.