Promptwatch Logo

RAG (Retrieval-Augmented Generation)

RAG is how AI answer engines like ChatGPT search, Perplexity and AI Mode fetch web pages at question time and cite them, deciding which brands appear.
Updated October 15, 2026
AI

Definition

RAG (retrieval-augmented generation) is the pattern in which an AI system searches for relevant documents at the moment a question is asked and writes its answer from those documents, usually with links to them. In AI search, RAG is what turns a chatbot into an answer engine: ChatGPT search, Perplexity, Google AI Overviews and AI Mode, and Microsoft Copilot all retrieve web content before they respond to many questions.

This entry covers RAG as it appears inside AI search products. The technique itself, its 2020 research origin and its components are described under retrieval-augmented generation.

The vendors describe the same basic loop. OpenAI's help center says ChatGPT 'may search the web automatically when your question would benefit from current information', rewrites the prompt into 'one or more targeted queries' for its search partners, and may send more specific follow-up queries after reading the first results (OpenAI). Google says AI Mode breaks a question into subtopics and issues many queries at once, a technique it calls query fan-out. In practice the loop has four steps:

  • Decide whether to retrieve at all. Many prompts are answered from parametric knowledge with no search, which is what grounding rate measures.
  • Turn the prompt into search queries, called grounding queries.
  • Fetch candidate pages from an index, split them into passages, and rerank those passages so only the best few reach the model.
  • Write the answer from the selected passages and attach citations.

The scale is large. Google said at I/O in May 2026 that AI Overviews had more than 2.5 billion monthly users and AI Mode more than 1 billion (Google). OpenAI said on September 29, 2026 that ChatGPT had 1.2 billion weekly users. Each answer that triggers retrieval is a small selection contest in which a handful of sources win.

For GEO, RAG sets the rules of that contest. A page can only be cited if the system can fetch it, if it appears in the results for the queries the model wrote, and if one of its passages survives ranking. That has practical consequences. Crawler access comes first: OpenAI states that sites must allow OAI-SearchBot to be eligible for ChatGPT search results. Ranking in the underlying search results for the rewritten queries comes second, which is why how ChatGPT searches the web matters more than how a user phrases a prompt. Passage quality comes third: a clear, self-contained answer with specific facts beats a long page that only answers the question in aggregate.

Teams measure RAG outcomes by tracking a fixed set of prompts across engines, recording which URLs are cited, and comparing them with the queries each engine ran. When a competitor is cited and you are not, the usual cause is visible in that chain: the model searched for something you do not rank for, could not fetch your page, or found a sharper passage elsewhere.

Examples of RAG (Retrieval-Augmented Generation)

  • A user asks ChatGPT which payroll tools integrate with Xero for a 15-person agency. ChatGPT searches for 'payroll software Xero integration small business' and cites the four vendor and review pages that ranked for that query.
  • A SaaS company accidentally blocks OAI-SearchBot in robots.txt. Its pages stop appearing as ChatGPT search citations, although ChatGPT still names the brand from training data when no search runs.
  • Perplexity answers a question about a product recall announced that morning by citing two news reports, information no model could have learned during training.
  • A GEO team runs the same buying prompt in Google AI Mode and ChatGPT and gets different cited sources, because each product writes its own queries and retrieves from its own index.

Terms related to RAG (Retrieval-Augmented Generation)

Retrieval-Augmented Generation (RAG)

Retrieval-augmented generation is a technique that pairs a language model with a retriever, so each answer is written from documents fetched for that query.

AI

Grounding Queries

Grounding queries are the search queries an AI model writes and runs to find sources for an answer. They decide which pages it reads and can cite.

AI

Query Fan-Out

Query fan-out is how AI search splits one question into several sub-queries, runs them at once and merges the results, so pages compete on each sub-query.

AI

AI Grounding

AI grounding ties a model's answer to verifiable sources, such as live search results or supplied documents, so each claim can be traced and cited.

AI

Parametric Knowledge

Parametric knowledge is what a language model learned in training and stores in its weights. It answers without searching, but cannot cite or update itself.

AI

Grounding Rate

Grounding rate is the share of AI answers built from live retrieved sources rather than the model's memory. It shows which prompts content work can change.

GEO

Reranking

Reranking is the second retrieval stage, where a precise model rescores candidate passages so only the most relevant few reach the LLM that writes the answer.

AI

Source Citation

A source citation is a link or reference an AI answer attaches to show where its information came from. Citations credit pages and can send referral visits.

GEO

ChatGPT Search

ChatGPT Search is the web search built into ChatGPT: it rewrites prompts into search queries, reads results and answers with inline citations to sources.

GEO

AI Mode

AI Mode is Google Search's conversational AI experience. It runs on Gemini, uses query fan-out, and answers multi-step questions with cited links.

AI

Frequently Asked Questions about RAG (Retrieval-Augmented Generation)

Learn about AI visibility monitoring and how Promptwatch helps your brand succeed in AI search.

In AI search, RAG means the engine looks up sources while it answers instead of relying only on what the model learned in training. It rewrites the question into search queries, retrieves pages, selects the most relevant passages and writes a cited answer from them. ChatGPT search, Perplexity, Google AI Overviews, AI Mode and Microsoft Copilot all work this way for many questions.

Be the brand AI recommends

Monitor your brand's visibility across ChatGPT, Claude, Perplexity, and Gemini. Get actionable insights and create content that gets cited by AI search engines.

Promptwatch Dashboard