# RAG

> Retrieval-augmented generation: the model retrieves relevant documents, then writes an answer from them.

RAG is the engineering pattern behind many answer engines: search first, then write, with citations back to the retrieved documents. The pages that get retrieved are the ones with text the retriever can match.

Canonical: https://agenticsearchauthority.com/learn/glossary/rag
