Tokens and context: what the model can see
A model reads text as tokens, small pieces of words, and can only take into account the tokens that fit in its context window at that moment.
Read first: What does a language model do?
Models do not read letters or whole words. They read tokens: a common word is usually a single token, while a rarer word is split into several pieces. In English a token is roughly three quarters of a word; in other languages, or in code, the same idea can take more tokens. The price, speed and limits of a model are all counted in tokens.
The context window is everything the model can see while it writes one answer: your instructions, the conversation so far, any document you pasted and the answer it is producing. It has a fixed size. When a conversation grows past it, the product drops or summarises the oldest parts, and the model simply no longer has them.
A bigger window is not the same as better attention. Studies have found that models use information at the beginning and the end of a long context more reliably than information buried in the middle. Putting the important instruction where it cannot be missed, and leaving out what is not needed, usually helps more than adding everything.
An everyday example
A long chat about planning a trip starts with "I am vegetarian". Two hours and many messages later, the assistant suggests a steakhouse. Nothing broke: that first message no longer fits in what the model can see, or it is buried under everything that came after it.
A common misconception
- What people think
- The assistant remembers everything I have ever told it.
- What actually happens
- It sees only what is inside its context window right now. Anything else is gone, unless the product stores it separately, for example in a memory feature, and puts it back into the context.
Check it yourself
Paste a long document into an assistant and ask about a detail from its middle, then about one from its first lines. Then repeat the middle detail at the end of your question and ask again.