Retrieval-augmented generation definition

A method that gives a model relevant source material at answer time.

What it actually is under the hood

Software searches a document index, usually with embeddings and keyword matching, then places selected passages in the model's context window before generation.

Read the related explainer: Retrieval-augmented generation explained