RAG retrieves relevant external documents first, then uses them to generate responses, supplementing the LLM’s training data.
Retrieval-augmented generation (RAG) is a technique for enhancing large language models (LLMs) by letting them retrieve and incorporate relevant information from external data sources. In a typical RAG setup, the model first selects documents from a specified collection (such as a database, uploaded files, or web sources) and then uses those retrieved texts to answer the user’s query, supplementing what the model learned during training. The purpose of RAG is to make LLM outputs more grounded and up to date without retraining the model whenever new information becomes available. By retrieving relevant context before generation, RAG can reduce hallucinations and improve factual reliability, and it can also provide cited sources so users can verify what the system used. While RAG improves accuracy, it does not fully eliminate errors—models can still misunderstand retrieved context or generate misinformation, and RAG systems can be affected by misleading or improperly interpreted sources (sometimes called “RAG poisoning”).
RAG retrieves relevant external documents first, then uses them to generate responses, supplementing the LLM’s training data.
RAG is used to improve factual grounding and reduce hallucinations while avoiding frequent model retraining as information changes.
RAG can still fail when the model misinterprets context or when retrieved sources are misleading, so it does not guarantee correctness.
A method that combines document retrieval with an LLM so the model answers using both the user query and retrieved external information.
When an LLM produces incorrect or fabricated information in its response.
A failure mode where a RAG system retrieves factually plausible but misleading sources, leading the model to draw incorrect conclusions from them.
“Can you explain what "RAG retrieves relevant external documents first, then uses them to generate responses, supplementing the LLM’s training data." means in simple terms?”