Context window

Context window

AI

A context window is the most text, counted in tokens, that a language model can consider at once: its instructions, the conversation and its reply.

What is Context window?

A language model has no memory between requests. Each time it replies, it is sent everything it needs to know: its instructions, the conversation so far, any documents or records it looked up and room for its answer. The context window is the limit on how much of that fits. What happens when it fills up: older parts of the conversation must be dropped, shortened or summarized. If that is done badly, the model "forgets" what the customer said earlier. Bigger is not always better: - More tokens cost more and can slow down each reply. - Models can pay less attention to details buried in the middle of a very long context. - Stuffing in every document makes the right fact harder to find. Fetching only what is relevant often works better. For voice agents, speed matters more than size. A short, focused context helps the agent answer quickly, while lookups bring in order or account details only when they are needed. Common mistakes: assuming a large window means the model remembers past calls (it does not, unless the product stores and reloads them), and putting long policy documents in every request instead of retrieving the relevant part.

Example

A chat with a customer runs for an hour. Instead of sending the full history every time, the agent keeps a short summary of the early part and the last few messages in full, so it stays inside the context window.

Why Context window Matters

The context window sets how much an AI agent can consider at once. It affects cost, speed and whether the agent keeps track of a long conversation.

Explore More Terms

Browse our complete glossary of e-commerce and subscription terms.

Space, at your fingertips

What would you do with 22% more revenue?