Definition: what is RAG?

Retrieval-Augmented Generation combines two components that are limited on their own: a retrieval system that finds relevant documents or passages for a query (vector database, web search, internal documents), and a large language model that synthesises an answer from those results. The model does not generate from its frozen training knowledge but from current, verifiable retrieval chunks.

RAG thereby addresses the two structural limits of pure LLM answers: the knowledge cutoff and the tendency to hallucinate. Neither disappears entirely — but the answer gains a checkable source base, and that source base is exactly the stage that Generative Engine Optimization plays on.

The five pipeline stages

  1. Query processing: the user query is rewritten, expanded or decomposed into sub-queries (see query fan-out).
  2. Retrieval: candidate documents are fetched — usually hybrid, combining lexical search (BM25) and vector search over embeddings.
  3. Re-ranking: candidates are re-ordered by relevance, authority and freshness signals.
  4. Context injection: the top-K chunks are inserted into the model's prompt.
  5. Generation: the model writes the answer and attaches citations to the chunks it used.

Each stage is its own filter. A source that is found in retrieval but dropped in re-ranking never appears in any answer — and the answer alone does not reveal at which stage it failed.

Why RAG dominates AI search

Search systems need freshness and verifiability; language models provide language understanding and synthesis. RAG connects the two, which is why it has become the standard architecture of generative search: Perplexity was designed as a RAG system, Google AI Overviews and AI Mode retrieve over the Google index, ChatGPT Search relies on a web index with a Bing component, Bing Copilot directly on the Bing index.

For brands this means: visibility in generative answers is largely retrieval visibility. The training-data layer (what the model “knows”) still matters for brand associations and entity resolution — but which source gets cited is mostly decided by the RAG pipeline at runtime.

The GEO consequence: work at every stage

Content has to survive the whole pipeline, not just one stage:

A gap at one stage devalues the others: perfectly structured content without crawler access is never fetched; perfectly accessible content without chunk structure is fetched but not cited.

Related terms

RAG is the architectural frame for GEO and LLM SEO. The retrieval stage builds on embeddings and vector search; query decomposition is described under query fan-out; the selection of cited passages under passage ranking. The full technical analysis with an optimisation playbook is in the article RAG & SEO.

Key point

The pipeline decides who gets cited

RAG systems filter in five stages. Visibility in generative answers is not a content contest but a pipeline contest: found, ranked, chunked, cited.


FAQ on Retrieval-Augmented Generation

What distinguishes RAG from a pure LLM answer?

A pure LLM answer comes exclusively from the model's training data — with a fixed knowledge cutoff and no source base. With RAG, the system retrieves relevant documents live before generating and writes the answer on that basis, typically with citations. Freshness and verifiability improve substantially.

Which AI search systems use RAG?

Practically all of them: Perplexity was designed as a RAG system, Google AI Overviews and AI Mode retrieve over the Google index, ChatGPT Search uses a web index with a Bing component, Bing Copilot the Bing index. They differ in index base, re-ranking weights and citation logic — not in the basic pattern.

Does RAG eliminate hallucinations?

No. RAG reduces hallucinations because the model writes grounded in retrieved sources — but it can summarise sources incorrectly, use outdated results or misattribute statements. Brands therefore still need to monitor how they are represented in generative answers.

What does RAG mean for content strategy?

Content must survive every pipeline stage: crawlable for AI systems, authoritative enough for re-ranking, decomposable into standalone passages, and quotable verbatim. The QUEST heuristic (Quotable, Unambiguous, Entity-rich, Standalone, Timestamped) is the operational check for the last two stages.