Sub topic 7
From retrieved pages to a grounded answer
This chapter covers the step after retrieval: how a language model turns a set of retrieved pages into an answer, and what "grounded" means. It assumes you know what crawling and indexing are, can read HTML meta tags and robots.txt, and have a high-level idea of what a large language model does. It also assumes the earlier chapters on query fan-out and on retrieval and ranking.
What "grounded" means
A language model on its own produces text from patterns learned in training. That text can be fluent and wrong. Grounding means giving the model external material at answer time and asking it to base its output on that material. In Google's search features, the material comes from the Search systems: the pages retrieved for the user's query and for the sub-queries produced by fan-out.
Google describes AI Overviews and AI Mode as using a customized Gemini model together with Search. It also says generated responses can contain mistakes. The links shown with an answer exist partly so users can check it. Google does not publish the internal prompt format, the passage-selection rules or the verification method. What follows combines what Google documents with the general structure of retrieval-grounded generation. I mark which is which.
The pipeline from candidate pages to an answer
Retrieval hands over a ranked set of candidate pages. Generation then runs in roughly these steps:
- Select material. From the candidates, the system picks passages or snippets of content that bear on the question. It works with parts of pages, not whole documents.
- Compose context. The selected material is placed in front of the model together with the user's question.
- Generate. The model writes an answer conditioned on that context.
- Attach sources. Links to pages that support the answer are chosen for display. The next chapter covers how.
The diagram is a model, not Google's architecture. Google has not said how many internal passes there are or where checks happen.
Content is used as passages, not pages
A page can rank well and still contribute little text to an answer. The model only sees what the selection step gives it. Several practical consequences follow:
- Clear, self-contained passages are easier to use. A paragraph that states a fact with its qualifier is more usable than one that depends on three earlier paragraphs. This is a reasonable inference about extraction, not a documented ranking rule.
- Text that is not in the indexed content cannot be used. Content that exists only in an image, or that a crawler never renders, cannot be selected as text.
- Your snippet controls apply. Google documents that
nosnippet,max-snippetanddata-nosnippetalso govern how content is used in its AI features in Search. If you limit snippets, you limit what the generation step may draw from.
The first control limits the amount of text Google may use from a page:
<meta name="robots" content="max-snippet:50">The second marks one passage as off limits while leaving the rest available:
<p>This sentence may be used in previews.
<span data-nosnippet>This sentence is excluded from snippets.</span>
</p>A later chapter covers these controls in detail. For this chapter, remember that the grounding step sits downstream of them.
A toy model of grounding and support checking
The sketch below is not Google's method. It shows the shape of the idea: an answer is made of claims, and each claim should be traceable to a retrieved passage. A claim with no good match is a candidate for removal or rewriting. Real systems use learned models and far better matching than word overlap.
import re
STOPWORDS = {"a", "and", "be", "in", "it", "the", "for", "then", "of", "to"}
passages = [
{
"url": "https://example.com/descale",
"text": "Mix equal parts white vinegar and water. "
"Boil the mixture, then let it sit for 20 minutes.",
},
{
"url": "https://example.com/rinse",
"text": "Rinse the kettle twice after descaling.",
},
]
answer_sentences = [
"Mix equal parts white vinegar and water in the kettle.",
"Boil the mixture and leave it for 20 minutes.",
"Descaling must be done every week.",
]
THRESHOLD = 0.5
def tokens(text):
words = re.findall(r"[a-z0-9]+", text.lower())
return {w for w in words if w not in STOPWORDS}
def best_support(sentence):
claim = tokens(sentence)
best_url, best_score = None, 0.0
for p in passages:
score = len(claim & tokens(p["text"])) / len(claim)
if score > best_score:
best_url, best_score = p["url"], score
return best_url, best_score
for sentence in answer_sentences:
url, score = best_support(sentence)
status = "supported" if score >= THRESHOLD else "UNSUPPORTED"
print(f"{status:11} {score:.2f} {url} | {sentence}")The first two sentences match the first passage and pass. The third sentence ("every week") appears in none of the sources, so it is flagged. That is the failure grounding tries to prevent: a confident claim the sources never made.
Word overlap also shows why this is hard. A model can paraphrase, merge two passages, or draw an inference no single passage states. Overlap would miss all of these. This is one reason Google tells users the output may contain errors.
What is known and what is not
| Question | Status |
|---|---|
| Do AI Overviews and AI Mode use pages from the Search index? | Documented. |
| Is there a special markup or file required to be used as a supporting link? | Documented as no. A page must be indexed and eligible to appear in Search with a snippet. |
| Do snippet controls affect AI features? | Documented. |
| Does fan-out widen the set of retrieved pages? | Documented as a technique these features may use. |
| Which exact passages are chosen for the model? | Not published. |
| How the system checks that a claim is supported? | Not published. |
| Whether a supporting link was the source of a given sentence? | Not guaranteed. Linked pages support the answer in general. |
| Whether any text format, such as short answer blocks or special headings, increases selection? | No Google statement supports it. |
Failure modes to expect
- Unsupported claims. The model states something no source says. Grounding reduces this; it does not eliminate it.
- Over-generalisation. A source says "for most kettles" and the answer drops the qualifier. Writing qualifiers close to the claim they limit helps a human reader, and probably any extraction step as well.
- Conflicting sources. Two retrieved pages disagree. The answer may choose one, blend them, or hedge. You cannot predict which.
- Stale material. The indexed copy of your page may be out of date. A grounded answer is only as current as the content the system has crawled.
- Misleading consistency. A well-written answer reads as authoritative even when the sources are weak. Retrieval quality limits answer quality.
What this means for you as a publisher
Because the grounding step is not published, the sensible actions are the ones that hold regardless of its details:
- Make sure the page is indexed and eligible to show a snippet.
- State facts plainly, with their conditions, in text that a crawler can read.
- Keep visible content and any structured data consistent. The JSON-LD below is valid and describes a page whose visible headline, date and author should match it. It is not required for appearing in AI features.
- Do not chase tactics that Google has not documented.
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to descale a kettle",
"datePublished": "2026-01-15",
"author": { "@type": "Person", "name": "Jane Doe" }
}Common errors
- Assuming a special AI file or tag exists. Google's documentation names no extra requirement beyond being indexed and snippet-eligible.
- Blocking
Google-Extendedand expecting to leave AI Overviews. It does not do that. - Setting
nosnippetfor another reason and forgetting its effect. It also limits use in AI features. - Reading the answer as proof of what Google ranks. The generated text depends on the model and on selection steps you cannot observe.
Exercise
A site owner adds User-agent: Google-Extended with Disallow: / to robots.txt. A week later, their pages still appear as supporting links in AI Overviews. Is something broken? What control would actually limit how their content is used in those answers?
Show answer
Nothing is broken. Google-Extended covers uses such as Gemini model training and grounding in Gemini products. It does not remove pages from Search or from AI Overviews and AI Mode, which draw on the Search index. To limit how content is used in the AI features, use snippet controls: nosnippet, max-snippet, or data-nosnippet on specific passages. Blocking the pages from Search entirely would also remove them, at the cost of ordinary Search visibility.
Exercise
In the toy Python model, change the third answer sentence to "Rinse the kettle twice after descaling." What happens to its status, and what does this show about grounding?
Show answer
Its best-matching passage becomes the second one, with an overlap score of 1.00, so it is marked "supported". This shows that a claim counts as grounded only when retrieved material backs it. The same wording can be unsupported or supported depending on which passages were retrieved, so retrieval quality directly limits answer quality.
Exercise
Why is it wrong to conclude that a page's text was the source of every sentence in an AI Overview, just because the page is linked there?
Show answer
Google does not document sentence-level attribution. Supporting links indicate pages that back the answer in general. The model may paraphrase, merge several passages, or state an inference that none of them says outright. A link is a way for users to verify, not a guarantee of where each sentence came from.