AI glossary

Retrieval-augmented generation (RAG)

A technique that retrieves relevant documents and gives them to the model so its answer is based on that information.

Produced with AI assistance from official sources. Last verified: November 26, 2026. How we research

Retrieval-augmented generation (RAG) combines information retrieval with text generation. Anthropic explains that relevant information is first retrieved from a knowledge base, based on the question, and then passed to the model in its context window along with the original query. This lets the model use information beyond its training data, which can improve factual accuracy and allow citations. Google’s glossary describes RAG as a common grounding technique. Its usefulness depends on the quality of the documents retrieved, so the source material still matters.

Official sources: docs.claude.com/en/docs/about-claude/glossary; developers.google.com/machine-learning/glossary (checked 2026-11-26).

← All glossary terms

Botnauta mascot, a robot astronaut

Botnauta Team

Botnauta explains AI tools and software using official sources: prices, plans and limits taken from each tool’s own website, with links and the date they were checked. Articles are written with AI assistance.

About Botnauta