Sub topic 1
How AI Answer Systems Find and Quote Your Content
Prerequisites
This chapter assumes that you know basic HTML elements, including headings and paragraphs. You should also understand how search engines display results and have some experience writing or editing web content.
How does an AI answer system find useful text?
An AI answer system usually performs retrieval before it writes an answer. Retrieval is the process of finding relevant text from a collection of pages. The system does not always read an entire page as one unit. It often divides a page into smaller passages, sometimes called chunks.
A passage is a short, internally related section of text. It may contain a heading and the paragraphs below that heading. The system compares the user's question with these passages and selects likely matches. It may then rank the matches again using signals such as wording, topic, freshness, and page quality.
The selected passages become context for the answer-writing model. The model uses that context to produce a response, summarize the information, or quote part of the page. A page with clear sections gives the retrieval system more useful boundaries than a page made of one long, unstructured block.
Structure does not guarantee that a system will select or cite your page. It improves the chance that the system can identify what a section means and use it accurately.
What makes a passage easy to retrieve?
A useful passage usually has a clear subject, enough surrounding context, and a direct relationship to a likely question. For example, a paragraph that begins with “The cache expires after 24 hours” is difficult to interpret when separated from the rest of the page. A paragraph that begins with “How long does the API cache last?” and then gives the same answer is more self-contained.
A heading helps label the passages that follow it. A descriptive heading also gives the retrieval system a topic signal. Compare these headings:
- Details
- API cache duration
- How long does the API cache last?
The last two headings tell both readers and automated systems what question the section addresses. The best choice depends on the page's style, but vague headings provide less information.
A passage should also identify important nouns instead of relying on pronouns or hidden context. “It expires after 24 hours” is weaker than “The API response cache expires after 24 hours” when the passage is retrieved on its own.
| Page structure | What a retrieved passage can communicate |
|---|---|
| Vague heading and short pronouns | The topic may be unclear |
| Descriptive heading and direct answer | The topic and answer are easier to identify |
| Long block covering several topics | The relevant answer may be mixed with unrelated text |
| Focused section with related details | The passage has useful context |
How should headings and content work together?
Use headings as labels for the content below them, not as decorative text. A page should normally have one main heading that states its overall topic. Subheadings should describe major sections, and smaller headings should describe topics inside those sections.
The heading hierarchy should reflect nesting. Do not choose a heading level because it looks the right size. Styling belongs in CSS. Heading levels communicate the document's organization.
A simple structure might look like this:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>API Cache Guide</title>
</head>
<body>
<h1>API Caching Guide</h1>
<h2>How long does the API cache last?</h2>
<p>The API response cache expires after 24 hours.</p>
<h2>How can you clear the cache?</h2>
<p>Send a purge request for the affected resource.</p>
</body>
</html>Each section can still be useful when retrieved separately because its heading names the question and its paragraph gives a direct answer.
What happens when a system quotes a page?
The system may quote a short span, summarize several passages, or combine information from multiple pages. A clear passage reduces the risk that a sentence is quoted without its conditions or scope. Include necessary qualifiers near the claim. For example, place “for requests under 1 MB” in the same section as the limit it qualifies.
Do not assume that adding special markup will force a citation. Retrieval, ranking, source selection, and answer generation are separate decisions. Good structure supports all four, but none is guaranteed.
Exercise
Why is “The API response cache expires after 24 hours” a stronger retrieved passage than “It expires after 24 hours”?
Show answer
The first sentence names the subject, so it remains understandable when the system retrieves it without the surrounding paragraphs.