AI glossary Models & Architecture
What is RAG?
RAG (Retrieval-Augmented Generation)
← All glossary termsRetrieve relevant documents and use them as context to generate the answer.
Explained
RAG augments LLM generation with retrieved documents. Given a query, the system fetches relevant passages from a knowledge base, then passes them to the LLM as context. This grounds answers and reduces hallucinations.