
During inference, an LLM processes your prompt and everything that came before it through something called a context window. You can think of this as the model’s short-term memory. It holds a fixed amount of text, and the model uses this text to decide what comes next.
The catch comes from the size of that window. Each model has a limit. If a conversation grows too long and pushes past that boundary, the model cannot “see” the earlier material anymore. The information hasn’t vanished; it simply sits outside the window. When this happens, the model begins to lose track of details, repeat itself, or drift into contradictions because the earlier context no longer guides its internal navigation.
You can picture it like walking through the semantic cloud with a torch that only lights up a certain radius. Everything outside the beam fades into darkness.
To manage this, we rely on techniques such as summarisation and distillation. Summarisation compresses long stretches of conversation into a smaller form that still fits inside the window. Distillation extracts only the key facts or constraints, much like how humans retain essential details while letting peripheral information fade. These techniques keep the model grounded by preserving the landmarks it needs to stay oriented.
This limitation may look artificial, but it mirrors something familiar. Human memory grows fuzzier as conversations stretch on. We compress, we generalise, we forget, and we rebuild meaning from what remains active in our minds. LLMs behave in a similar way, except the boundaries come from architecture rather than biology.
The context window shapes what the model can attend to in the moment.
Keep the important parts inside the beam, and the model stays anchored.
Let the window drift too far, and the model loses its footing.