Snoika
How AI search engines work·What-is explainer

AI context window explained: why it matters for how your content is read

A context window defines how much text an AI model can hold and read at one time. It's measured in tokens. Your question and the chat history must fit inside it along with any source material the model uses for its answer. That material includes uploaded files and any web passages the system retrieves. Text outside the window doesn't exist for that answer. And text buried in the middle of the window gets less attention than text near the start or the end.

Portrait of Artem LozinskyArtem LozinskyOperations and product, Snoika · 7 min read
Five people in their thirties on an office rooftop terrace with a city skyline.

Context windows limit AI reading

The context window caps how much an AI model can read before it answers, so it decides which parts of your content the model ever sees. When someone asks ChatGPT or Perplexity a question, the system searches the web and packs selected passages from the pages it finds into the window next to the question. Whatever doesn't fit is dropped before the model writes a word. The model then reads what's left as one block of text.

A window that has room for a page still doesn't guarantee the model reads every line of it well. Chroma researchers led by Kelly Hong tested 18 frontier models and reported that "model performance consistently degrades with increasing input length," even on simple tasks. For your own pages, ask whether the passage that answers a question would still make sense if it were cut out and dropped into that block on its own.

Tokens measure context window size

Context window size is measured in tokens, which are the chunks of text a model reads. A token can be a whole word or part of one. Punctuation marks and spaces can also be tokens. For English, OpenAI's help centre estimates that 100 tokens equal about 75 words, or roughly 4 characters per token.

The ratio changes with language. Autosheet's guide to OpenAI tokens estimates German at about 2.1 tokens per word, compared with 1.3 for English. So a German translation of your article fills more of the window than the English original does, even though it says the same thing. When you compare models or estimate how much of a page an engine can take in, count tokens for the language you actually publish in.

What 200K tokens looks like

A 200K context window has room for about 150,000 words, or more than 500 pages of text. Anthropic gave those figures when it launched Claude 2.1 with a 200,000-token context window. It said users could upload entire codebases or financial statements like S-1s. Users could also upload long literary works like The Iliad or The Odyssey.

A one million token context window is five times larger. When Google introduced Gemini 1.5 Pro, it said 1 million tokens covered 1 hour of video or 11 hours of audio. For text, it gave a capacity of over 700,000 words. Google's own Gemini product page describes the same window as about 1,500 pages.

These page counts assume dense text. A 2,000-word web article comes to about 2,700 tokens at OpenAI's ratio, so that calculation gives a 200K window room for around 75 of them. AI search engines rarely load whole pages, though. They load passages, and that's why the size of your individual sections matters more than the length of the page.

Context window size by model

Meta claims a 10 million token context window for Llama 4 Scout, the largest published window. A timeline compiled by Hidekazu Konishi calls it the largest published to date. Among closed models, Google opened Gemini 1.5 Pro's 2 million token window to all developers in June 2024. One million tokens has since become the usual ceiling for flagship models from OpenAI and Anthropic.

Llama 4 Scout

Developer
Meta
Approx. English words
7,500,000

Gemini 1.5 Pro

Developer
Google
Context window
2 million tokens
Approx. English words
1,500,000

GPT-4.1

Developer
OpenAI
Context window
1,047,576 tokens
Approx. English words
785,000

Claude Sonnet 4

Developer
Anthropic
Context window
1 million tokens
Approx. English words
750,000

Claude 2.1

Developer
Anthropic
Context window
200,000 tokens
Approx. English words
150,000

GPT-4o

Developer
OpenAI
Context window
128,000 tokens
Approx. English words
96,000

The word counts are estimates based on OpenAI's 75-words-per-100-tokens ratio. The advertised size and the size a model actually uses well are different numbers. BirJob reports that Scout scored 15.6% at 128K tokens on the Fiction.LiveBench reading comprehension test, while Gemini 2.5 Pro scored 90.6%. Deployment also matters. On Microsoft's Q&A forum, Azure staff explained that most GPT-4.1 configurations still cap context at 128K tokens.

Why early content wins

Content near the top of a page gets cited more often because models pay the most attention to the edges of their input. In the paper "Lost in the Middle", Nelson Liu and his co-authors found that performance is "often highest" when the relevant information occurs at the beginning or end of the input. It dropped when the answer sat in the middle. That held "even for explicitly long-context models", so a bigger window doesn't remove the bias.

Search citation data also favours content near the top of a page. Kevin Indig, a growth advisor, analysed 18,012 verified ChatGPT citations. He found that 44.2% of citations came from the first 30% of a page. The middle accounted for 31.1%, and the final third accounted for 24.7%. If your clearest answer sits after three paragraphs of background, it's where the model reads least.

Sources per AI answer

AI engines show anywhere from almost no sources to about 19 per answer, and context window size doesn't decide which pages make the cut. In a test of 1,000 questions across five engines, Slate counted 19.08 source links per Perplexity answer. Claude showed 12.49, and Google AI Overviews showed 9.42. ChatGPT showed 3.10. Gemini showed a link on 16 of the 1,000 questions.

Engines read far more than they cite. AirOps found that only 15% were cited in the final answer among 548,534 pages that ChatGPT retrieved across 15,000 prompts. A larger window lets an engine consider more pages, but it still selects the passage that answers the question most directly. Because each engine cites differently, check your visibility in each one separately.

Long context changes content structure

Long context makes structure matter more, because models get worse at using text well before their window is full. In Chroma's tests, every model degraded on inputs of about 113K tokens, roughly a tenth of a 1 million token window. The decline is gradual. There's no single point where the model suddenly fails.

Chroma also tested distractors: sentences on the same topic that don't answer the question. According to a summary by TinyFish, a single distractor lowered performance, and four made it worse still. Once a page is loaded next to competing pages, its loosely related points become distractors of its own. The pages that hold up give each section one subject under a heading that names it. They put the answer early in that section.

Optimising pages for retrieval

Retrieval systems reward passages that sit where the engine looks first and answer one question clearly enough to stand alone. Two findings explain what that means at the page level and the paragraph level.

Where the answer sits on the page

The top of the page carries the most weight, but the first sentence isn't the whole story. At the paragraph level, Search Engine Land's report on Indig's data shows 53% of citations came from the middle of paragraphs. Only 24.5% came from first sentences. Engines therefore quote the substance after a topic sentence. A page that opens with a direct answer and backs it up with specific evidence in the same paragraph gives them both.

How narrow each page stays

Focused pages beat broad ones. In an AirOps study of 16,851 queries, the top retrieval result was cited 58% of the time. Pages with a narrow answer to the main query also outperformed long comprehensive guides. The same post cites AirOps' finding that 55.8% of cited pages ranked in Google's top 20. Classic search ranking still decides which pages get into the window at all.

Output limits still apply

A model that reads a million tokens still writes a much shorter answer, because output has its own cap. OpenAI raised GPT-4.1 output to 32,768 tokens, up from 16,384 for GPT-4o. That's about 24,500 words, against an input of more than 700,000. OpenAI's help centre adds that output tokens can include internal reasoning tokens hidden from the user. Those use up part of the budget as well.

For your content, the gap means compression. An AI answer will boil your 2,000 words down to a sentence or two, or to a single cited line. The passage that survives is the one that already states the point in a sentence a model can lift unchanged.

Context window versus training data and memory

The context window is working memory for a single request. Training data is what the model learned before its knowledge cutoff. For GPT-4.1, that cutoff is June 2024. A page published after that date reaches the model only if it's retrieved into the context window. Chat "memory" features store notes between sessions, but those notes still have to be loaded into the window before the model can use them. When a model gets a recent fact wrong, the cause is what made it into the window. Training size rarely explains it.

When this matters for you

This matters as soon as AI assistants start answering the questions your pages answer. Start with your most important pages and check two things. First, does the answer appear in the first third of the page? Second, does it make sense when read alone? Then look at how each engine treats those pages. A study by Prefer found that across 1,329 cited sites, only 29 sites were cited by all four engines it tested. A larger context window won't fix a page that one engine skips. Snoika's website audits and brand visibility tracking in Google and AI assistants include human review. Check your AI visibility free.

FAQ

See how AI talks about your brand