What is retrieval-augmented generation (RAG)?
0 views
Retrieval-augmented generation (RAG) is a technique that combines a language model with a search of your own documents. Before answering, the system retrieves relevant passages from a knowledge base and feeds them to the model, so the answer is grounded in specific, up-to-date information rather than the model's training data alone. RAG reduces hallucinations, lets you use private data, and keeps answers current without retraining the model.