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).