Skip to content

How AI search works

How AI search engines turn a question into an answer: query fan-out, retrieval, grounding, source selection, and what your website can influence.

Last reviewed

The engines

AI search is any search product that writes an answer instead of, or above, a list of links. The six engines covered in this section differ in details, but most follow the same sequence. Knowing the sequence tells you where a brand can and cannot have an effect.

The pipeline, step by step

1. Query understanding. The system parses the question and decides what kind of help is needed. It may answer from the model alone or decide to search. ChatGPT and Claude make that decision themselves; Google says AI Overviews appear only when its systems judge them useful next to classic results.

2. Query fan-out. The question is rewritten into one or several search queries. Google states that AI Overviews and AI Mode use query fan-out, issuing related searches across subtopics. OpenAI says ChatGPT search “typically rewrites your query into one or more targeted queries” when it uses partner search providers. Microsoft calls the phrases its assistants use “grounding queries”. These queries are not the words the user typed, which is why a page can be retrieved for a query nobody entered.

3. Retrieval. The queries go to a web index or a live fetch. Google uses its own Search index. Microsoft’s Bing index grounds Copilot, and Microsoft says Bing grounding powers many assistants. ChatGPT uses third-party search providers and partner content, and has not published which. A page that is not in the index the engine queries cannot be retrieved.

4. Grounding. The retrieved passages are placed in front of the model, which writes the answer from them. This is retrieval-augmented generation, and the linking of the answer to current sources is called grounding.

5. Answer generation. The model composes the text. It can still add statements from its training, which is one source of a hallucination.

6. Source selection. The system attaches links to some of the sources. Not every source that influenced the answer is linked, and a brand can be named without a link; that is a brand mention and not a listed source.

Training data and retrieval are different things

A model learns from a fixed set of text up to its knowledge cutoff. Retrieval fetches pages at the time of the question. They have different consequences for a brand. What a model says without searching reflects the training data, which you cannot edit, and changes only when a new model is released. What it says with search reflects pages available now, which you can change.

Crawler tokens reflect this split. OpenAI separates GPTBot (training) from OAI-SearchBot (search inclusion) and ChatGPT-User (user-triggered visits). Anthropic separates ClaudeBot, Claude-SearchBot and Claude-User. Perplexity separates PerplexityBot and Perplexity-User. Allowing search while refusing training is possible with these. See AI crawlers and robots.txt.

Why answers differ between runs and users

Language models sample their output, so the same prompt can give different wording. More important for brands is that the retrieval steps vary: the rewritten queries differ, the search index changes, and the system may or may not decide to search at all. Location can change results too. OpenAI and Anthropic both say their products may use an approximate location from the IP address, and OpenAI adds that saved memories can influence the rewritten queries when memory is on. Personalization, plan, mode and model choice add more variation. A single answer is therefore an observation, not a measurement. See how AI visibility is measured.

What a brand can influence at each step

  • Query understanding and fan-out: little directly. You can publish pages that answer the sub-questions a buyer would raise: price, alternatives, requirements, local availability.
  • Retrieval: a lot. Allow the search crawlers, keep pages indexable, and put the text in the HTML response so it does not depend on script execution. See keeping text in the initial HTML.
  • Grounding and generation: some. Clear, specific, dated statements are easier to quote correctly. Structured data may help machines parse a page; evidence of its effect on inclusion is mixed. See structured data for AI search.
  • Source selection: limited and uncertain. No vendor has published its selection rules. The academic work that introduced the field, Aggarwal et al. (KDD 2024), tested content changes on generative engines and reported effects that varied by method and domain.
  • Training data: very little in the short term. A brand mention in sources that are widely reproduced online is the only lever, and it works slowly.

The six engines compared

The table reflects what each vendor states on its own pages as checked on 22 November 2026. “Not published” means we found no statement.

Engine Owner Model family Lists sources Live web Ads
ChatGPT OpenAI OpenAI GPT models Yes, when search is used Yes, via search Yes, Free and Go plans
Gemini app Google Gemini Sources button when links exist Yes, via Google Search grounding None announced in the app
Google AI Overviews and AI Mode Google Not published Yes Yes, Search index Ads above and below Overviews
Perplexity Perplexity Several; user can choose on paid plans Yes, numbered Yes Reported phased out
Claude Anthropic Claude Yes, with web search Yes, with web search Not published
Copilot Microsoft Not published Yes Yes, Bing grounding Yes, in Bing AI Overviews and Copilot

How to use this section

Start with the assistants your buyers use. For measurement, see how AI visibility is measured.

Last reviewed

22 November 2026. Each engine entry carries its own review date. Vendors change tokens, features and availability without notice.