Few-shot prompting

multishot prompting, in-context learning, examples in the prompt
In one sentence

Showing a model a few worked examples inside the prompt so that it copies the pattern, with no training involved and nothing remembered afterwards.

The weights never move. The examples are tokens in the context window, and the model, whose whole job is to continue text plausibly, continues the pattern it was just shown. Gone with the window, re-sent and paid for on every call. Examples are copied faithfully, flaws included: a typo in one example becomes a typo in the output. Pick them like test data, covering the awkward cases too.

Back to all terms

Ready to make an impact?

Turning complex ideas into clear, user-centered product experiences.