Blog

AI Agent Glossary

RAG (retrieval-augmented generation)

Fetching relevant documents at query time and placing them in the model's context.

RAG retrieves passages from a corpus (via vector similarity, keyword search or both) and injects them into the prompt so the model answers from current, specific data rather than training memory. In agents it is usually one tool among several ('search the docs') rather than a fixed pre-step, a shift sometimes called agentic RAG.

Source: Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks — Lewis et al., 2020

See the numbers behind this term: AI Agent Statistics 2026.