How AI Search Actually Works: Retrieval, Synthesis and Citation
By IndexHot Team · · 9 sections
An AI answer is assembled in five stages: the question is expanded into several sub-queries, passages are retrieved for each, the passages are cut into chunks and re-ranked, the survivors are fitted into a context budget, and a model writes a summary that may or may not attribute its sources. A page can be lost at any of those stages, and each stage has a different fix. This guide walks through them in order, because the most common mistake in GEO is applying a content fix to a retrieval problem.
The five stages
It helps to think of an answer as a pipeline rather than a lookup. Each stage narrows the candidate set, and the narrowing is where most pages disappear without anyone noticing.
| Stage | What happens | Where you lose |
|---|---|---|
| 1. Expansion | The question is rewritten into several sub-queries, often including implied ones | Your page targets phrasing nobody uses |
| 2. Retrieval | Candidates are fetched per sub-query using lexical, semantic or hybrid matching | Your page is not reachable or not similar enough |
| 3. Chunking and re-ranking | Passages are cut from pages and scored, and only the top ones advance | Your passage is complete on the page but incomplete when cut |
| 4. Context assembly | Survivors are fitted into a limited context window | Your claim is redundant with another source and gets dropped |
| 5. Synthesis | A model writes the answer and decides what to attribute | Your contribution is used but not credited |
Read the table from the bottom up when diagnosing a problem. If you are quoted but not cited, the failure is at stage five. If you are cited but never quoted, it is at stage three. If you never appear at all, look at stages one and two before touching the writing.
Note what is absent: nothing here is a ranking of URLs. Ranking still governs eligibility on Google's surface, but the other three surfaces do not rank pages at all — they rank passages, and they do it inside a budget.
Query fan-out: one question becomes many
A single prompt usually becomes several retrievals. "Which CRM is best for a 20-person team?" implies questions about CRM categories, small-team suitability, pricing tiers and comparison. Each becomes its own retrieval, and each can be won or lost independently.
This is why a page that answers the literal question but ignores the implied ones gets cited for one sub-question and missed for the rest. It also explains an observation that looks like instability: two nearly identical prompts returning different sources, because the implied sub-queries shifted by one.
The practical response is to write for the question cluster rather than the question. A CRM page that states price tiers, seat minimums, onboarding time and a comparison against two named alternatives covers four sub-queries that a page answering only "best for small teams" does not.
It also changes how you build a prompt library. Fifty prompts that are all variations of one question measure one cluster; fifty prompts spread across eight intents measure a market. The second is what tells you where you are absent.
Retrieval: lexical, semantic and hybrid
Retrieval systems score candidates in at least two ways, and understanding the difference explains a class of results that otherwise looks arbitrary.
Lexical matching, historically BM25, rewards documents containing the same terms as the query, weighted by rarity and document length. It is exact and explainable: a page that says "replacement filter" is matched to a query about replacement filters and a page that says "consumable cartridge" is not, even though they mean the same thing.
Semantic matching compares embeddings, so a page about consumable cartridges can be retrieved for a replacement-filter query because the meanings are close. This is what lets a well-explained concept match phrasings it never uses literally, and what lets an off-topic page with surface similarity slip in.
Most production systems use both, weighted, which is why the advice "use the words your buyers use" remains correct even in a semantic era — not for keyword density, but because lexical matching is still one of the two signals. A page that uses only internal jargon loses the lexical half of the race.
Chunking: the unit is a passage, not a page
Before scoring, pages are cut into chunks — usually a few hundred tokens, often aligned to headings. Whatever happens next happens to the chunk, not to the page, which is the single most important structural fact in GEO.
A chunk that begins mid-argument inherits a dangling reference: "this approach reduces latency by 40 percent" is unusable if the chunk does not say which approach. Systems handle this by overlapping chunks or by prepending the heading, and both are partial remedies rather than guarantees.
The consequence is that a section should be written to survive being read alone. That means naming the subject explicitly rather than relying on "it" or "this", restating the condition near the figure, and avoiding tables that only make sense with the column header three pages earlier.
This is also why heading structure matters more than most teams expect. Headings are both the natural cut points and, in many pipelines, the text prepended to a chunk to give it context. A vague heading like "More on this" degrades every chunk beneath it.
Re-ranking and the context budget
Retrieval produces far more candidates than the model can read. A re-ranker scores them against the query, and only the top handful enter the context window — the fixed budget of text a model can attend to in one pass.
Two practical consequences follow. First, being retrieved is not the same as being read: a page can be fetched and then ranked out before synthesis. Second, redundancy is expensive — if three sources say the same thing, the budget favours keeping one, and the others are dropped even though they were eligible.
That redundancy rule is why distinctive facts outperform comprehensive ones. A page that repeats the category's common knowledge competes with every other page saying it. A page with one specific, checkable claim no competitor states is selected because there is nothing else to select.
It also explains why longer pages do not automatically win. Length adds chunks, and chunks that restate known material are discarded while consuming the same budget as chunks that add something. The budget rewards density, not volume.
Grounding and the hallucination boundary
Grounding means the model's output is constrained to claims supported by retrieved text. In practice the constraint is partial: the model can still misread, overstate or blend sources, and it can write from memory when retrieval supplies nothing.
This produces a spectrum rather than two states. At one end, an answer is a near-quotation of one source. At the other, it is generated from parametric memory with no attribution. Most answers sit between, which is why an answer with no citations is not evidence that nothing was retrieved.
For brands, the boundary matters commercially. A grounded claim about your product tends to be accurate and conservative, because the source constrains the wording. An ungrounded claim about your product is where errors concentrate: wrong pricing, discontinued features, stale positioning. Entity clarity and fresh, specific pages are the two levers that shift claims toward the grounded end.
Where citations come from
Attribution is a separate decision from retrieval. A system may use a passage and decline to cite it, or cite a page it barely used, depending on how its interface and policy expose sources.
On surfaces that attach a source list, citations usually reflect the retrieved set rather than a ranked judgement of importance. Position in a list is retrieval order, not influence, and reading it as a ranking of authority is the most common misinterpretation in GEO reporting.
On surfaces that attach few or no sources, the citation, when it appears, tends to mark the page that supplied the dominant framing. This is why a scarce citation is often worth more per unit than one of twelve attached links, and why citation counts are a poor proxy for influence across surfaces.
The measurement consequence is that citation and absorption must be coded separately. The first tells you the pipeline reached you; the second tells you whether anything of yours survived the synthesis.
Why the same question gives different answers
Non-determinism is structural, not a defect. Sampling temperature, index freshness, region, account state and the exact wording of a prompt all shift the output, and a single run is a sample rather than a result.
This has a hard consequence for measurement: one check cannot distinguish a real change from variance. A prompt that names you twice and ignores you once has an unsettled answer, and reporting the average of three runs as a trend is how a flat number gets mistaken for progress.
The workable protocol is boring. Fix the prompt wording, run each prompt three times per surface, code the median answer, and record the date and model version beside every row. Report monthly aggregates and keep the weekly spread visible rather than hiding it behind a single figure.
What this implies for content
Five derivations, each following from a stage above rather than from folklore.
- Write to the implied questions. Fan-out means the literal prompt is a fraction of what gets retrieved. Cover the cluster, not the sentence.
- Name your subject in every section. Chunks lose their antecedents. Explicit nouns survive cutting; pronouns do not.
- Put one distinctive fact per section. The context budget rewards density and penalises redundancy. Being the only source with a number is stronger than being the best source with everything.
- Fix access before structure. A page that cannot be fetched fails at stage two, and no amount of rewriting reaches stage five.
- Measure per stage. Mention tells you the pipeline reached you, citation tells you it used you as evidence, absorption tells you it kept your meaning. One number cannot do all three jobs.
If you remember one line from this guide, make it this: most "we are invisible in AI search" diagnoses are made at stage five and fixed at stages two and three, which is why the work feels endless and the numbers stay flat.
Frequently Asked Questions
Does an AI answer always retrieve web pages?
No. Many answers, especially conceptual ones, are written largely from training data with no retrieval and no citations. Absence of a citation is therefore not evidence that you were outranked — sometimes nothing was retrieved at all.
Why does a page rank first and never get cited?
Eligibility gets a page into the candidate pool; extractability decides whether a passage survives chunking, re-ranking and synthesis. A ranked page whose claim is spread across sections has no usable chunk.
How much does page length matter?
Less than structure. Length adds chunks, and chunks that restate common knowledge are discarded while consuming the same budget. Six hundred words answering six questions outperform two thousand answering one.
Is there a way to know which stage failed?
Partially. If you are named but never cited, the failure is late (synthesis and attribution). If you are cited but never quoted, it is mid-pipeline (chunking and re-ranking). If you never appear, check access and query coverage first.
Keep reading
Glossary terms behind this
Run this against your own brand
Fifty prompts, four surfaces, one baseline. Free report for the first twenty brands.
Check your brand free