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...
Giving a model a handful of worked examples in the prompt so it infers the pattern you want.
Also known as: In-Context Learning
Few-shot prompting includes a small number of input/output examples before the real input. The model infers the pattern and continues it — no weights change, which is why it is also called in-context learning.
It is usually the highest-leverage change available when a zero-shot prompt is nearly right: examples communicate format and edge-case handling far more reliably than prose instructions do. Three to five well-chosen examples typically capture most of the benefit.
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.
The maximum number of tokens a model can consider at once — everything it is allowed to "see" for a single response.
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.