Skip to content
GEO and AI search

Retrieval-augmented generation (RAG)

Retrieval-augmented generation (RAG) is a method in which a language model first retrieves relevant documents from a search index or database and then writes its answer using those documents, rather than relying only on what it learned in training. Most AI search products that cite sources work this way.

Also called: RAG

Why it matters to a buyer

RAG is why AI visibility can be improved on a timescale of weeks rather than waiting for the next model to be trained. If an assistant retrieves pages before answering, then a page that is crawlable, current and clearly written can enter its answers soon after it is indexed. For a buyer, it also explains why the same question gets different answers in different assistants: each one retrieves from a different index, so each needs to be checked separately.

How it is measured or applied

For a site, applying RAG means making pages easy to retrieve and easy to quote. The retrieval step needs the assistant's crawler to be allowed and the page to be in the index the assistant searches. The generation step favours passages that answer a question in a few self-contained sentences with specific facts. Measurement looks at retrieval directly where possible, for example server logs showing visits from AI crawlers, and at outcomes, meaning how often each assistant cites the page for a tracked set of prompts.

Sources

  1. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, arXiv (Lewis et al.)

Thirty minutes to see where your site is invisible.

Book a free consultation with Ibrahem and Jeremy. We look at your site on search, AI answers and conversion while we talk, and you leave with a prioritised plan.

30 minutes. No pitch deck. You leave with a prioritised plan.