Context Length
What is Context Length?
In one sentence: Context length is the number of tokens a model can handle at once, or how many tokens are currently being used.
People often use it to mean the same thing as context window size. Sometimes it means how much of the window a particular conversation is using right now. Longer context lets the model work with bigger documents, but it uses more memory and can be slower and more expensive.
What does Context Length look like?
A model might support a context length of 128,000 tokens, while your current chat uses only 3,000.
Why does Context Length matter?
Context length affects what tasks a model can handle, like reading a whole codebase or a long contract.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/context-length/">Context Length, explained simply</a> (The AI Math Dictionary)