Sub topic 3
How sources get retrieved and cited
This chapter explains the working model behind retrieval and citation in AI search. It assumes you know basic HTML, how search engines crawl and index pages, and that AI assistants can use web search to answer questions. Reading simple JSON helps for the markup examples later in the tutorial.
The previous chapters covered what recommendation queries look like. This chapter covers what happens after the user presses enter. Knowing the steps tells you which parts of a comparison page can help and which parts cannot.
The pipeline from question to cited answer
Most AI search features follow a retrieval-augmented pattern. The assistant does not answer only from what the model memorised in training. It fetches current web content, puts that content in front of the model, and asks the model to write an answer grounded in it. The exact design differs between vendors and changes often, so treat the stages below as a working model, not a specification.
Each stage can drop your page. A page that is excellent at stage F still earns nothing if it was never returned at stage C.
- Query rewriting. The assistant turns a conversational question into one or more search queries. "What's a good project tool for a five-person agency?" may become "best project management software small teams" plus a query on pricing. This step is often called query fan-out when one question produces several searches.
- Candidate retrieval. A search system returns a set of URLs. This may be a traditional web index, a vendor's own index, or a third-party search API. Ranking signals here resemble classic search: relevance, links, site quality and freshness.
- Fetching and chunking. The system reads page content and splits it into passages, often by headings, paragraphs or table rows. Retrieval frequently works on these passages, not whole pages.
- Passage selection. Passages are scored against the query, often with embeddings (numeric vectors that capture meaning) and keyword matching. The best few go into the model's context window, which is limited in size.
- Generation and citation. The model writes the answer using the selected passages. The interface attaches citations, usually links to the pages that supplied the passages.
Retrieval and citation are separate outcomes
A page can be retrieved but not cited. It can also be cited for a fact that is not the one you hoped to be known for. Keep the outcomes apart.
| Outcome | Meaning | What usually causes it |
|---|---|---|
| Not retrieved | The page never reached the candidate list | Blocked crawler, not indexed, weak match to the query, poor ranking |
| Retrieved, not used | The page was fetched but no passage was selected | Passages are vague, buried, or less specific than competing sources |
| Used, not cited | The content shaped the answer but no link appears | Interface design, or the system merged several sources |
| Cited | A link to the page appears with the answer | A passage clearly answered part of the question |
| Mentioned by name only | Your product appears, sourced from someone else's page | A third-party list or review supplied the information |
The last row matters for the whole topic. An assistant can recommend your product because a review site listed it, without ever citing your site.
What makes a passage easy to select
Passage selection rewards content that answers a question without needing the rest of the page for context. A comparison page helps here because its structure matches the question shape.
- Self-contained passages. A paragraph that says "Tool B suits teams that need timelines and has no free plan" can be used alone. A paragraph that says "It also does this, unlike the one above" cannot, because the referent is lost once the passage is separated from its neighbours.
- Specific, checkable statements. "Starts at $12 per user per month (checked 2026-11)" is easier to use than "affordable pricing".
- Headings that name the question. A heading such as "Best for small teams" gives both the chunker and the ranker a label that matches the query.
- Consistent entity names. Use the same product name each time. Mixing "Tool B", "the Tool B app" and "TB" can split the signal.
- Tables that survive extraction. A table with headers lets a parser pair each value with its column. Chapter six covers building these.
The next snippet shows the difference between a passage that survives chunking and one that does not.
Weak (depends on neighbouring text):
It is cheaper than the previous option, though it lacks the
integrations mentioned above.
Strong (self-contained):
Tool B costs $12 per user per month and has no free plan.
It offers timeline views but fewer third-party integrations
than Tool A.Why comparison and best-of pages get cited so often
Recommendation questions ask for judgement across several options. Assistants tend to prefer sources that already do that work in one place. A well-built comparison page offers several advantages.
- It covers many products in one fetch, so one retrieved page can support a whole answer.
- Its headings and tables line up with the sub-questions the assistant generates: price, best for, free plan, limits.
- Its structure makes passages easy to quote without distortion.
None of this guarantees citation. Assistants also cite forums, review sites, official product pages, documentation and news. For a "vs" query, the vendors' own pages often supply the facts, while a comparison page supplies the framing. Your page competes with all of these for a small number of citation slots.
What you control and what you do not
| You control | You influence | You do not control |
|---|---|---|
| Whether crawlers may fetch the page | Whether the page matches the query wording | Which index a vendor uses |
| Page content, headings and tables | How well the page ranks in search | How many sources the interface shows |
| Accuracy and date of your claims | Whether others link to or mention the page | Whether the model picks your passage |
| Structured data and rendering | Whether third parties list your product | Changes to a vendor's retrieval design |
Focus effort on the left column and use the middle column when it is cheap. Do not build a plan around the right column.
Access is a precondition
A page can only be retrieved if the relevant systems may fetch it. Crawler rules are set per user agent in robots.txt. Search-oriented AI crawlers and training crawlers are often separate user agents, so you can allow one and block the other. Confirm current names in each vendor's documentation, because they change.
# robots.txt: allow a search-oriented AI crawler and a general crawler
User-agent: OAI-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: *
Allow: /Rendering matters as well. If the comparison table is built by JavaScript after page load, some fetchers will see an empty container. Serve the table in the initial HTML. Chapter nine returns to this.
Common errors in this stage
- Assuming one ranking. There is no single "AI ranking". Different assistants use different indexes and retrieval choices, and results for the same question vary between runs.
- Writing for the final answer, not the passage. The model never sees your page design. It sees extracted text.
- Hiding key facts in images. Pricing inside a screenshot is usually invisible to text retrieval.
- Putting the answer far from its heading. If the heading says "Free plans" and the fact sits three sections later, the passage ranks poorly.
- Treating citation as the only goal. Being named from third-party sources still shapes the answer, so see the later chapter on outside lists and reviews.
- Expecting instant effects. New or changed pages must be crawled and indexed before they can be retrieved. Delay varies and is not guaranteed.
Putting it into practice
Use this short check on any comparison page before moving on.
- Pick three questions a buyer might ask, such as "which has a free plan?"
- For each, find the passage or table row on your page that answers it.
- Copy that passage alone into a blank document. Does it still make sense and name the products involved?
- Confirm the page is allowed in robots.txt and that the passage appears in the raw HTML source.
If a passage fails step 3 or step 4, fix that before working on anything else.
Exercise
A comparison page ranks well in classic search and its crawler access is open, yet an assistant answering a "best tool for small teams" question never cites it. Name two stages of the pipeline where the page may have been lost despite being retrieved, and one change for each.
Show answer
First, passage selection: the relevant text may be vague or depend on surrounding context, so no passage matches the query well. Rewrite the key claims as self-contained, specific statements under a heading such as "Best for small teams". Second, fetching and chunking: the comparison table may be rendered by JavaScript, so the fetcher sees no content. Serve the table in the initial HTML. A third valid answer is that the assistant used the information but a third-party list supplied the name, which means the page needs better coverage elsewhere.
Exercise
Explain the difference between "retrieved, not used" and "mentioned by name only", and say which one a robots.txt change on your own site can affect.
Show answer
"Retrieved, not used" means your page was fetched but none of its passages were selected for the answer. "Mentioned by name only" means your product appears in the answer because another site's content supplied it, so your page played no part. A robots.txt change on your own site can affect the first case, since it controls whether your page is fetched at all. It cannot affect the second case, which depends on third-party pages.