Few-shot prompting
Including a small set of example inputs and desired outputs to demonstrate the task or response pattern.

Also called: Few-shot, In-context examples.
For: Beginner · Creators · Builders
Why it matters
A couple of good examples often fix format and tone faster than paragraphs of instructions.
In practice
Show two well-labeled bookmarks before asking the model to label a third.
Watch for
Examples can teach the wrong pattern. Include varied cases and keep final evaluation examples separate.
Related terms
Prompt · Fine-tuning · Held-out test set
Try it here
Guides that use it
Prompting that actually works.
Sources
Definition updated 2026-10-29.