What a context window means
A language model doesn't read an entire document without limit. Before responding, it converts all the relevant text (the system prompt, the conversation history, any attached document) into units called tokens, and it can only take a maximum number of those units into account in a single request. That maximum is the context window.
A token doesn't equal exactly one word: it can be a whole word, part of a word, or a punctuation mark, depending on how the model splits the text. That's why the context window is always measured in tokens, not words or characters, and the conversion between the two varies noticeably by language and by model.
The context window shouldn't be confused with the model's training memory. Training is the enormous corpus of text used to adjust the model's parameters, already fixed before the conversation exists. The context window is different: it's the working memory of that specific conversation, the space that holds what has been said so far and what the model is about to generate next. A model can know something from its training and still be unable to use it in a response if that information never actually entered that specific conversation's context window, and only ever sat somewhere in the training data.