AI systems · Technique

Retrieval-augmented generation

Also known as: RAG

What is RAG?

Retrieval-augmented generation (RAG) is a technique in which a language model retrieves relevant documents first and then writes its answer grounded in them.

Most answer engines are RAG systems at heart. That is why chunk-level clarity matters: retrieval works on passages, so a passage that names its entity and states its fact without needing the rest of the page is easier to retrieve and safer to quote.

Related entities

Field notes covering RAG

Sources & identifiers