AI Search Optimization: SEO for AI Overviews & Answer Engines · How AI search and answer engines work · lesson 1 of 17 · 14 min
How answer engines retrieve and cite sources
Two ways a model can "know" about you
AI assistants such as ChatGPT, Gemini, Claude, Copilot and Perplexity can produce information about your brand or topic in two broad ways:
- From training data (parametric knowledge): what the model absorbed from text it was trained on. This is frozen at a training cutoff, can be outdated or wrong, and is not directly controllable after the fact.
- From retrieval at answer time (grounding): the system searches an index or the live web, pulls relevant passages, and uses them to write an answer — often with citations linking to sources.
AI search features — Google's AI Overviews and AI Mode, ChatGPT search, Perplexity, Copilot, and assistants when browsing — rely heavily on the second route. That is where optimisation is most practical, and it looks a lot like SEO.
A simplified retrieval-augmented pipeline
Details differ by provider and are mostly not public, so treat this as a conceptual model:
- Interpret the prompt: work out intent, entities and constraints ("best CRM for a 10-person agency in Dubai with Arabic support").
- Expand into sub-queries: many systems issue several searches for different facets. Google has described a "query fan-out" technique for AI Mode, running multiple related searches at once.
- Retrieve candidates: from a search index (Google's own index; Bing's index and others for some assistants; providers' own crawls), sometimes supplemented by live fetches.
- Select passages: rank and extract the most relevant chunks of text from candidate pages — not whole pages.
- Generate: the model synthesises an answer from those passages (and its general knowledge).
- Attribute: it attaches citations, links or source cards to some or all claims.
What this implies for visibility
- You must be retrievable. If a page isn't crawled and indexed by the underlying search system — or is blocked from the crawler that feeds it — it can't be retrieved. Classic technical SEO still gates everything.
- Passages matter. Systems extract chunks. A page where the key answer is buried in paragraph 14 of a meandering intro is less likely to supply a clean passage than one with a clear, self-contained answer under a descriptive heading.
- Sub-query coverage matters. Because prompts fan out, pages that thoroughly cover related facets (pricing, comparisons, requirements, local considerations) have more chances to be retrieved for one of them.
- Trust and consensus matter. When sources disagree, systems tend to favour information corroborated by multiple reputable sources. Your claims about yourself are weighed against what others say.
- Citations are not rankings. An answer might cite five sources, and the order and selection can change between runs, users and days.
Why answers vary
Generative systems are non-deterministic: the same prompt can give different answers and citations. Personalisation, location, conversation history, model versions and index freshness all add variation. That is why measurement (Module 5) relies on repeated sampling rather than a single check.
What we know vs what we infer
| Statement | Confidence | |---|---| | AI search features draw on search indexes and retrieved web content | High — providers say so | | Google's AI features use its core ranking and quality systems, and pages must be indexed and snippet-eligible to be shown as supporting links | High — Google documents this | | Clear, well-structured passages are easier to extract and cite | Reasonable inference, consistent with how retrieval works | | Assistants rewrite prompts into their own search queries before retrieving | High — Google describes query fan-out; Bing Webmaster Tools' AI Performance report shows the "grounding queries" Copilot generated | | Specific "GEO ranking factors" with weights | Low — no provider publishes these; treat such claims sceptically |
Worked example 1: a software firm that never gets recommended
A Lahore-based accounting software firm asks why ChatGPT recommends competitors for "best accounting software for small businesses in Pakistan". Investigation shows: its comparison and pricing pages are client-side rendered (thin for crawlers that don't run JavaScript); its product is rarely mentioned in independent reviews or "best of" articles that retrieval surfaces; and its site never states clearly which local tax requirements it supports. The plan: server-render key pages, publish a clear feature and compliance page with specific facts, and earn coverage in reputable reviews and comparisons. (Illustrative scenario.)
What Google now says officially (2026)
In May 2026 Google published a dedicated guide, Optimizing your website for generative AI features on Google Search. Its message is blunt: AI Overviews and AI Mode are rooted in Google's core ranking and quality systems, so if a page is not technically sound and good enough to rank in classic results, it will not do well in AI answers either. The guide also lists things you do not need to do for Google's AI features: create an llms.txt file, chop content into tiny "chunks", rewrite pages specially for AI, or add special schema. Other engines publish far less, but the retrieval logic above is broadly shared.
Worked example 2: tracing a real answer back to passages
A Manchester wedding-cake bakery (illustrative) asks why AI Mode recommends two competitors for "gluten-free wedding cake Manchester". You run the prompt and open the supporting links. Both competitors have a page with a heading "Do you make gluten-free wedding cakes?" followed by a direct answer, the kitchen's allergen process, prices "from £X per tier" and delivery areas. The bakery's own site mentions gluten-free once, inside a PDF price list. Nothing on its site gives a retrievable passage for the sub-queries "gluten-free", "wedding", "Manchester" and "price". The fix is not an AI trick: publish an HTML page that answers those facets clearly, then re-sample.
Hands-on: map a prompt's fan-out to your pages
Use any assistant to simulate fan-out (it will not reveal a provider's real sub-queries, but it produces a useful coverage checklist):
You are helping me audit content coverage.
Prompt a customer might ask: "{PROMPT}"
1. List 8-12 sub-questions a search system would need to answer to respond well
(price, eligibility, comparisons, location, risks, steps, alternatives).
2. For each sub-question, say what kind of page would best answer it.
Return a table: sub-question | best page type | must-have facts.
Then fill in a coverage table for your site:
| Sub-question | Our URL that answers it | Answer in first 2 sentences? | Facts specific and sourced? | |---|---|---|---| | Does it support Urdu invoices? | /features/urdu-invoicing/ | Yes | Yes | | FBR e-invoicing compatibility? | none | — | — |
Every "none" is a content gap; every "No" is a rewrite. If you have Bing Webmaster Tools, compare this simulated list with the real grounding queries in its AI Performance report — the overlap tells you how realistic your simulation is.
How to measure progress
Track three leading indicators rather than one screenshot: (1) the share of your priority sub-questions with a clear answering passage on an indexed page; (2) crawl activity by search-oriented AI bots on those pages in your logs; (3) citation and mention rates from a repeated prompt panel (Module 5). Rankings in AI answers fluctuate; coverage and accessibility are what you control.
Common mistakes
- Assuming the model's training data is the only thing that matters.
- Testing a prompt once and drawing conclusions.
- Believing there's a secret AI ranking algorithm separate from being crawlable, relevant and trusted.
Video lecture: How answer engines retrieve and cite sources
Lecture coming soon · 12 chapters · about 9 minutes. Read the full transcript below.
- How answer engines retrieve and cite
- Two ways a model 'knows' you
- The retrieval pipeline
- Query fan-out
- Passages, not pages
- Example 1: the Manchester bakery
- Example 2: LedgerLite (illustrative)
- Why answers vary
- Common mistakes
- Watch me do it: trace an answer
- Recap and try this now
- Know vs infer
Lecture transcript
How answer engines retrieve and cite
Picture this. A customer in Lahore types into ChatGPT: which accounting software is best for a small business in Pakistan? Three brands come back, with neat little citation links. Yours is not one of them. Is that luck? A secret algorithm? Or something you can actually diagnose? In this lecture you'll learn how answer engines really retrieve and cite sources, so that by the end you can take any prompt, trace the answer back to the passages it came from, and see exactly where your content fell out of the race.
Two ways a model 'knows' you
First, the big idea. An AI assistant can know about you in two ways. Think of an exam. A closed-book exam is training data: whatever the model absorbed before its cutoff, frozen, sometimes out of date, and not something you can edit after the fact. An open-book exam is retrieval: at answer time, the system searches an index or the live web, pulls passages, and writes from them, often with citations. AI search features lean heavily on the open-book route. And here's the key point. The open book is the web. Your web. That's where optimisation is practical.
The retrieval pipeline
So what happens inside the open-book route? Treat this as a conceptual model, because providers don't publish every detail. One: interpret the prompt, pulling out intent, entities and constraints. Two: expand it into several sub-queries. Three: retrieve candidate pages from a search index, sometimes with live fetches. Four: select passages, not whole pages. Five: generate the answer. Six: attach citations to some of the claims. Notice that steps three and four are basically search and snippet extraction. Which is why classic technical SEO still gates everything.
Query fan-out
Let's zoom into step two, because it changes how you plan content. Google calls it query fan-out. Take the prompt: best CRM for a ten-person agency in Dubai with Arabic support. The system doesn't search that sentence once. It might search CRM pricing for small teams, CRMs with Arabic interface, CRM data residency in the UAE, and agency CRM comparisons. And we have evidence this is real, not theory. Bing Webmaster Tools now shows site owners the grounding queries Copilot generated when it cited their pages. Each sub-query is a separate chance for you to be retrieved.
Passages, not pages
Now step four, passage selection. Imagine a researcher with a highlighter and five minutes per page. If your answer is buried in paragraph fourteen after a long intro about how exciting your industry is, the highlighter never reaches it. If the answer sits right under a clear heading, in two self-contained sentences with specific facts, it's easy to lift and cite. So passages matter more than pages. And one more thing. When sources disagree, systems tend to favour what several reputable sources corroborate. Your claims about yourself are weighed against what others say.
Example 1: the Manchester bakery
Worked example one, a simple one. A wedding-cake bakery in Manchester wonders why AI Mode recommends two competitors for gluten-free wedding cake Manchester. We open the supporting links. Both competitors have a page with a heading asking, do you make gluten-free wedding cakes? Right under it: a direct yes, their allergen process, a starting price per tier, and the areas they deliver to. Our bakery mentions gluten-free once, inside a PDF price list. So for the sub-queries gluten-free, wedding, Manchester and price, there's no passage to retrieve. The fix is a plain HTML page that answers those facets. No AI trick required.
Example 2: LedgerLite (illustrative)
Worked example two, a realistic business case, with illustrative details. A Lahore accounting software company, let's call it LedgerLite, never appears for best accounting software for small businesses in Pakistan. Investigation finds three problems. Its pricing and comparison pages are client-side rendered, so crawlers that don't run JavaScript see almost nothing. It's missing from the independent review sites and best-of lists that the answers actually cite. And nowhere does it state clearly which local tax and e-invoicing requirements it supports. The plan: server-render key pages, publish a specific compliance page, and earn coverage in reputable comparisons. Three fixes, three stages of the pipeline.
Why answers vary
Here's something that trips up a lot of teams. Generative systems are non-deterministic. Ask the same question twice and you may get different brands and different citations. Location, conversation history, model versions and index freshness all add variation. So one screenshot proves nothing, good or bad. You measure by sampling: the same prompts, several runs, on a schedule. We'll build that prompt panel properly in module five. For now, remember that citations are not rankings. They're a sample from a moving distribution.
Common mistakes
Let's name the common mistakes. Mistake one: assuming training data is all that matters and giving up. Retrieval is where you can act. Mistake two: testing a prompt once and drawing conclusions. Mistake three: believing there's a secret AI ranking algorithm separate from being crawlable, relevant and trusted. Google's own twenty twenty-six guidance for its AI features says it plainly: these features are rooted in core Search ranking and quality systems, and you don't need llms.txt, content chunking or special schema to take part.
Watch me do it: trace an answer
Watch me do it. I'll trace one real answer back to its passages, step by step. Step one: I open an AI search experience in a clean browser window and type the prompt, best accounting software for a small business in Pakistan. I note the date and my location, because answers vary. Step two: I copy the answer text into a document and list every brand mentioned, in order. Step three: I open each citation in a new tab. On each page, I use find in page to locate the exact sentence the answer paraphrased. I highlight it and note the heading it sits under. Step four: I write down whether that passage was in the first two sentences under its heading, and whether it contained a specific fact, like a price, a tax feature or an integration. Step five: I run the same prompt twice more and repeat. After three runs, I have a small table: brand, cited page, passage, position under heading, specific fact yes or no. Here's what I usually see. The cited passages are short, self-contained, and sit right under a descriptive heading. And the brands that never appear either have no such passage, or aren't on the pages being cited. That table becomes the brief for your content and PR work.
Recap and try this now
Quick recap. Answer engines retrieve, then select passages, then generate and cite. Fan-out means one prompt becomes many searches. Passages beat pages, and corroboration beats self-description. Try this now. Pick one prompt your best customer would ask. Use the fan-out prompt in the lesson text to list ten sub-questions, then map each one to a URL on your site. Every blank cell is a content gap, and every buried answer is a rewrite. That single table will tell you more than any AI visibility score.
Know vs infer
Before we recap, let's be honest about what we know and what we're inferring, because this is where a lot of AI search advice goes wrong. High confidence: AI search features draw on search indexes and retrieved web content, because providers say so. High confidence: Google's AI features need pages to be indexed and snippet-eligible, because Google documents it. Reasonable inference: clear, well-structured passages are easier to extract, because that's how retrieval works. Low confidence: anyone's list of weighted GEO ranking factors. No provider publishes those. When someone shows you one, ask for the method.
Key takeaways
- AI answers come from training data and from retrieval at answer time; retrieval is where optimisation is practical.
- A conceptual pipeline: interpret, fan out, retrieve, select passages, generate, attribute.
- Be retrievable (crawlable, indexed), provide clear self-contained passages, and cover related sub-questions.
- Answers are non-deterministic; published 'GEO ranking factor' weights are speculation.
Try it
Pick five prompts your customers might ask an AI assistant. For each, list the sub-questions an engine might fan out into and whether your site answers them clearly.