Grounding and web search tools
Grounding describes the process of connecting a language model to external, searchable content so its answers can be based on retrieved web information rather than only on parametric training data.[1] Google, Anthropic, and OpenAI each document a web search tool that lets their models issue search queries, read results, and return citations for the sources used.[1][2][3] Grounding is closely tied to retrieval-augmented generation and to the broader question of parametric knowledge vs. retrieved context.
Definition
Grounding with Google Search is described as a feature that connects the Gemini model to real-time web content and works with all available languages, allowing the model to provide more accurate answers and cite verifiable sources beyond its knowledge cutoff.[1] The stated goals are to increase factual accuracy by reducing hallucinations, to access real-time information about recent events, and to provide citations that show users the sources for the model's claims.[1] This connects grounding to the wider distinction covered in parametric knowledge vs. retrieved context and to the limits described in knowledge cutoffs.
Google Search grounding in Gemini
When the google_search tool is enabled, the model handles the entire workflow of searching, processing, and citing information automatically: it analyzes the prompt, decides whether a search can improve the answer, generates and executes one or more search queries, processes the results, and returns a grounded response.[1] The returned response includes the model's text answer with inline annotations containing citations, along with google_search_call and google_search_result steps that record the search queries and search suggestions used.[1] Each url_citation annotation links a specific text segment, defined by a start and end index, to a source URL, which the documentation describes as key to building inline citations in an application interface.[1] Grounding with Google Search can also be combined with a separate URL context tool so responses are grounded in both public web data and specific URLs supplied by a developer.[1] This mechanism is one way how Gemini finds and cites sources.
Claude's web search tool
Anthropic's documentation states that the web search tool gives Claude direct access to real-time web content, allowing it to answer questions with up-to-date information beyond its knowledge cutoff, and that the response includes citations for sources drawn from search results.[2] When the tool is added to an API request, Claude determines when to search based on the prompt, the API runs the searches and returns results to Claude, this can repeat multiple times in a single request, and at the end of its turn Claude provides a final response with cited sources.[2] Claude is documented as searching for current or changing information such as recent events, prices, or organization-specific details, while answering directly from stable knowledge such as established facts or coding concepts, and this triggering behavior is steerable through a system prompt.[2] A max_uses parameter can cap the number of searches per turn, and developers can restrict results with allowed_domains or blocked_domains.[2] Newer tool versions add dynamic filtering, where Claude writes and runs code that filters search results before they reach the context window, reducing token use on search-heavy requests.[2] More on this is covered under how Claude finds and cites sources.
OpenAI's web search tool
OpenAI documents a web search tool, configured in the tools array of the Responses API, that allows models to access up-to-date information from the internet and provide answers with sourced citations.[3] As with other tools, the model can choose to search the web or not based on the input prompt, and OpenAI recommends a reasoning model for questions that need several sources because it can refine its searches as it reads results.[3] A response using this tool includes a web_search_call output item recording the action taken, such as a search, an open_page, or a find_in_page action, plus a message output item whose text includes url_citation annotations containing the URL, title, and location of each cited source.[3] By default, the model's response includes inline citations for URLs found in search results, and OpenAI states that an interface displaying web results must show inline citations as prominent, clickable links.[3] Separately, ChatGPT search, launched in 2024, lets ChatGPT choose to search the web based on a user's question or let the user manually trigger a search, with chats including links to sources such as news articles and blog posts shown in a sources sidebar.[4] The underlying search model for that consumer feature is a fine-tuned version of GPT-4o that leverages third-party search providers as well as content from publisher partners.[4] These behaviors are discussed further under how ChatGPT finds and cites sources.
Citations as output
Anthropic's documentation states plainly that its web search response includes citations for sources drawn from search results.[2] These citation mechanisms are what allow an application to render clickable source links next to specific claims, a pattern OpenAI explicitly requires for interfaces built on its tool.[3] How consistently such citations appear, and what they imply for a brand, relates to broader coverage of measuring LLM visibility and to the risk of unsupported claims described under LLM hallucinations about brands.
Developer vs. consumer products
The same underlying search capability can appear in different forms depending on whether it is accessed through a developer API or a consumer-facing application. Anthropic notes that usage differs by product: in the Messages API, a developer explicitly adds a web_search tool with settings such as max_uses and domain lists, while in Claude's managed agent toolset the tool is on by default without those controls.[2] OpenAI similarly separates its newer Responses API web_search tool, which supports controls such as filters and live-access settings, from an existing Chat Completions search integration that always retrieves information from the web before responding, intended for integrations that need to preserve that existing behavior.[3] The consumer-facing ChatGPT search feature, by contrast, lets the assistant decide whether to search based on the conversation, or lets a user manually trigger a search by clicking a web search icon.[4] Perplexity's documentation similarly distinguishes a crawler used to surface and link websites in its search results from a separate fetcher that visits pages only to answer a specific user request, noting that neither is used to collect content for training foundation models.[5] These distinctions are relevant to understanding AI crawler and fetcher reference material and to how Perplexity finds and cites sources, as well as to the general process described in how LLMs learn about brands.
Common questions
What does grounding mean for AI answers?
Grounding connects a model to real-time web content so it can base its response on retrieved information and cite verifiable sources, rather than relying only on what it learned during training, according to Google's documentation.[1] This is intended to increase factual accuracy, reduce hallucinations, and let a model answer questions about recent events beyond its knowledge cutoff.[1] See also parametric knowledge vs. retrieved context.
Do grounded answers always include citations?
Not necessarily in every single response, but the documented tools are built to attach inline citations when search results inform the text. Google's grounded responses include inline annotations with url_citation data linking text segments to source URLs[1] , Anthropic states that its web search response includes citations for sources drawn from search results[2] , and OpenAI states that by default the model's response includes inline citations for URLs found in web search results.[3]
Do the API and the consumer app behave the same?
No. Anthropic explicitly notes that usage differs by product: the Messages API requires a developer to add the web_search tool with configurable settings, while Claude's managed agents have web search on by default with fewer controls.[2] OpenAI likewise separates a newer Responses API tool with hosted search controls from an older Chat Completions search integration that always searches before responding, and its ChatGPT search product lets the assistant or the user decide when to search.[3][4]
Which search does each assistant use?
Gemini's grounding tool is built on Google Search and is configured through the google_search tool type in the Gemini API.[1] Claude's web_search tool is Anthropic's own tool, available in versioned forms with features such as dynamic filtering added over time.[2] ChatGPT's search feature uses a fine-tuned version of GPT-4o that leverages third-party search providers along with content from OpenAI's publisher partners[4] , while the separate Responses API web_search tool is documented independently.[3]
Is grounding the same as retrieval-augmented generation?
Grounding and retrieval-augmented generation describe closely related ideas: both involve supplying a model with retrieved external content so its answer is based on that content rather than only on training data, as shown by Google's description of grounding reducing hallucinations by basing responses on real-world information.[1] For a fuller treatment of the underlying architecture, see retrieval-augmented generation.
See also
- Retrieval-augmented generation
- AI crawler and fetcher reference
- Position bias and "lost in the middle"
- Mentions, citations and recommendations
- How assistants choose what to cite
- Search queries assistants generate
References
- ^ a b c d e f g h i j k l m n o "Grounding with Google Search". Google AI for Developers. Retrieved November 2026.
- ^ a b c d e f g h i j k l m "Web search tool". Anthropic (Claude Platform Docs). Retrieved November 2026.
- ^ a b c d e f g h i j k l "Web search (API guide)". OpenAI. Retrieved November 2026.
- ^ a b c d e f "Introducing ChatGPT search". OpenAI. Retrieved November 2026.
- ^ a b "Perplexity crawlers". Perplexity. Retrieved November 2026.