How to write answer-first content that LLMs can quote
A writing method for pages that survive being chunked: a direct answer up front, one question per heading, and passages that make sense on their own.
Short answer
Answer-first content opens every page and every section with a self-contained answer of roughly 40–70 words, then explains, qualifies and expands. The first sentence names the main entity, each heading carries exactly one question, and no passage depends on a pronoun or a paragraph elsewhere. Written this way, a passage still makes sense after an answer engine splits the page into chunks and retrieves one of them in isolation.
Key takeaways
- 01Open each page and each section with a 40–70 word answer that names the entity and resolves the question on its own.
- 02Give every heading exactly one question, phrased the way people ask it, and answer it in the first sentence beneath.
- 03Retrieval systems split pages into passages of roughly a hundred words, so a passage that needs context from elsewhere loses its meaning.
- 04Replace pronouns and back-references with the entity's name; a lifted paragraph cannot see the paragraph above it.
- 05Use lists for steps and enumerations, prose for definitions and reasoning, and never put the answer only in an image or table.
- 06Citations, quotations and statistics measurably raise how often a passage is used in generated answers; keyword stuffing does not.
On this page
What answer-first content is
Answer-first content is writing that puts the complete answer at the start of a page and at the start of each section, then uses the rest of the section to explain, qualify and support it. It is the inverted pyramid of journalism applied at the level of the passage rather than the article. Nielsen Norman Group describes the inverted pyramid as a structure in which the most important information is presented first, followed by supporting detail in descending order of importance.
Answer engines make that structure necessary, for two reasons.
First, they do not read pages; they read passages. A retrieval-augmented system splits a page into chunks and scores each chunk against the question on its own. The Dense Passage Retrieval paper by Karpukhin et al. split Wikipedia into "disjoint text blocks of 100 words" as its basic retrieval unit, and many production systems work at a similar scale: a heading plus a paragraph or two. Whatever sits in the first hundred words after a heading is what the retriever sees.
Second, language models use what they retrieve unevenly. The Lost in the Middle study by Liu et al. found that model performance "is often highest when relevant information occurs at the beginning or end of the input context" and degrades in the middle. A passage that states its answer up front is easier to use than one that reaches it at the end.
None of this is a vendor requirement. Google's documentation on AI features says there are "no additional requirements to appear in AI Overviews or AI Mode". The method follows from how retrieval and generation work, described in What is Answer Engine Optimization.
The 40–70 word direct answer
The central unit of this method is the direct answer: a paragraph of roughly forty to seventy words that sits directly under the page title, with a shorter one- or two-sentence version under each major heading.
Forty words is about the minimum needed to name the entity, state what it is or does, and add one qualifying detail. Seventy words keeps the whole answer, plus its heading, inside a single hundred-word retrieval chunk. Longer than that and a chunker may split the answer in two, or a model may quote half of it.
A direct answer follows a fixed shape:
- Sentence one names the entity and answers the question. "llms.txt is a proposed convention for a Markdown file at the root of a website that gives language models a curated overview of the site."
- Sentence two adds the detail that makes the answer usable. What it contains, how it works, who it is for.
- Sentence three states the scope or the limit. Who proposed it, what it does not do, when it applies.
There is no preamble. The paragraph does not begin with "In this guide", "Many people ask" or "Before we get into it". Those openings spend words the chunk cannot afford.
The length is easy to enforce in CI or in the CMS:
const words = (s: string) => s.trim().split(/\s+/).filter(Boolean).length;
const n = words(guide.short_answer);
if (n < 40 || n > 70) {
throw new Error(`short_answer is ${n} words (want 40–70)`);
}The GEO study by Aggarwal et al. tested nine ways of rewriting a source page and measured how much of each generated answer was drawn from it. Its authors report that their "top-performing methods, Cite Sources, Quotation Addition, and Statistics Addition, achieved a relative improvement of 30-40%" on their position-adjusted word count metric, while keyword stuffing offered "little to no improvement".
30–40%
Put a source, a quotation from a named authority or a concrete figure in the direct answer or in the sentence immediately after it, not three sections down.
One question per heading
Each H2 and H3 should name exactly one question, and the first sentence under it should answer that question. The heading can be phrased as a question ("How long should the direct answer be?") or as the noun phrase people would type ("Direct answer length"). What matters is that a reader, or a retriever, can tell from the heading alone which question the section resolves.
Two failure modes are common: the clever heading ("Less is more") that tells a retriever nothing about the content beneath it, and the heading that covers several questions ("Length, tone and formatting"), which dilutes the answer to each. Split the second kind into one heading per question.
Inside a section, repeat the inverted pyramid: answer, then reasons, then examples, then edge cases. If a section grows past three or four paragraphs, it usually contains a second question that deserves its own heading.
In Markdown, the pattern looks like this:
## How long should a direct answer be?
A direct answer should be 40–70 words: long enough to name the entity,
state the answer and add one qualification, and short enough to fit
inside a single retrieval chunk together with its heading.
Forty words is roughly the floor because ...
### What happens if the answer is longer?
...Name entities; do not lean on pronouns
Every paragraph should survive being lifted out of the page. That means naming the entity rather than pointing at it with "it", "this", "the tool" or "as described above".
Anthropic's engineering post on contextual retrieval gives the example. A chunk that reads "The company's revenue grew by 3% over the previous quarter" is accurate inside its document and useless outside it: the chunk does not say which company or which quarter, so a retriever cannot match it to a question about either. Anthropic's fix is to prepend a generated sentence of context to every chunk before indexing it. You cannot rely on every answer engine doing that, so write the context in yourself.
The rules that follow:
- Use the full name on first mention in each section, with the abbreviation in parentheses: "Generative Engine Optimization (GEO)". After that, use either form consistently.
- Do not start a section with a pronoun. "It also supports…" at the top of a chunk has no referent.
- Replace "above", "below", "earlier" and "as we saw" with the thing itself: "the 40–70 word rule", not "the rule above".
- Keep the entity name in the heading and in the first sentence beneath it, so that both heading-based and paragraph-based chunkers see it.
Sentence length, lists and prose
Short declarative sentences are easier to quote than long ones. A sentence a model can lift verbatim states one claim, has one subject, and does not depend on a subordinate clause three lines back. Around twenty words is a comfortable ceiling for a sentence that carries the answer; sentences that explain or qualify can run longer.
Lists and prose do different jobs:
| Content | Form | Reason |
|---|---|---|
| Steps, sequences, options | Numbered or bullet list | Reproduced faithfully by models; easy to scan |
| Definitions, reasoning, trade-offs | Prose | Bullets drop the logical connectives |
| Comparisons across several attributes | Table | Each cell has an explicit subject |
| The direct answer itself | One paragraph of prose | A list cannot be quoted as a single passage |
Two cautions. Make each list item a complete sentence or a parallel fragment, so that an item quoted on its own still reads correctly. And never put the answer only in a table, an image or a diagram: Google's AI features documentation asks that "important content is available in textual form", and text is the only form every crawler can read.
A worked rewrite
Below is a typical blog-post opening, then the same information rewritten answer-first.
That is 66 words without an answer in them. The entity is named once, in the first sentence, and referred to as "it" five times afterwards. Nothing in the passage could be quoted in response to "what is llms.txt".
The rewrite is 69 words. It names the entity in the first sentence, answers the question, and adds two qualifications. The only pronoun, "It", refers to llms.txt inside the same passage, so the chunk stays self-contained.
The same discipline applies deeper in a page:
Before: It also works with the full-text version. This can get large, so you'll want to think about that.
After: The optional companion file,
llms-full.txt, is a convention for putting the full text of the linked pages in one document. On a large site it grows substantially, so include only the pages worth a model's context window.
Editing checklist
Run this pass before publishing and after every update.
Answer-first editing pass
- The first paragraph under the title is 40–70 words and names the main entity in its first sentence
- The first paragraph could be pasted into a blank document and still be true and complete
- Every H2 and H3 names one question, and the first sentence beneath it answers that question
- No section starts with a pronoun or with "above", "below", "as mentioned" or "in this guide"
- Every entity is written out in full on first mention in each section
- Steps and options are lists; definitions and reasoning are prose; comparisons are tables
- Nothing important exists only in an image, a diagram or a table cell
- A source, a quotation from a named authority or a concrete figure appears in or directly after the direct answer
Frequently asked questions
How long should the direct answer be?
Aim for 40 to 70 words. Forty is about the minimum needed to name the entity, answer the question and add one qualifying detail. Seventy keeps the answer, together with its heading, inside a single retrieval chunk of roughly a hundred words, so an answer engine is unlikely to split it or quote only half of it.
Should headings be written as questions?
They can be, but they do not have to be. What matters is that each heading names exactly one question and that the first sentence beneath it answers that question. A heading phrased as the noun phrase people search for, such as "Direct answer length", works as well as "How long should the direct answer be?" A heading that covers two questions, or a clever heading that names none, is the thing to avoid.
Does answer-first writing make pages worse for human readers?
Usually the opposite. Answer-first is the inverted pyramid that journalists and technical writers have used for decades, and usability research recommends it for web reading because most people scan and leave. Readers who want the reasoning keep reading; readers who only wanted the answer get it in the first paragraph instead of the last.
Is answer-first content the same as optimising for featured snippets?
The two overlap but are not identical. A featured snippet is one passage Google elevates above its results, and Google's documentation says site owners cannot mark a page as a featured snippet. Answer-first writing produces the kind of self-contained passage that featured snippets, AI Overviews, Perplexity and ChatGPT search all look for, so it serves both without targeting either specifically.
Can I still use lists and tables?
Yes, and you should, for the right content. Steps, options and enumerations belong in lists, because models reproduce them faithfully and readers scan them. Comparisons belong in tables. The direct answer itself should be one paragraph of prose, because a list cannot be quoted as a single passage, and nothing important should exist only in a table cell or an image.
Sources
- [1]GEO: Generative Engine Optimization
Aggarwal et al., KDD 2024 (arXiv) · 2023
- [2]Introducing Contextual Retrieval
Anthropic · 2024
- [3]Lost in the Middle: How Language Models Use Long Contexts
Liu et al. (arXiv) · 2023
- [4]Dense Passage Retrieval for Open-Domain Question Answering
Karpukhin et al., EMNLP 2020 (arXiv) · 2020
- [5]AI features and your website
Google Search Central · 2025
- [6]Inverted Pyramid: Writing for Comprehension
Nielsen Norman Group · 2018
Terms used in this guide
- Chunking
- Chunking is the step in a retrieval pipeline that splits a page or document into smaller passages — typically a few hundred tokens each, cut at headings, paragraphs or a fixed window — so that each passage can be embedded, indexed and retrieved on its own. Because answer engines retrieve and cite chunks rather than whole pages, chunk boundaries decide what a model actually sees.
- Entity
- An entity is a uniquely identifiable thing — a person, organisation, product, place or concept — that exists independently of the words used to name it. Search engines and language models resolve text to entities so that 'Apple', 'Apple Inc.' and 'AAPL' map to one node, and they judge a page partly by which entities it mentions and how unambiguously it names them.
- Passage retrieval
- Passage retrieval is the search technique of scoring and returning short spans of text — a paragraph, a section, a window of tokens — rather than whole documents, so that a system can answer a question from the most relevant fragment. It is the retrieval step in most answer engines, and it is why a page is cited passage by passage rather than as a unit.
- Retrieval-augmented generation
- Retrieval-augmented generation (RAG) is an architecture in which a language model is given relevant documents or passages retrieved at query time — from a search index, a vector database or the live web — and asked to answer using them. It grounds the model's output in current, citable sources instead of relying only on what it memorised during training.
- Citation
- A citation, in the context of answer engines, is the explicit link or reference that a generated answer attaches to the source passage it drew on — the numbered footnote in Perplexity, the linked sources beside a Google AI Overview, or the source list under a ChatGPT search answer. Citations are the unit of visibility that Answer Engine Optimization is measured by.
Written by
Endrit Krasniqi
Front-end engineer & author of Citable
Endrit Krasniqi is a front-end engineer who builds content platforms with React, Next.js, Nuxt and headless CMSs such as Storyblok. He writes Citable to document, with working code, how websites can be structured so that search engines, answer engines and large language models quote them accurately.