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?

  1. Someone asks a question.
  2. The system searches your own sources, such as policy documents, manuals or a knowledge base.
  3. The relevant passages are passed to the language model.
  4. 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

  1. The quality of the sources determines the quality of the answer.
  2. When versions conflict, it must be clear which source takes precedence: global or local, current or expired.
  3. Give important sources an owner and a date when they were last validated.
  4. 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. →

AI on your own knowledge

We build RAG solutions that answer questions based on your own documents, with source references.

View implementation & advice