Question

The Difference Between Real-Time Retrieval and Training Data in LLM Citations

LLM answers 5 min read

A language model can know about your page in two different ways. It may have learned from it during training, before the model was released, in which case the knowledge is folded into the model itself and usually comes without a link. Or it may fetch the page while answering a question, a process called retrieval or grounding, in which case it can point to the page it used. The two paths behave differently, change on different schedules and respond to different controls. OpenAI, Anthropic and Google each document separate controls for search and for training, and Perplexity says its search crawler is not used for model training.

Real-time retrieval: pages fetched to answer a question

Retrieval happens at answer time. Google describes it directly in its AI optimization guide: AI responses are grounded by “relying on our core Search ranking systems to retrieve relevant, up-to-date web pages from our Search index.” Anthropic describes the same idea from the user’s side. Since Claude gained web search, announced in March 2025, “when Claude incorporates information from the web into its responses, it provides direct citations so you can easily fact check sources.”

Three properties follow from how retrieval works:

  • It can be current. A page published or updated recently can be retrieved as soon as the system’s index includes it.
  • It produces checkable citations. The answer can point to the specific page it drew on.
  • It depends on access. If a site blocks the crawler that feeds a system’s search index, or the page is not indexed, the page cannot be retrieved through that documented path. Some systems also fetch pages at a user’s request through separate agents.

Training data: what the model learned before release

Training, and the tuning that follows it, happens before a model version is released, on large collections of text gathered in advance. Changing a web page does not rewrite what a deployed model has already learned. The crawler pages cited below say which bots collect training data, not what the resulting datasets contain. OpenAI’s earlier research papers do describe their datasets in detail, and they show how such collections were assembled.

For GPT-2, OpenAI’s 2019 paper describes a dataset called WebText, built by collecting “all outbound links from Reddit, a social media platform, which received at least 3 karma.” It contained slightly over 8 million documents, about 40 GB of text, and Wikipedia documents were removed from it.

For GPT-3, the 2020 paper lists the weighting of its training mixture:

Dataset Share of the training mix
Common Crawl (filtered) 60%
WebText2 22%
Books1 8%
Books2 8%
Wikipedia 3%

The authors explain that datasets were “not sampled in proportion to their size, but rather datasets we view as higher-quality are sampled more frequently.” Wikipedia, at 3 billion tokens, was seen about 3.4 times during training. These figures describe models from 2019 and 2020, not the systems in use today, but they show a principle that matters: training data is weighted, and sources judged higher quality count for more.

Knowledge from training has its own properties:

  • It does not change when the source page changes. It changes only when the provider trains or updates the model’s learned weights, so a change to your site today does not alter what a deployed model already learned.
  • It usually lacks a link. The model can state what it learned, but it does not retrieve a page to support it.
  • It can be distorted. Research on references generated from model knowledge alone found telling patterns. In a study published in the Findings of NAACL 2025, Algaba and colleagues asked models to suggest scholarly references without search. The suggestions resembled human citation patterns but showed a stronger bias toward already highly cited papers. The models also generated non-existent references with characteristics similar to real ones.

How the companies separate the two paths

A clear sign that these are distinct paths is that AI companies run different crawlers for each, and let sites control them separately.

Company Search or retrieval Training
OpenAI OAI-SearchBot GPTBot
Anthropic Claude-SearchBot (and Claude-User for user-requested fetches) ClaudeBot
Perplexity PerplexityBot, which the company says is not used to crawl content for AI foundation models None listed
Google Googlebot, which feeds Search and its AI features; Google-Extended also governs grounding in Gemini Apps and Vertex AI Google-Extended token, for future Gemini models

Sources, as of October 2026: OpenAI’s crawler documentation, Anthropic’s crawler help page, Perplexity’s crawler documentation and Google’s crawler documentation.

OpenAI’s documentation makes the separation explicit: OAI-SearchBot surfaces sites in ChatGPT search, GPTBot crawls content that may be used in training, and the two settings are independent. A site can allow one and block the other. Google shows that the line is not always this clean. Its Google-Extended token governs both training for future Gemini models and grounding in Gemini Apps and Vertex AI, while having no effect on inclusion in Google Search, so one control sits on both sides of the table.

Why the distinction matters for citations

Real-time retrieval Training data
When it changes When the page and the index change When the provider trains or updates model weights, not when the page changes
Link to the source Usually yes Usually no
Controlled by Search crawler access, indexing, ranking Training crawler access, for future models
Speed of a robots.txt change OpenAI and Perplexity say about 24 hours Applies to future training only
Main risk Not being retrieved Outdated or distorted knowledge

When you see an AI answer cite your page with a link, retrieval is very likely involved. When an answer mentions your brand without a link, it may be drawing on training, or on retrieved pages it chose not to cite. You often cannot tell which from the outside.

What you can influence on each path

Retrieval responds to work you can do now: allow the search crawlers you want, make sure pages are indexed and rank in the relevant search engines, keep important pages current, and make specific answers easy to find.

Training responds slowly and indirectly. You decide whether training crawlers may collect your content for future models. Beyond that, what a model learns about you depends on the public record: independent coverage, reference sources and genuine discussion. Because training data is weighted toward sources judged higher quality, accurate representation in such sources is likely to matter more than volume.

Decide your crawler policy path by path, because OpenAI, Anthropic and Google give you separate switches for search and for training. Then put most of your effort where results are visible and quick, which is retrieval, while keeping the public record about you accurate for the slower path of training.