Skip to content
GlossaryData and knowledge

Retrieval-augmented generation (RAG)

With RAG, an AI system first searches a company's own documents for the matching passages and words its answer on that basis.

RAG combines a search with a language model. For a question, the relevant sections are retrieved from the knowledge base and passed to the model together with the question.

The answer is therefore based on the company's documents, can name its source, and stays up to date without a model having to be retrained.

Example

An employee asks about the travel expense rules for trips abroad and receives the answer with a reference to the section of the policy.

Why it matters

RAG is the usual way of making company knowledge usable for AI. Quality depends on how the documents are prepared, not on the model.

Let's talk about your project.

Describe the task to us. We will give you a professional assessment and suggest a next step.