What the context window actually is
The context window is the maximum number of tokens the model can see in a single forward pass โ input tokens plus the tokens it generates. Beyond that limit, the model literally cannot attend to your text; it doesn't exist as far as the math is concerned.
A token isn't a word. In English, 1 token โ 0.75 words. "Hello, world!" is 3 tokens. A 1,000-word essay is ~1,300 tokens. Code, JSON, and non-Latin scripts tokenize less efficiently โ JSON often runs 1 token per 2โ3 characters because of all the structural punctuation.
For sizing prompts in your head: ~750 words โ 1K tokens, a typical novel โ 100K tokens.
