AI

Retrieval-augmented generation

RAG

Relevant documents are retrieved at query time and supplied as context, so the model answers from evidence rather than parametric memory.

Retrieval moves the hard problem from the model to the index: what is retrievable, whether authorisation is applied before retrieval, and whether the corpus can be poisoned.

Explained in depth

Implemented by

Learn it in context

Related concepts