Home / Glossary / AI and machine learning

AI and machine learning

Context window

In shortA context window is the amount of text a language model can take in and work with at one time, counted in tokens. It covers your instructions, any pasted or retrieved documents, the conversation so far and the model's own reply. Anything that does not fit is cut off or ignored, so what you put in the window matters.

By Aditya Aman, working in SEO for almost a decade and hands-on with AEO and GEO as those fields have developed. Updated 25 November 2026.

  • What it isThe working memory limit of a model for a single request.
  • Measured inTokens, which are chunks of words, not whole words.
  • Who it matters toTeams using AI to write, summarize, audit or answer questions.
  • Common mistakeAssuming a model remembers everything you ever told it.
  • Related workContent structure, retrieval and AI search visibility.

What is a context window?

In AI and language models, the context window is the span of text the model can consider when it produces an answer. It is not storage or long-term memory. It is closer to the desk space a model has for one task: your prompt, attached material, earlier turns of the chat and the reply it is writing all share it.

Window sizes differ by model and change as vendors release new versions, so check the current documentation for the tool you use rather than relying on a number you saw once.

What happens when the window fills up?

When input exceeds the limit, a tool has to drop something. It may refuse the request, trim the oldest messages, or cut the end of a long document. The model then answers from what is left and does not know what was removed, which can produce confident answers that miss a key detail.

Even inside the limit, long inputs are not read perfectly. Details buried in the middle of a very long prompt can be handled less reliably than details near the start or end. Treat a large window as room to work, not a promise of perfect recall.

Why does the context window matter for SEO and content work?

If you ask a model to audit a site, rewrite a page or compare competitors, the result depends on what fits and what you chose to include. Pasting a whole export of 5,000 URLs rarely works. Pasting a focused sample with a clear question usually does.

It also affects how AI search products answer about your brand. Systems that retrieve passages from the web pass only a limited set of text to the model. Clear, self-contained passages on your pages are easier to select and fit than a long page where the answer is spread across many sections.

SituationRiskWhat to do
Pasting a long report into a chatParts get trimmed or overlookedSplit it and ask one question per chunk
Long running conversationEarly instructions fadeRestate key rules in a new message
Asking for a large rewriteReply is cut shortWork section by section
Page with answers scatteredPassage selection is harderPut a direct answer near the top of each section

How do you work within a context window?

A few habits keep results dependable no matter how large the limit is.

  1. Send only what the task needsRemove boilerplate, repeated headers and unrelated rows before you paste.
  2. Put the instruction first and lastState the task clearly, then repeat the key constraint after long material.
  3. Break big jobs into stepsSummarize each part, then ask for a combined view from the summaries.
  4. Check the output against the sourceSpot check names, numbers and claims instead of trusting a smooth answer.

Need help with Context window on your site?

Tell us what is not working. We will check where this affects your search results and what to fix first.

Book a meetingAEO services

Questions people ask

Is a bigger context window always better?

Not always. A larger window lets you include more material, but it can cost more, run slower and still miss details in long inputs. A shorter, well chosen input often gives a clearer answer than a huge dump of text.

Does the model remember my past chats?

Only if the product stores and re-sends that information to the model. By default, a model works from what is in the current window. Some tools add a memory feature, so check how the tool you use handles it.

How do I know how many tokens my text uses?

Many vendors provide a token counter or show usage in their interface or API. As a rough guide, a token is a few characters, so a page of text is far fewer tokens than characters. Use the vendor tool for an exact count.

Inspect the original evidence