Why Build an AI Search Simulator?
Rankings don’t tell you whether you’re retrievable. AI Overviews, AI Mode, ChatGPT, and Perplexity all work on some version of retrieval-augmented generation: find the passages that best match the query in embedding space, then write an answer from them. If none of your passages make the retrieval cut, it doesn’t matter where the page ranks in the blue links.
I started testing this in Google Colab, which I wrote up in Analyzing AI Overview Results With Vector Databases. The notebook worked but it didn’t scale to client work, where I need dozens of competing pages indexed and queryable in the same place. So it became an app.
How Are Sites Indexed for the Simulation?
For a target topic, I import every page ranking on the first page of Google (often the second page too), plus every URL linked in the AI Overview and AI Mode answers. That’s the real competitive set: the pages Google already ranks and the ones AI search already cites. The Importer takes them as a list of URLs or XML sitemaps (sitemap index files get followed recursively), and each page goes through four steps before it’s searchable.
| Step | What happens | Why it matters |
|---|---|---|
| Fetch | Pages are loaded with JavaScript executed. | Single-page apps get indexed as users see them, not as an empty shell. |
| Clean | Scripts, styles, nav, header, and footer are stripped and the HTML is converted to Markdown. | Boilerplate repeated on every page would otherwise match every query. |
| Chunk | Layout-aware chunking keeps each heading with the content under it and keeps tables and lists intact. | Fixed-size chunking splits answers in half. Retrieval works on passages, so passage boundaries matter. |
| Embed & store | Each chunk is embedded with Gemini (gemini-embedding-001) and stored in Qdrant with cosine distance, plus page metadata: title, headings, description, schema. | Search results can be filtered and reported by URL and domain, not just by raw vector. |
Re-importing a URL replaces its old chunks, so a page can be edited, re-imported, and re-tested in a couple of minutes.
How Does the Simulation Model AI Retrieval?
Passage search with a dynamic relevance score
A query is embedded with the same model and matched against every passage in the collection. Raw cosine similarity is the starting point, not the final answer. The dynamic score adds credit for word overlap with the query and for coverage of the query’s entities (extracted with the Google Cloud Natural Language API), because a passage that names the right things tends to get cited over one that’s merely in the right neighborhood. Results are labeled Strong, Likely, or Possible.
Query fan-out simulation
AI Mode doesn’t search for your query. It searches for a dozen variations of it. The simulator has Gemini generate fan-out variations (reformulations, comparisons, follow-up questions), runs every one against the collection, and ranks domains by how often and how high they get retrieved. A domain that shows up for one variation is lucky. A domain that shows up for most of them owns the topic. The Query Fan-Out Analyzer is the free, single-page version of the same idea.
AI Overview source tracing
Paste the text of an AI Overview and the simulator works backward: it chunks the answer, searches each piece against the collection, and ranks the passages most likely to have been used as sources. It’s the fastest way to answer “why did they get cited and not us” with something better than a guess.
AI answer grounding check
Optionally, each top passage gets checked by Gemini with Google Search grounding for whether its claims hold up. Passages that fail get pushed below the ranked list. AI systems increasingly cross-check sources, and a passage that’s semantically perfect but factually shaky is a liability.
Can You Test Content Before Publishing?
Yes, and that’s the part I use most. Content Testing takes a draft that isn’t live yet and runs it against the indexed competition.
- Fan out the target query into a couple dozen variations.
- Retrieve the top passages from the collection for each variation.
- Score the draft against each variation and slot it into the competitor ranking.
- Simulate three answer formats (a classic AI Overview, a Web Guide, and an AI Mode response) with Gemini, written from the top sources.
- Count citations by domain across all three, and roll citation rate and prominence into an AI visibility score per domain.
The output shows where the draft lands against competitors for every variation, which variations it misses entirely, and which domains get cited in the simulated answers. That’s a punch list you can act on before the page ships, not after it fails to get cited.
How Is Entity Coverage Measured?
For any result, the simulator lists which of the query’s (or AI Overview’s) entities a passage covers and which it’s missing. A passage that matches the topic but skips the named things an answer needs is a near miss, and near misses are the cheapest wins in AI search.
What Doesn’t the AI Search Simulator Do?
- It isn’t Google’s index. It only knows what gets imported. Loading every page-one result and every URL the AI answers cite covers the pages that matter for a query, but a page outside that set won’t show up in the simulation.
- The AI answers are simulations. They’re written by Gemini from the retrieved passages, following the formats Google uses. Directionally useful, not a prediction of the exact answer Google will show.
- Similarity isn’t authority. Real systems weigh links, brand, freshness, and engagement too. A passage can win the retrieval simulation and still lose in production to a stronger domain.
- Grounding scores are model judgments. They’re a useful flag for weak claims, not a fact check.
When Is AI Search Simulation Useful?
- Before publishing a page that has to earn AI citations. Test the draft against what’s already retrieved, fix the gaps, re-test.
- After losing an AI Overview citation. Trace the current answer back to its likely sources and compare passages.
- When benchmarking competitors. Index the first page of results and every AI-cited URL, then run the fan-out to see who actually owns the topic in embedding space.
- During content consolidation. If two of your pages keep getting retrieved for the same variations, that’s cannibalization in the place it now matters most.
Working With Me on AI Search Visibility
The AI Search Simulator runs on client engagements as part of my AI SEO consulting. Indexing is the easy part. The work is choosing the right competitor set, interpreting why one passage gets retrieved over another, and rewriting content so it gets cited without reading like it was written for a machine. If you want to see how your site holds up, feel free to reach out.