Definition
Retrieval-Augmented Generation, or RAG, is the dominant pattern for building production AI systems on top of proprietary or fast-changing data. Instead of relying on the static knowledge baked into a language model at training time, a RAG system fetches the most relevant passages from a maintained corpus and passes them to the model as context: so the answer is grounded in evidence, traceable to a source, and always as fresh as the underlying documents.