---
title: Retrieval-augmented generation
description: >-
  Answering from documents the system retrieves at the time of the question,
  instead of from the model's training data alone. The retrieved passages go
  into the context, and the answer is grounded in them.
url: 'https://www.intentface.com/glossary/retrieval-augmented-generation'
alsoKnownAs:
  - RAG
authors:
  - Valtteri Karesto
publishedAt: '2026-11-28'
updatedAt: '2026-11-28'
site: Intentface
---

# Retrieval-augmented generation

> Answering from documents the system retrieves at the time of the question, instead of from the model's training data alone. The retrieved passages go into the context, and the answer is grounded in them.

Early RAG ran one search for every question and passed on whatever came back. Most implementations now are agentic: search is a tool, and the model decides when to search, for what, and whether to search again.

The model is rarely the weak point. If the retrieved passages are right, most models answer well. If they are wrong, none do. The effort belongs in the search system, and in showing sources the reader can open.

## Read more

- [What is Context Engineering](https://www.intentface.com/stream/what-is-context-engineering)
- [The HARG Truth: AI's Need for the Human Element](https://www.intentface.com/stream/the-harg-truth-ais-need-to-human-element)
- [Duodecim: Building the future of medical knowledge search](https://www.intentface.com/work/duodecim)

## Related terms

- [Context engineering](https://www.intentface.com/glossary/context-engineering)
- [Human in the loop](https://www.intentface.com/glossary/human-in-the-loop)
- [Context window](https://www.intentface.com/glossary/context-window)

All terms: https://www.intentface.com/glossary

