AI, explained

What is a context window?

It is the model's working memory: the total span of text it can read and reason over in a single request, measured in tokens.

What is a context window? A context window is the maximum amount of text a model can hold in view for one request, counted in tokens (roughly three quarters of a word each). It covers your instructions, the conversation so far, any documents you paste in, and the model's own reply. Anything beyond the limit gets truncated or dropped.

Think of the context window as a desk. Everything the model needs for the current task has to fit on that desk at once: the brief, the reference documents, the running conversation, and the space to write its answer. When the desk fills up, older material slides off the edge.

Why it matters in real use

Two practical failures come from ignoring the window. The first is silent truncation. Paste a long contract into an assistant with a small window and the tail of the document simply never reaches the model, so it answers confidently from half the text. The second is conversational amnesia. In a long chat, early instructions can fall out of view, and the assistant starts contradicting things it agreed to twenty messages ago.

Bigger windows are not a free upgrade

Modern models offer very large windows, sometimes hundreds of thousands of tokens. That is genuinely useful, but it has two costs. Every token in the window is processed, so a huge prompt is slower and more expensive per request. And models exhibit a "lost in the middle" effect: information buried in the centre of a very long context is recalled less reliably than material at the start or end. A larger window is a bigger desk, not a better filing system.

What good teams do instead

In production automation, most of the engineering effort is not about buying the biggest window; it is about deciding what deserves to be on the desk for each task. If your AI tools feel forgetful or inconsistent on long inputs, the context strategy is usually the fix, and an AI audit will show where the leaks are.

Frequently asked questions

What is a context window in AI?

It is the maximum amount of text a model can consider in a single request, measured in tokens. The window has to hold your instructions, the conversation history, any documents you include, and the space for the reply. Content that exceeds the limit is truncated, which is why long inputs can be silently cut off.

Does a bigger context window always give better answers?

No. A larger window lets you include more, but every token is processed, so big prompts cost more and run slower. Models also recall information placed in the middle of a very long context less reliably than material at the start or end. Selective retrieval usually beats dumping everything into a huge window.

How many words fit in a context window?

Tokens are roughly three quarters of an English word, so a window of 100,000 tokens holds on the order of 75,000 words. The exact ratio varies by language and by how much punctuation and formatting is present. Non-English text, especially languages with different scripts, can use more tokens per word.

Related

AI SEO in LisbonAI agency in LisbonBook an AI audit

Ready to put AI to work?

Book a discovery audit and we will map the highest-ROI AI agents and automations for your business.

Book a discovery audit →