# 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.

Canonical: https://scaplet.com/glossary/retrieval-augmented-generation

Glossary Glossary · AI search

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.

4 min

read

8

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

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.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fretrieval-augmented-generation%20(%22Retrieval-Augmented%20Generation%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fretrieval-augmented-generation%20(%22Retrieval-Augmented%20Generation%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fretrieval-augmented-generation%20(%22Retrieval-Augmented%20Generation%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fretrieval-augmented-generation%20(%22Retrieval-Augmented%20Generation%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 5 parts, 4 minutes.

1. [How retrieval-augmented generation works 01](#how-retrieval-augmented-generation-works)
2. [What the original research reported 02](#what-the-original-research-reported)
3. [What RAG means for getting cited in AI search 03](#what-rag-means-for-getting-cited-in-ai-search)
4. [Practical steps 04](#practical-steps)
5. [Common misconceptions 05](#common-misconceptions)

_01_How it works

## How retrieval-augmented generation works

A plain language model answers from its parameters, which are fixed at training time. A RAG system adds a retriever: a component that searches an index for passages related to the question and hands them to the model along with the question. The model then writes an answer conditioned on that text.

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.

A minimal RAG prompt, simplified

```
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?
```

1. 01

### Receive the question

The system takes the user's query, sometimes rewriting it or splitting it into several searches.
2. 02

### Retrieve passages

A retriever searches the index and returns the passages that best match the query.
3. 03

### Build the prompt

The passages and the question are placed together in the model's input.
4. 04

### Generate the answer

The model writes a response conditioned on that text.
5. 05

### Attach sources

Many products show links or citations to the passages used. That is a product choice, not something the technique guarantees.

_02_Good to know

## What the original research reported

RAG was introduced in the 2020 paper "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks" by Patrick Lewis and colleagues. The authors describe RAG models as "models which combine pre-trained parametric and non-parametric memory for language generation."

Reported results

According to the abstract, the models "set the state-of-the-art on three open domain QA tasks" and "generate more specific, diverse and factual language than a state-of-the-art parametric-only seq2seq baseline." Those are results on research benchmarks, not a promise about any commercial [AI search](/glossary/ai-search) product.

_03_Checklist

## What RAG means for getting cited in AI search

Products that answer from live web content need a way to find pages at query time, and a retrieval step is the general pattern. Vendors rarely publish their full pipelines, so treat claims about exactly how any engine works with caution. What the vendors do document is which pages can be used.

1. 01 Google: a page must be "indexed and eligible to be shown in Google Search with a [snippet](/glossary/snippet)" to be a supporting link in [AI Overviews](/glossary/ai-overviews) or [AI Mode](/glossary/ai-mode). Google says there are "no additional requirements" and no special [markup](/glossary/structured-data) is needed. The site must also be included in Search generative AI features in [Search Console](/glossary/google-search-console).
2. 02 Google also says these features may use "query fan-out", "issuing multiple [related searches](/glossary/related-searches) across subtopics and data sources", so one question can pull in several pages.
3. 03 Gemini: 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.
4. 04 ChatGPT 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.

_04_Checklist

## Practical steps

First_2_
Check robots.txt for the search bots you want to allow, such as Googlebot and OAI-SearchBot. Training bots like GPTBot are separate settings.

Keep important content as text in the HTML, and make pages reachable through internal links, as Google's AI features guidance recommends.

Next_1_
Write passages that stand on their own: a clear heading, then a direct answer. Retrievers return passages, so a paragraph that only makes sense with the one before it is a weak candidate. This is editorial advice, not a documented ranking rule.

Then_1_
Do not add AI-specific files or markup for the sake of it. Google states you do not need to "create new machine readable files, AI text files, or markup" for its AI features.

_05_Good to know

## 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.

RAG does not bypass crawling

Retrieval needs an index to search. Content that a search bot cannot fetch, or that a page blocks with noindex or nosnippet, is not available to that engine's answers. Google notes that nosnippet also prevents content being used as direct input for AI Overviews and AI Mode.

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ Does 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.

_02_ If 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.

_03_ Is 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.

Sources · 8

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- arxiv.org
- google.com
- openai.com

1. 01 [Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (abstract)](https://arxiv.org/abs/2005.11401) arxiv.org · checked 2026-10-24
2. 02 [AI features and your website](https://developers.google.com/search/docs/appearance/ai-features) developers.google.com · checked 2026-10-24
3. 03 [Google's common crawlers](https://developers.google.com/crawling/docs/crawlers-fetchers/google-common-crawlers) developers.google.com · checked 2026-10-24
4. 04 [Overview of OpenAI crawlers](https://developers.openai.com/api/docs/bots) developers.openai.com · checked 2026-10-24
5. 05 [Robots meta tag specifications](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag) developers.google.com · checked 2026-10-24
6. 06 [Search generative AI control - Search Console Help](https://support.google.com/webmasters/answer/16908024) support.google.com · checked 2026-10-24
7. 07 [Generative AI performance report (Search) - Search Console Help](https://support.google.com/webmasters/answer/16984139) support.google.com · checked 2026-10-24
8. 08 [Optimizing your website for generative AI features on Google Search](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide) developers.google.com · checked 2026-10-24

## Keep learning

[All glossary](/glossary)

[Learn ChatGPT search AI search](/glossary/chatgpt-search) [Related GEO vs SEO (and AEO) Guides](/ai-search/geo-vs-seo) [Read next Generative engine optimization AI search](/glossary/generative-engine-optimization) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Responsive search ads](/glossary/responsive-search-ads) [Retention rate](/glossary/retention-rate) [Review responses](/glossary/review-responses) [Rich results](/glossary/rich-results)

More in AI search
[Extended thinking](/glossary/extended-thinking) [Fine-tuning](/glossary/fine-tuning) [Generative engine optimization](/glossary/generative-engine-optimization) [Grounding](/glossary/grounding) [Knowledge cutoff](/glossary/knowledge-cutoff) [Large Language Model](/glossary/large-language-model) [Model Context Protocol](/glossary/model-context-protocol) [Multimodal AI](/glossary/multimodal-ai) [Prompt caching](/glossary/prompt-caching) [Prompt engineering](/glossary/prompt-engineering) [Prompt tracking](/glossary/prompt-tracking) [Reranking](/glossary/reranking) [Retrieval-Augmented Generation](/glossary/retrieval-augmented-generation) [Semantic Search](/glossary/semantic-search) [Structured outputs](/glossary/structured-outputs) [System prompt](/glossary/system-prompt) [Temperature](/glossary/temperature) [Tokenization](/glossary/tokenization) [Tool use](/glossary/tool-use) [Vector search](/glossary/vector-search) [AI Agents](/glossary/ai-agents) [AI citations](/glossary/ai-citations) [AI detection](/glossary/ai-detection) [AI Hallucination](/glossary/ai-hallucination)

Terms on this page
[AI search](/glossary/ai-search) [Search snippet](/glossary/snippet) [AI Overviews](/glossary/ai-overviews) [AI Mode](/glossary/ai-mode) [Structured data](/glossary/structured-data) [Google Search Console](/glossary/google-search-console) [Related searches](/glossary/related-searches)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
