A neural network trained on very large amounts of text to predict what comes next, which turns out to be enough to answer questions, write code and ho...
The maximum number of tokens a model can consider at once — everything it is allowed to "see" for a single response.
Also known as: Context Length
The context window is the hard limit on how much a model can attend to in one go, counted in tokens and shared between the prompt and the response. Exceed it and something has to be dropped.
Windows have grown from a couple of thousand tokens to hundreds of thousands, but bigger is not straightforwardly better. Attention cost grows quadratically with length, and models reliably attend better to the beginning and end of a long context than the middle — the "lost in the middle" effect. Filling a large window indiscriminately often performs worse than retrieving the right few thousand tokens.
A neural network trained on very large amounts of text to predict what comes next, which turns out to be enough to answer questions, write code and ho...
The unit a language model actually reads and writes — usually a word fragment rather than a word or a character.
Prompting a model to work through its reasoning step by step before answering, which measurably improves multi-step problems.
Fetching relevant documents at query time and putting them in the prompt, so the model answers from your data rather than its memory.
Asking a model to do a task it was never explicitly trained on, using only an instruction and no examples.
Giving a model a handful of worked examples in the prompt so it infers the pattern you want.
Definitions are reviewed by our editorial team. Spotted a problem? Tell us.