What is retrieval-augmented generation?
Retrieval-augmented generation (RAG) is a technique in which a language model answers a question using information retrieved at query time from an external source, such as a document index or database, instead of relying only on what it learned in training.
Why it matters
RAG lets a model answer from private, current data and cite its sources, without retraining. The quality of a RAG system depends mostly on retrieval: if the right facts are not found, the model cannot use them.
Example
A support assistant retrieves the three most relevant passages from the product manuals, then writes an answer that quotes them and links to the source pages.