How much can an AI remember?

Knowledge Videos

Short animated explainers, organised by subject.

How much can an AI remember?

The context window, forgetting, the cost of long inputs, and workarounds.

Transcript

A language model can only read a fixed number of tokens at once. That is its context window.

Your prompt, the chat history, and even its own reply all have to fit inside it.

When a conversation grows longer, the oldest tokens fall out of the window.

The model has no memory outside it, so it can forget what you said earlier.

Attention compares every token with every other, so longer windows cost far more compute.

Tricks like summarising the history, or retrieving only what matters, keep the important parts in view.

The context window is the model's working memory. Choose carefully what goes in.

More in this series