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.
Also known as: Tokenization, Tokenisation
Models do not read characters or words; they read tokens. A tokeniser splits text into pieces drawn from a fixed vocabulary, typically using an algorithm like byte-pair encoding that keeps common words whole and breaks rare ones into fragments.
As a rough guide, one token is about four characters of English, and 100 tokens is about 75 words. Code, non-Latin scripts and unusual names all tokenise less efficiently, which is why the same paragraph can cost noticeably more in Japanese than in English.
Tokenisation explains several otherwise-baffling model behaviours: difficulty counting letters in a word, inconsistent arithmetic on long numbers, and sensitivity to whitespace all trace back to the fact that the model never saw the characters.
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.
Giving a model a handful of worked examples in the prompt so it infers the pattern you want.
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.
Definitions are reviewed by our editorial team. Spotted a problem? Tell us.