Skip to content

Search & knowledge

What is RAG (retrieval-augmented generation)?

Retrieval-augmented generation (RAG) is a method in which a system first retrieves relevant passages from your own sources and a language model then writes an answer grounded in those sources.

Also: Retrieval-Augmented Generation · Retrieval Augmented Generation

A language model only knows what was in its training data. Your contracts, manuals and emails were not part of it. RAG closes that gap without retraining the model: the answer is built from content that is retrieved at the moment the question is asked.

How RAG works

  1. Indexing: documents are split into chunks and made searchable, often also as meaning vectors (embeddings).
  2. Retrieval: for a question, the system finds the most relevant chunks, frequently combining keyword and semantic search.
  3. Generation: the retrieved chunks are passed to the language model together with the question. It writes an answer and points to its sources.

Why RAG matters for companies

RAG makes answers verifiable, because every statement traces back to a passage. It lowers the risk of hallucinations but does not remove it. It also stays current: when a document changes, it is re-indexed, no training required. The deciding question is who may find which sources, so retrieval has to respect permissions.

Example

An employee asks: “What is the notice period in our framework agreement with supplier X?” The system finds the contract and the relevant clause, the model answers in one sentence and links to the page in the PDF. The employee checks the passage with one click.

Read more in our article on enterprise search and RAG.

Glossary

Related terms

Terms that often come up together.

Next step

From definition to practice.

Search, chat, agents and tasks in one platform. Hosted in Frankfurt, every model processed in the EU.

No per-seat fee · From €399 a month · Cancel monthly