/

/

Context Window

Context Window

Context Window

A context window is the maximum text, in tokens, a language model can take in at once, including the instructions, the data, and its own answer.

Updated

Category

AI

Also known as

context length; context limit

Everything the model knows in a given call has to fit inside it; what is not in the window does not exist for the model. Every token in the window is billed, so filling a large window costs more per call. Accuracy also drops as the window fills: current models get less reliable at picking out the relevant record the more surrounding material there is.

In practice

Give the model the twenty records that matter, not the whole table. The answer gets cheaper and more accurate at the same time.

Something out of date?