What is a context window?
Every Transformer processes a bounded sequence. That bound — the context window — has grown from a few thousand tokens to hundreds of thousands, and at the frontier, millions. But it is never infinite, and in answer engines it is shared: the system prompt defining the assistant's behavior, the conversation history, the retrieved source passages and the answer being generated all draw from the same budget. Larger windows also carry cost and latency, which is why production systems rarely fill them.
Inside the window, attention is not uniformly reliable. Research on long contexts documents a U-shaped pattern: models use content at the start and end of the context well and lose content in the middle — the 'lost in the middle' effect. Position inside the budget is a resource, not just inclusion. See how attention allocates it.
How do engines fit the web into the budget?
The retrieval stage solves the budget problem by selection and compression. The query is expanded and fanned out — see query fan-out — candidate documents are ranked, and only the top few are read. Those are split into chunks (typically a few hundred tokens each, cut at paragraph or heading boundaries), re-ranked for relevance, and the best chunks are assembled into the context, often with light compression. Everything else — the rest of your page, the pages ranked below you — effectively does not exist for this answer. This is the truncation layer of the four-stage pipeline described in how AI engines work.
Engines differ in how much they retrieve. Perplexity retrieves in real time on every query, over a billion queries a month, and cites sentence by sentence — a pipeline that lives entirely inside this selection-and-truncation discipline. Google AI Overviews, serving more than 2.5 billion monthly users (Alphabet Q2 2026), fans a query into sub-queries and assembles passages from multiple ranking systems into one budget.
What this means for GEO
- Ranking below the retrieval cut means invisibility. If the engine reads five sources and you are source nine, your content quality is irrelevant. The first GEO battle is making the retrieval shortlist: source graph building.
- Chunk boundaries decide what survives. A fact spanning a page break of chunks may be cut mid-thought. Self-contained paragraphs — entity, claim, qualifier in a few sentences — survive any boundary: answer block writing.
- Position within the chunk matters. Given lost-in-the-middle behavior, a chunk that opens with its key claim is safer than one building toward it. Answer-first is truncation-proof writing.
- Density beats volume. Long pages are not read; they are sampled. A tight 800-word page with extractable blocks beats a 5,000-word sprawl, because more of it fits the budget.
- Token-efficient formatting travels further. Tables and lists pack more facts per token than prose — an advantage measured in the model's own currency. See tokenization.
Actionable implications: a checklist
- Front-load every section: first sentence states the claim, rest supports it.
- Keep paragraphs to one idea and under five sentences so chunking never splits a claim from its subject.
- Audit your key pages as chunks: extract any 200-token window and check it still makes sense standalone.
- Put the single most important fact of each page in the opening block — the position least likely to be truncated.
- Test which passages engines actually quote; the quoted chunk is the one that survived. Log and iterate monthly per the standards.
Will bigger windows make this irrelevant?
No — they change the threshold, not the discipline. Even with million-token windows, engines truncate for cost, latency and answer quality: feeding fifty mediocre sources produces worse answers than feeding five good ones, so selective retrieval persists by design. And the attention dilution that makes buried facts unreliable grows with context length, not shrinks. The safe bet is unchanged: be among the few sources selected, and make every chunk quotable. For the retrieval mechanics upstream, see RAG explained.