← My notebook

09 · Models

Context window

Everything a model can use at once lives in its context window. It has a hard size, and what falls outside it is gone.

One fixed window

The prompt, the conversation so far, retrieved documents and the answer being written all share one window, measured in tokens. In the picture it holds six. Real windows hold many thousands, but the rule is the same.

Old tokens fall out

When the window is full, something has to go. In a simple sliding setup, the oldest tokens drop off the front. They are not summarised or archived. As far as the model is concerned, they never happened.

Lost means lost

"Site E14-02 lost 420 litres" started the conversation. Ten tokens later, "E14-02" has fallen out. Ask which site lost fuel and the model has nothing to read the answer from. It may still answer, which is worse.

What to watch for

Put what matters near the question. Summarise long histories deliberately instead of letting them slide. And retrieve facts when needed rather than hoping they survived from earlier.