/FYOO-shot/
Providing 2-5 examples in your prompt so the AI can learn the pattern and apply it to new inputs. The most reliable way to control output format.
Few-shot prompting is giving an AI a handful of input-output examples before your actual request. It's the most reliable way to control format, tone, and reasoning style without fine-tuning a model. Show the AI three examples of how you want customer emails categorized, then give it the fourth — it'll follow the pattern.
Few-shot is more powerful than most people realize. It doesn't just teach format — it teaches judgment. If your examples all classify borderline cases as 'needs review' rather than forcing a binary, the model learns that nuance. The examples ARE the specification.
The sweet spot is 3-5 examples. Fewer than 3 and the model might not lock onto the pattern. More than 5 and you're wasting context window tokens with diminishing returns.
When you need consistent output format, domain-specific classification, or when zero-shot keeps getting the structure wrong.
Few-shot prompting is the bridge between 'AI that kinda works' and 'AI that works reliably.' It's the professional's secret weapon.
A few shots to calibrate — like a basketball player taking warm-up shots before the game.
A Mac app that coaches your AI vocabulary daily