← Back to glossary
Glossary

RAG (Retrieval-Augmented Generation)

Reviewed 9 April 2026 Canonical definition

An architecture pattern where an AI agent retrieves relevant information from external knowledge sources before generating a response. Requires careful access control to ensure the agent only retrieves data it is authorized to see.

See how every agent performs — and make it better

Prefactor helps teams observe, evaluate, and improve their AI agents in production — across every framework and provider.