Retrieval-augmented generation (RAG)

Definition

Retrieval-augmented generation is a method in which relevant company documents are searched first and the retrieved passages are given to the language model as context. The model answers from those passages, which makes answers current, source-linked and auditable.

RAG is the standard way to make a model useful on internal knowledge — price lists, contracts, technical manuals, past correspondence — without retraining anything.

Quality depends on the retrieval layer, not the model: how documents are split, how they are indexed, how access rights are enforced, and whether the answer cites the passage it used.

In practice

  • Keeps answers tied to a named source document and version
  • Respects per-user access rights when the index is built correctly
  • Cheaper and faster to update than fine-tuning

Related terms

Back to the glossary