Sub topic 5
Make Each Section Understandable on Its Own
This chapter assumes you know basic HTML, including headings, paragraphs, lists, and tables. It also assumes you understand that search engines return results from web pages. Here, you will apply those skills to retrieval-based AI answer systems, which find relevant passages and use them to form answers.
What makes a section self-contained?
A self-contained section gives enough context for a reader or retrieval system to understand its main point without requiring the surrounding sections. It names the subject, answers the section's question, and defines important conditions or terms.
A section is more useful when it includes:
- A descriptive heading.
- A direct answer in the opening paragraph.
- The subject being discussed, rather than vague words such as "it" or "this."
- Important limits, dates, units, or conditions.
- Supporting details that explain or justify the answer.
For example, this opening is weak:
> It is usually better because it saves time.
The reader does not know what "it" means or which activity saves time. A stronger opening is:
> A numbered list is usually better for setup instructions because it shows the order in which readers should complete each step.
The second version can stand alone as a passage. It identifies the format, the use case, and the reason.
Why does retrieval make self-contained writing important?
Retrieval systems commonly split a page into smaller passages. A passage may be selected because it matches a question, even when the system does not use the entire page. If the passage depends on an earlier paragraph for its subject or conclusion, the generated answer may be incomplete or misleading.
A useful mental model is:
This does not mean every paragraph must repeat the page title. Repetition can make writing tiring. Instead, repeat the context needed to interpret a section by itself.
How should you write a self-contained section?
Start with a heading that states the topic or question. Then answer it immediately. Follow the answer with the details a reader needs to apply it.
For example:
<!doctype html>
<html lang="en">
<body>
<article>
<h1>Choosing a format for product information</h1>
<section>
<h2>When should you use a comparison table?</h2>
<p>
Use a comparison table when readers need to evaluate the same
attributes across several products.
</p>
<p>
Put products in rows and attributes in columns. Use a list instead
when the information describes steps or requirements rather than
shared attributes.
</p>
</section>
</article>
</body>
</html>The section works on its own because it names the format, states the decision rule, and explains how to organize the information. A retrieval system can extract the heading and paragraphs without losing the central answer.
Replace vague references with specific nouns
Pronouns are useful when their meaning is obvious from nearby text. They become risky when a section may be extracted separately.
| Vague wording | Self-contained wording |
|---|---|
| It improves visibility. | A descriptive heading improves passage visibility. |
| This works for large sets. | A comparison table works for large sets of shared attributes. |
| They should come first. | Required setup steps should come before optional steps. |
Use the specific noun when the subject could change between sections. This also helps readers scan a page.
Include conditions and boundaries
A short answer can become wrong when it omits an important condition. Add details such as:
- Who the rule applies to.
- When the rule does not apply.
- Whether the order matters.
- What units or time period the numbers use.
- Which version of a product or policy is covered.
For example, "Use a table for product data" is too broad. "Use a table when each product has the same attributes, such as price, weight, and warranty length" gives a usable boundary.
What common errors weaken a section?
Avoid headings that provide only a label, such as "Benefits" or "More information." A question or specific claim gives the section a clearer purpose.
Avoid opening with background that delays the answer. Put history, definitions, and exceptions after the direct answer unless the reader cannot understand the answer without them.
Avoid splitting one answer across several tiny sections. Excessive fragmentation can leave each passage too thin to interpret. Combine closely related details when they answer the same question.
Also check references to "above," "below," "the previous method," and "the following example." These references depend on page position. Replace them with the name of the method or example when the dependency matters.
How can you test a section?
Temporarily copy the heading and the first two paragraphs into a blank document. Ask:
- Can you identify the subject?
- Can you state the section's answer?
- Do you know what important conditions apply?
- Would a reader understand pronouns such as "it" and "they"?
- Does the section make a claim that another section must define first?
If the answer to any question is no, revise the opening. You can keep links to related material, but do not use links as a substitute for the section's main context.
Exercise
Rewrite this opening so that it can stand alone: "It is best for comparing plans because they all have the same fields."
Show answer
"A comparison table is best for comparing plans when every plan has the same fields, such as price, storage, and support level."