Search queries assistants generate
When an AI assistant answers a question using the web, it rarely sends the user's wording to a search engine unchanged. Documentation from OpenAI, Google, Microsoft and Anthropic describes systems that analyze the prompt and then generate one or more of their own search queries, often several in sequence or in parallel.[1][2][3][6] The generated queries, not the original prompt, determine which pages the assistant retrieves and can later cite.[3][5]
Overview
Assistants that consult the web sit between a user's natural-language prompt and a search index. Rather than passing the prompt through, documented systems analyze it and construct their own queries: OpenAI states that ChatGPT search "typically rewrites your query into one or more targeted queries" that it sends to search providers.[1] Microsoft describes the same pattern for Copilot, where the generated query "is different from the user's original prompt" and "consists of a few words informed by the user's prompt".[3] Google documents a "query fan-out" technique in which AI Overviews and AI Mode issue "multiple related searches across subtopics and data sources" to develop a response.[2]
This step matters because the generated queries, not the user's phrasing, decide which documents enter the model's context. That connects the topic to retrieval-augmented generation and to grounding and web search tools, since grounding is what lets a model cite verifiable sources beyond its knowledge cutoff.[5] It also sits alongside what the model already knows from pretraining, a distinction covered under parametric knowledge vs. retrieved context.[5]
Research on browser-assisted question answering predates current products. The WebGPT paper describes fine-tuning GPT-3 to answer long-form questions "using a text-based web-browsing environment, which allows the model to search and navigate the web," with models required to collect references in support of their answers.[7] That work was trained and evaluated on ELI5, a dataset of questions asked by Reddit users.[7]
Query rewriting in ChatGPT
OpenAI's help documentation states that ChatGPT may search the web automatically when a question would benefit from current information, and that users can also start a search manually from the tools menu.[1] When ChatGPT search partners with other search providers, it typically rewrites the query into one or more targeted queries sent to those providers.[1]
OpenAI gives a worked example: a biotech researcher asking "what's the latest on the development of drugs that target CCR8 for cancer?" might cause ChatGPT to initially query a search partner using "CCR8 immunotherapy drug development 2025".[1] After reviewing the initial results, ChatGPT search may send additional, more specific queries to other providers, such as "CHS-114 conference 2025".[1] The rewrite can also absorb context the user never typed: general location inferred from an IP address can turn "What are some good restaurants near me?" into "top restaurants San Francisco".[1] If memory is enabled, saved memories may influence the rewrite, so a user known to be vegan and based in San Francisco may trigger a search for "good vegan restaurants San Francisco".[1] These behaviors overlap with memory, location and personalization and with how ChatGPT finds and cites sources.[1]
Query fan-out in Google Search
Google describes AI Mode as using a query fan-out technique, "breaking down your question into subtopics and issuing a multitude of queries simultaneously on your behalf".[4] Google says this allows Search to go deeper into the web than a traditional search.[4] A Deep Search capability in AI Mode is described as using the same technique "taken to the next level," able to issue hundreds of searches and produce a fully cited report.[4]
Google's Search Central documentation repeats the mechanism for site owners: both AI Overviews and AI Mode may use a query fan-out, "issuing multiple related searches across subtopics and data sources," and while responses are generated the models identify more supporting web pages, allowing a wider and more diverse set of links than a classic web search.[2] Google also notes that AI Mode and AI Overviews may use different models and techniques, so the set of responses and links they show will vary.[2] Agentic features use the same approach; Google's example of finding event tickets says AI Mode "will kick off a query fan-out, looking across sites".[4] Related behavior is discussed under how Gemini finds and cites sources.[4]
Search queries in the Gemini API
Google's developer documentation for Grounding with Google Search sets out the workflow step by step. An application sends a prompt with the google_search tool enabled; the model analyzes the prompt and determines whether a search can improve the answer; if needed, it "automatically generates one or multiple search queries and executes them"; it then processes results and formulates a grounded response.[5]
Unusually, the API exposes the queries. The response includes google_search_call and google_search_result steps containing the search queries and search suggestions, alongside inline annotations carrying URL citations.[5] The documented example shows a single generated query, UEFA Euro 2024 winner, for the prompt "Who won the euro 2024?", with citations to two source URLs.[5] Because the raw queries and annotations are visible through the API but not necessarily in consumer interfaces, this is one area where API answers vs. app answers differ in observability.[5]
Generated queries in Microsoft Copilot
Microsoft documents that when web search is enabled, Copilot and Copilot Chat parse the user's prompt and identify terms where web information would improve the response, then generate a search query sent to the Bing search service.[3] The generated query is explicitly described as different from the original prompt and consisting of a few words informed by it.[3]
Microsoft lists what is excluded from the generated query: the user's entire prompt, unless the prompt is very short (the documentation gives "local weather" as an example); entire Microsoft 365 files or uploaded files; entire web pages or PDFs summarized in Microsoft Edge; and any identifying information based on the user's Microsoft Entra ID.[3] The client IP address is sent so Bing can localize results such as nearby weather and events.[3]
Copilot also surfaces the queries. Web search query citations show users "the exact web search queries (derived from the user's prompt) that were sent to the Bing search service" in the linked citation section of the response.[3] Microsoft notes these citations are available only in Copilot Chat, not the Copilot pane inside apps such as Word or PowerPoint, and that the queries remain available in the chat thread for 24 hours.[3] Administrators can audit the exact derived queries through logging and Microsoft Purview DSPM for AI.[3] More context sits under how Microsoft Copilot finds sources.[3]
Multi-step search in Claude
Anthropic's web search tool documentation describes a loop rather than a single lookup: Claude determines when to search based on the prompt, the API runs the searches and returns results, and "this process can repeat multiple times throughout a single request" before Claude gives a final response with cited sources.[6] Anthropic says Claude searches when a request depends on information that is current, changing or outside its training data, including recent events, current prices or statistics, and information about specific organizations, people or products that might have changed.[6] It answers directly for stable knowledge such as established facts, math and coding concepts, creative writing, analysis of content already supplied, and conversational turns.[6]
Developers can control volume. The max_uses parameter limits the number of searches in a single turn, and Anthropic states that "single-fact queries typically use 1–3 searches; comparative or multientity research can use 10 or more," with failed searches counting against the limit.[6] Search can also be constrained by allowed_domains or blocked_domains and localized with a user_location object.[6] Later tool versions add dynamic filtering, where Claude writes and runs code that filters results before they reach the context window, so only relevant content is kept.[6] Further detail appears under how Claude finds and cites sources.[6]
What this means for site owners
Because the assistant writes the query, pages compete against the system's reformulation of a topic rather than the user's literal phrasing. Google's guidance for site owners is that the same foundational SEO practices apply to AI features: meeting technical requirements for Search, following Search policies, and creating helpful, reliable, people-first content.[2] To be eligible as a supporting link in AI Overviews or AI Mode, a page must be indexed and eligible to appear in Google Search with a snippet, and Google states there are no additional technical requirements.[2]
Practical items Google lists include allowing crawling in robots.txt and in any CDN or hosting infrastructure, making content findable through internal links, keeping important content in textual form, and ensuring structured data matches visible text.[2] Access controls matter too: robots.txt directives for Googlebot govern crawling for Search, while nosnippet, data-nosnippet, max-snippet and noindex limit what is shown, and Google-Extended relates to training and grounding in some other Google systems.[2] Site owners tracking requests from automated clients may find AI crawler and fetcher reference and reading server logs for AI fetchers relevant.[2]
Measurement is affected as well. Google reports that sites appearing in AI features are included in overall search traffic in Search Console's Performance report under the "Web" search type.[2] Finally, OpenAI cautions that search results and citations "can be incomplete, outdated, or incorrect," and advises opening a cited source to check that it supports the answer.[1]
Common questions
What is query fan-out?
Google describes query fan-out as breaking a question down into subtopics and issuing a multitude of queries simultaneously on the user's behalf.[4] Its Search Central documentation defines it as "issuing multiple related searches across subtopics and data sources" to develop a response, used by both AI Overviews and AI Mode.[2] Google says the Deep Search capability in AI Mode takes the same technique further and can issue hundreds of searches.[4]
Does ChatGPT search for my exact prompt?
OpenAI states that when ChatGPT search partners with other search providers, it typically rewrites the query into one or more targeted queries sent to those providers.[1] The documented example turns a question about CCR8 cancer drugs into the query "CCR8 immunotherapy drug development 2025," then possibly a follow-up such as "CHS-114 conference 2025".[1] Approximate location from an IP address and, if enabled, saved memories can also shape the rewritten query.[1]
Can I see which searches an assistant ran?
It depends on the product. Microsoft Copilot Chat shows the exact web search queries derived from the prompt in the linked citation section, though only in Copilot Chat and only for 24 hours in the chat thread.[3] The Gemini API returns google_search_call and google_search_result steps containing the search queries.[5] OpenAI's help documentation describes query rewriting and lets users open cited sources, and notes that a response's Sources control, when available, shows cited sources and other relevant links.[1]
Does an assistant run more than one search per question?
Often yes. Anthropic says the search process "can repeat multiple times throughout a single request," with single-fact queries typically using one to three searches and comparative or multientity research using ten or more.[6] Google's fan-out issues many queries at once,[2] and the Gemini API documentation says the model generates "one or multiple search queries".[5]
Can developers limit how many searches a model performs?
In Anthropic's web search tool, the max_uses parameter caps the number of searches in a single turn, and failed searches count against that limit.[6] Triggering is also steerable through the system prompt, so a developer can encourage Claude to search more readily or to answer directly.[6] Domain allow lists and block lists further restrict which sources results can come from.[6]
See also
- Retrieval-augmented generation
- Grounding and web search tools
- AI crawler and fetcher reference
- Position bias and "lost in the middle"
- Mentions, citations and recommendations
- How assistants choose what to cite
References
- ^ a b c d e f g h i j k l m n o p q "Searching the web with ChatGPT". OpenAI Help Center. Retrieved November 2026.
- ^ a b c d e f g h i j k l m n "AI features and your website". Google Search Central. Retrieved November 2026.
- ^ a b c d e f g h i j k l m n o p "Data, privacy, and security for web search in Microsoft Copilot and Microsoft Copilot Chat". Microsoft Learn. Retrieved November 2026.
- ^ a b c d e f g h "AI in Search: Going beyond information to intelligence". Google (The Keyword). Retrieved November 2026.
- ^ a b c d e f g h i j "Grounding with Google Search". Google AI for Developers. Retrieved November 2026.
- ^ a b c d e f g h i j k l m n "Web search tool". Anthropic (Claude Platform Docs). Retrieved November 2026.
- ^ a b "WebGPT: Browser-assisted question-answering with human feedback". Nakano et al., arXiv. Retrieved November 2026.