RAG (Retrieval-Augmented Generation)
Read summarized version with
Most RAG failures look like model failures. Almost none of them are.
1. Quick Answer
RAG, retrieval-augmented generation, makes an AI system search your data first and then answer using what it found, so responses are grounded in real sources instead of the model's memory. Answer quality is set by retrieval quality, which is why most RAG failures trace to the pipeline and the data, not the model.
2. What is RAG?
RAG is search plus generation. A question comes in, the system retrieves the most relevant content from your documents, and the model composes an answer from that retrieved evidence. The model is answering an open-book exam with the right pages in front of it, instead of from memory.
The reason this pattern runs most production AI assistants is that it solves three problems at once: the model can use private data it was never trained on, the data can change daily without retraining anything, and answers can cite their sources, which makes them checkable.
The mental model that predicts success with RAG is a pipeline, not a model call. Content is parsed, split into chunks, embedded, and indexed. A query is embedded, matched, and the winners are handed to the model.
