LLM Reference
AI Glossary
technique

RAG (Retrieval Augmented Generation)

Definition

Retrieval Augmented Generation is a technique that enhances large language models by retrieving relevant external documents or data and incorporating them into the prompt before generation, improving factual accuracy and reducing hallucinations. It combines retrieval systems with generative models to ground responses in real-world knowledge.