Retrieval-Augmented Generation
RAG pairs a language model with a retrieval step so answers draw on fetched sources. What it is, where it came from, and what it means for AI search.
Retrieval-augmented generation (RAG) is a technique where a language model is given passages fetched from an external index or knowledge base and writes its answer from them, instead of relying only on what it learned in training. The 2020 paper that introduced the term combined a pre-trained model with a retriever over Wikipedia.
Is this costing your site traffic?
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
- Free audit in 60 seconds
- Fixes drafted for your review
- ChatGPT, Perplexity, Gemini and AI Overviews tracked
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
- Re-check after big site changes
- Keep this page for reference
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
- Follow the steps below
- Top-traffic pages first
- Check again in a month
How retrieval-augmented generation works
The index can be anything searchable: a company's help center, a document store, or a web search index. In the original paper it was a dense vector index of Wikipedia, queried by a pre-trained neural retriever.
Answer the question using only the passages below.
If they do not contain the answer, say so.
Passage 1 (https://example.com/returns): Items can be returned within 30 days...
Passage 2 (https://example.com/shipping): Standard shipping takes 3-5 days...
Question: Can I return an opened item?- 01
Receive the question
The system takes the user's query, sometimes rewriting it or splitting it into several searches.
- 02
Retrieve passages
A retriever searches the index and returns the passages that best match the query.
- 03
Build the prompt
The passages and the question are placed together in the model's input.
- 04
Generate the answer
The model writes a response conditioned on that text.
- 05
Attach sources
Many products show links or citations to the passages used. That is a product choice, not something the technique guarantees.
What the original research reported
What RAG means for getting cited in AI search
- 01Google: a page must be "indexed and eligible to be shown in Google Search with a snippet" to be a supporting link in AI Overviews or AI Mode. Google says there are "no additional requirements" and no special markup is needed. The site must also be included in Search generative AI features in Search Console.
- 02Google also says these features may use "query fan-out", "issuing multiple related searches across subtopics and data sources", so one question can pull in several pages.
- 03Gemini: Google-Extended is a token for managing whether content Google crawls may be used for training future Gemini models and for grounding ("providing content from the Google Search index to the model at prompt time to improve factuality and relevancy") in Gemini Apps and Grounding with Google Search on Vertex AI.
- 04ChatGPT search: pages from sites that opted out of OAI-SearchBot "will not be shown in ChatGPT search answers", though they can still appear as navigational links.
If the retriever cannot fetch or index your page, the model never sees it. That is the practical link between RAG and crawl access.
Practical steps
Common misconceptions
RAG also does not make an answer correct. The model can misread a retrieved passage, and the passage itself can be wrong. Retrieval does not remove errors.
RAG and grounding overlap but are not identical. RAG names the retrieve-then-generate method. Grounding names the goal of tying output to source material, which RAG is one way to achieve.
Asked a lot.
3 questions people ask next, answered from the sources on this page.
01Does RAG require special schema markup or an llms.txt file?
Google requires no special markup or AI files. A page must be indexed and snippet-eligible, and the site must be included in Search generative AI features in Search Console.
02If I block GPTBot, can ChatGPT search still cite my content?
Yes. OpenAI lists GPTBot and OAI-SearchBot as independent settings. OpenAI says a site can allow OAI-SearchBot to appear in search results while disallowing GPTBot to indicate crawled content should not be used for training its generative AI foundation models.
03Is RAG the same as fine-tuning?
No. Fine-tuning changes a model's weights through more training. RAG supplies retrieved passages to the model alongside the question at query time. The original paper actually fine-tuned its RAG models, so the two can be combined.
Every fact, linked and dated.
arxiv.org
google.com
openai.com
- 01Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (abstract)arxiv.org · checked 2026-10-24
- 02AI features and your websitedevelopers.google.com · checked 2026-10-24
- 03Google's common crawlersdevelopers.google.com · checked 2026-10-24
- 04Overview of OpenAI crawlersdevelopers.openai.com · checked 2026-10-24
- 05Robots meta tag specificationsdevelopers.google.com · checked 2026-10-24
- 06Search generative AI control - Search Console Helpsupport.google.com · checked 2026-10-24
- 07Generative AI performance report (Search) - Search Console Helpsupport.google.com · checked 2026-10-24
- 08Optimizing your website for generative AI features on Google Searchdevelopers.google.com · checked 2026-10-24
Keep learning
All glossaryKnow the term. Now check your site.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.
- 46 fixes shipped without a ticket Brightpipe
- +212% organic clicks in 90 days Ledgerly