Retrieval-augmented generation
Abbreviated RAG
Source: Lewis et al. 2020 (opens in a new tab)Generation method that retrieves information from an external collection and uses the retrieved material as context while a model produces an answer.
In plain language
Search for relevant material first, then give it to the model while it answers.
In a sentence
- Retrieval-augmented generation supplied the latest policy text before the assistant answered.
- The team tested retrieval-augmented generation with documents that contradicted the model's older knowledge.
Usage note
Retrieval can provide fresher or more specific material, but the answer may still misread it. Check retrieval quality and whether the generated claim follows the passage.
Not to be confused with
- Grounding
This method describes how outside material reaches the generator. Grounding asks whether the answer is actually supported by the supplied evidence.
Why it matters
A retrieved document gives an answer a source to check, but does not make the answer accurate on its own.
See also
- Grounding
Connection of a generated answer to supplied evidence, such as retrieved documents, so its claims can be checked against material outside the model.
- Semantic search
Search for material with similar meaning to a query, commonly using numerical representations of sentences instead of requiring the same words to appear.
- Embedding
Learned numerical representation of an item for a particular task that places related items in a space where software can compare their positions.
- Hallucination
Model output that contradicts, or is not supported by, the source material it should rest on.
Cite this term.
CC BY 4.0, attribution required.
Orbyt Labs, Retrieval-augmented generation (AI Glossary), Nov 27, 2026. https://
Orbyt Labs Glossaries (Dec 1, 2026), https://
Last updated .