Engines and search RAG Term 37 of 54

Retrieval augmented generation

Also called RAG

Definition

Retrieval augmented generation is a technique in which a system first retrieves relevant documents and then has a language model write an answer based on them.

What it means

The approach was named in a 2020 research paper by a team at Facebook AI Research and partner universities, and it now underpins most answer engines that cite sources.

A RAG pipeline usually rewrites the question into search queries, retrieves candidate pages or passages, ranks them for relevance, passes the best ones to the model as context and writes the answer with citations. Each stage is a filter. A page that cannot be fetched never reaches the model, and a page that buries its answer may lose to a shorter page that states it plainly.

Why it matters for your brand

Retrieval decides which pages an engine reads before it writes anything. Content that is easy to fetch and splits into clear passages has a better chance of being used.

Example

Fictional brands

For a question about wide waterproof hiking boots, the engine retrieves a magazine field test, a forum thread and two retailer pages. Ridgeline Outfitters’ sizing guide is skipped because its size table loads only with JavaScript.

Related terms

Related pages