Skip to content

Glossary term

What is retrieval augmented generation (RAG)?

By Last updated 

Definition

RAG (Retrieval augmented generation): Retrieval augmented generation (RAG) is a method where an AI system first retrieves relevant documents, then writes its answer using them as source material.

Definition

Retrieval augmented generation (RAG) is a method where an AI system first retrieves documents relevant to a question, then generates its answer using those documents as context. The term comes from a 2020 research paper by Lewis and colleagues.

How it works

  1. Retrieve: search an index for passages that match the question.
  2. Augment: add the best passages to the model's input.
  3. Generate: write an answer grounded in those passages, often with citations.

Why it matters for AI visibility

AI search features work in a similar way: they find pages, then write an answer from them. If your page is not retrieved, it cannot be cited. That is why crawlability, clear structure and passages that answer one question well matter for GEO.

Key takeaways

  1. RAG combines a search step with a writing step.
  2. AI search tools use it to answer with current information and citations.
  3. To be cited, your page must first be retrievable and relevant.

Frequently asked questions

Why does RAG matter for GEO?

In RAG systems, the model can only quote what the retrieval step finds. Being crawlable, indexed and clearly relevant to the question decides whether your page is even considered.

Does RAG stop AI from making things up?

It reduces the risk by giving the model real sources, but it does not remove it. Models can still misread or misquote a source.

Back to the glossary