Glossary
Retrieval-augmented generation (RAG)
Also called: RAG, retrieval augmented generation, grounding, AI grounding
Definition
Retrieval-augmented generation (RAG) is a method where an AI model first retrieves relevant documents, such as web pages, and then writes its answer using them, often citing them.
Retrieval-augmented generation (RAG) is the pattern behind most AI search: before writing an answer, the system looks up relevant documents and passes them to the language model, which then answers from that material and can link to it. It lets an assistant use current information that was not in its training data. Google and Cloudflare use the related word "grounding" for this kind of answer-time use.
Where the term comes from
The name comes from a paper by Patrick Lewis and eleven co-authors, Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, first posted on May 22, 2020 and accepted at NeurIPS 2020. It describes "models which combine pre-trained parametric and non-parametric memory for language generation": the model's own learned knowledge plus a searchable index (in the paper, of Wikipedia) "accessed with a pre-trained neural retriever."
Why it matters for your site
In AI search, the "documents" are web pages, and the retriever is a search index or a live fetch. That has three practical consequences:
- Retrieval needs access. If a search crawler such as OAI-SearchBot or PerplexityBot cannot fetch your page, the model never sees it, however good it is.
- Retrieval reads HTML. Content that appears only after JavaScript runs may never reach the model. See client-side rendering.
- Retrieval is not training. RAG uses your page at answer time. Opting out of training (for example, blocking GPTBot) is a separate decision from allowing retrieval.
Some opt-out controls separate these uses. Cloudflare's Content Signals Policy (checked November 19, 2026) defines ai-input as "inputting content into one or more AI models," naming retrieval-augmented generation and grounding as examples, separately from ai-train. Google's Google-Extended token (checked November 19, 2026) covers Gemini training and "grounding (providing content from the Google Search index to the model at prompt time)."
Common misconceptions
"If the AI wasn't trained on my site, it can't mention me." With RAG, an assistant can find and cite a page published yesterday, as long as it can retrieve it.
"Blocking all AI bots only stops training." Blocking retrieval crawlers stops RAG too, which removes you from those assistants' answers. See Should you block AI crawlers?.
Sources
- Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, arXiv 2005.11401, NeurIPS 2020
- Cloudflare, Giving users choice with Cloudflare's new Content Signals Policy, September 24, 2025 (checked November 19, 2026)
- Google, Google's common crawlers (checked November 19, 2026)
Last reviewed November 19, 2026.