What is retrieval-augmented generation (RAG)?
RAG retrieves documents at query time and gives them to a language model to write a cited answer. How ChatGPT, Claude, Google, Bing and Perplexity use it.
In short. Retrieval-augmented generation (RAG) is a method in which an AI system retrieves documents at query time and gives them to a language model to write its answer. Google says AI Overviews and AI Mode use it, under the name grounding, with pages from the Google Search index. RAG lets an answer use pages published after training and cite them.
On this page 10 sections
The evidence
Google says AI Overviews and AI Mode use retrieval-augmented generation, which it also calls grounding, and retrieve pages from the Google Search index.4
4Google Search CentralGoogle Search Central, guide revised Jul 10, 2026.To appear in Google's generative AI features, a page must be indexed and eligible to show in Google Search with a snippet, and the site must be included in Search generative AI features in Search Console.4
4Google Search CentralGoogle Search Central, guide revised Jul 10, 2026.ChatGPT search rewrites a prompt into one or more targeted queries and sends them to its search providers.6
6OpenAI Help CenterOpenAI Help Center.Only 1.5% of URLs from OpenAI's own index appeared in Bing's top 20 results for the same queries.7
7Search Engine LandSearch Engine Land (RESONEO), Aug 17, 2026. 1,200 ChatGPT answers, 88,000 results, 26,900 pages, captured in July 2026.Copilot Studio generative answers rewrite the user's message into a Bing query, then run grounding, provenance and semantic similarity checks on the results.5
5Microsoft LearnMicrosoft Learn, Copilot Studio documentation, updated Oct 28, 2026.ChatGPT search, Claude with web search, Google AI Overviews, AI Mode, Microsoft Copilot and Perplexity all retrieve web content before they answer. Because of that retrieval step, a page can be cited as soon as it is indexed, long before it could reach a model's training data.
Retrieval-augmented generation (RAG) is a method in which an AI system retrieves documents at the time of a query and passes them to a language model. The model uses them to write its answer, as Google Cloud's explainer on RAG describes.1 Without retrieval, a model can answer only from what it learned in training.
#Why language models need retrieval
Retrieval lets an AI answer use your newest pages and link to them. Training fixes the weights of a model, and the model has no information about events after its training data ends, a date called its knowledge cutoff. A model asked about a later event can decline to answer, or, as IBM's explainer on retrieval-augmented generation notes, it can produce a plausible answer with no basis in fact.2
An answer from the weights alone is called closed-book inference. An answer with retrieved documents in the prompt is open-book inference: the model reads the documents before it writes.
Retrieval fixes three limits of a model that answers from training alone:
- An answer can use pages published after the training cutoff, because retrieval happens at query time.
- Retrieved documents give the model facts to base its answer on. A model with the correct fact in its prompt is less likely to invent one.2
- The system knows which documents it retrieved, so it can cite them. AI search products show links next to their answers for this reason.
#The four steps of a RAG pipeline
Wikipedia's article on retrieval-augmented generation describes four steps that most RAG systems follow.3
- Before any query arrives, the system splits documents into passages, converts each passage into a vector embedding and stores the embeddings in a vector database.
- At query time, the system converts the query into an embedding. A similarity search finds the stored passages whose meaning is closest to the meaning of the query.
- The system adds the retrieved passages to the context window of the model, together with the query.
- The model writes an answer based on the passages. The system cites the passages that the answer used.
A vector embedding is a list of numbers that represents the meaning of a passage. Passages with similar meanings have similar vectors. Vector retrieval compares vectors, often by cosine similarity. A passage can therefore match a query that uses other words. Many systems also run a keyword search next to the vector search.
Document structure affects the first step. A passage that makes one claim under a descriptive heading becomes a chunk that can be matched to a query. A long paragraph that mixes several ideas is harder to match. Once retrieved, it is also harder for the model to use.
#Semantic retrieval and keyword ranking
Keyword work still counts for Google's AI answers, because Google retrieves pages with its core ranking systems. Traditional search ranking uses signals such as keyword matches, links from other sites and user behavior. Vector retrieval uses semantic similarity, which measures how close the meaning of a passage is to the meaning of the query.
In vector retrieval, a passage does not need the exact query terms to match. A passage that explains how transformers handle long sequences can match a query about transformer attention and long context in different words. A passage that repeats keywords without answering the question matches poorly.
Many retrieval systems use both methods. Microsoft's documentation of hybrid search in Azure AI Search describes one request that runs full-text search and vector search in parallel and merges the results with Reciprocal Rank Fusion.15 Anthropic's post on Contextual Retrieval describes RAG systems that find chunks with BM25 keyword matching and with embeddings, then combine the two lists. Anthropic notes that embeddings can miss an exact match, such as an error code, that BM25 finds.16
Google's AI features retrieve pages with Google's core Search ranking systems, as the next section shows. Google's page on how it ranks results says the most basic signal that information is relevant is content that contains the same keywords as the search query.14 So keyword matches, links and other ranking signals can affect which pages reach a Google AI answer. Semantic search and keyword search compares the two methods in more detail.
#Grounding in Google AI Overviews and AI Mode
Google's guide to generative AI features in Search, revised July 10, 2026, says these features use RAG, a technique Google also calls grounding.4
"Retrieval-augmented generation (RAG): A technique (also known as grounding) used to improve the quality, accuracy, and freshness of AI responses by relying on our core Search ranking systems to retrieve relevant, up-to-date web pages from our Search index."
Google's AI answers draw on the same index as its standard results, so there is no separate AI index to get into. Google retrieves from its Search index. To appear in generative AI features, a page must be indexed and eligible to show in Google Search with a snippet. The guide adds a second condition: the site must be included in Search generative AI features in Search Console.4 Google's help page on the Search generative AI control says inclusion is the default for all properties.10 SEO best practices still apply, the guide says.4
The same guide describes query fan-out, in which the model writes related queries to fetch more results for the question. Google's page AI features and your website says both AI Overviews and AI Mode may use it.11 Google's systems do not need content split into small pieces, the guide adds. They can find the relevant part of a page that covers several topics.4
#How each platform uses RAG
The retrieval source tells your team where a page has to be indexed for each platform. The four steps are the same across platforms, and the retrieval source and the number of searches differ.
| Platform | Retrieval source | How retrieval works |
|---|---|---|
| ChatGPT search | OpenAI's own index and third-party search providers | The prompt is rewritten into one or more targeted queries |
| Claude | The web, when web search is on | Claude generates search queries, can run several searches in sequence, and cites its sources |
| Google AI Overviews | Google Search index | Core Search ranking systems retrieve pages, and the model writes a summary with links to them. Google says it may use query fan-out |
| Google AI Mode | Google Search index | Core Search ranking systems retrieve pages. Google says it may use query fan-out: the model generates several related queries and retrieves results for each |
| Microsoft Copilot | Bing | Copilot generates a short search query from the prompt, sends it to the Bing search service and uses the results to compose the answer |
| Perplexity | The web, at query time | Language models such as GPT-6.2 Sol and Claude Sonnet 5.5 interpret the question, and Perplexity summarizes the retrieved sources with numbered citations |
Microsoft describes Copilot web search in Data, privacy, and security for web search in Microsoft Copilot and Microsoft Copilot Chat. When web search is on, Copilot builds a search query from terms in the user's prompt and sends it to the Bing search service. The query is a few words long. Copilot composes its response from the results Bing returns.13 Microsoft documents a similar sequence for generative answers in Copilot Studio in its guide to using public websites to improve generative answers. These answers also use Bing as a knowledge source. The query that reaches Bing is a rewritten version of the user's message, with context from earlier turns of the conversation. After retrieval, the system runs grounding, provenance and semantic similarity checks before it summarizes the results.5
OpenAI's help article on ChatGPT search says ChatGPT search rewrites a prompt into one or more targeted queries for its search providers. After it reviews the first results, it can send more specific queries.6 RESONEO captured 1,200 ChatGPT answers, 88,000 search results and 26,900 distinct pages in July 2026 and published its analysis, Inside ChatGPT's retrieval stack, in Search Engine Land on August 17, 2026. Of the URLs from OpenAI's own index, only 1.5% appeared in Bing's top 20 results for the same queries.7
Perplexity's help article on how Perplexity works says it searches the web in real time and uses language models such as GPT-6.2 Sol and Claude Sonnet 5.5 to understand a question. In Search, a person can leave the model on Best, which picks a suitable model for each question.12 Perplexity also built Sonar, an in-house model that its post introducing the new Sonar says it trained for answer factuality and readability.8 According to Anthropic's announcement of web search on its API, Claude searches the web only when web search is turned on. Without it, Claude answers from its training data.9
#Content requirements that follow from RAG
Caution.Google's guide states the crawlability and non-commodity requirements. The other requirements follow from how the pipeline works. No platform has published a test of each one.
- Make sure retrieval systems can reach the page. Blocked resources, content that needs JavaScript to render, and noindex directives on canonical pages keep a page out of the pipeline. Run the AI page check to see a page's noindex rules and the text it has without JavaScript.
- Write each passage to make one claim that makes sense without the rest of the page. Retrieval works on passages, so a passage that stands alone can be used alone.
- Answer the question each passage is meant for in precise terms. Vague or hedged text matches queries poorly, and so does text heavy with jargon.
- Name the source of each claim. Systems that run grounding checks can use a claim with a named source more easily than an unattributed one.
- Publish what the model cannot already know. If it has a reliable answer from training, retrieval adds less. Original data, research and first-hand experience give the model information it cannot produce alone. Google's guide asks for non-commodity content of this kind.4
What AI platforms say about visibility collects what each platform has published on these points.
#RAG and training data
Training data is what a model learned before its release, fixed at a cutoff date. RAG retrieves content at query time. A page can be retrieved and cited through RAG as soon as it is indexed. That can be long before it could appear in a future training run. The two are separate routes into AI answers. How language models work covers the training side, and Common Crawl covers one of the main sources of training data.
Rankings do not show how often AI answers cite a page. Citation share measures that.
Read next
LLMs
How do large language models work?
LLMs predict text one token at a time from what fits in their context window. Tokens, context window sizes and the lost-in-the-middle effect.
Platforms
How Google AI Overviews and AI Mode select sources
AI Overview sources are pages from Google's Search index. AI Overviews began rolling out in the US on May 14, 2024, after testing as SGE in Search Labs.
GEO
What ChatGPT, Claude, Gemini and Perplexity say about optimization
OpenAI, Anthropic and Perplexity publish crawler rules for ChatGPT, Claude and Perplexity. Google's optimization guide covers Search, and Gemini has none.
Questions
What is RAG search?
RAG search is AI search that retrieves documents at query time and uses them to write the answer. RAG stands for retrieval-augmented generation. It lets ChatGPT search, Google AI Overviews, Microsoft Copilot and Perplexity cite current web pages.
Which AI platforms use RAG?
All major AI search products retrieve web content before they answer. ChatGPT search uses OpenAI's own index and search providers, Google AI Overviews and AI Mode retrieve from the Google Search index, and Copilot retrieves from Bing. Perplexity retrieves from the web at query time.
What is the difference between RAG and training data?
Training data is what a model learned before release, fixed at a cutoff date. RAG retrieves content at query time. A page can be cited through RAG once it is indexed, long before it could appear in a future training run.
Does RAG replace SEO?
No. Google says SEO best practices still apply to its generative AI features, which retrieve pages from the same Search index with its core ranking systems. Rankings do not show how often AI answers cite a page, so measure AI visibility with citation share as well.
Notes
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
About this page
Researched and reviewed by Promptly Found. Reviewed Nov 20, 2026. Next review due Feb 2027.
Cite this page
Promptly Found. (2026, November 20). What is retrieval-augmented generation (RAG)? https://promptlyfound.com/ai-search/rag
Revisions 4
- Corrected the claim that RAG retrieval does not depend on keywords: Google's AI features use core Search ranking systems, and many RAG systems combine keyword and vector search.
- Added Google's Search Console inclusion requirement, said that both AI Overviews and AI Mode may use query fan-out, named the models Perplexity says it uses, and added Microsoft's page on Copilot web search.
- Reviewed, rewritten for clarity and moved to the new site.
- First published.