brainax

What is a context window

A context window is how much text an AI model can see at once. It's measured in tokens: pieces of text such as a whole word, part of a word, sometimes a space or a punctuation mark. Everything goes into it together: your messages, the model's replies, pasted files and the chat's hidden settings. Whatever doesn't fit simply doesn't exist for the model.

That's why a long chat loses its start: once the text grows bigger than the window, the oldest messages drop out or get compressed, and the model "forgets" a condition from your first message. Even inside the window it sometimes misses details in the middle of a long text. What to do: ask for a short summary, start a new chat, paste the summary there and repeat the key conditions. In English one token is about 3/4 of a word on average; in other languages you usually get fewer words per token.

Covered in the lessonWhat Are Tokens in AI and What Is a Context Window?Open the lesson →

More terms from this course