You're prompting GPT-5.5 for English-to-Spanish translation. The zero-shot version works fine. When would adding few-shot examples reliably outperform the zero-shot prompt?
Few-shot wins when you need a specific format, style, or niche pattern the zero-shot prompt does not reliably produce, not for raw accuracy on common tasks.
Imagine you ask a fluent bilingual friend to translate a sentence. They will do it correctly without any examples because they already know both languages. But if you want every translation written in a very specific layout, like always putting the original sentence above the translation, you have to show them what you mean once or twice. The examples are not teaching them Spanish. They are teaching them YOUR format. Few-shot examples in prompts work the same way. With strong modern models, the language knowledge is already there. Examples are most useful when you need to lock in a structure or a niche style the model would not guess on its own.
Detailed answer & concept explanation~5 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: format vs knowledge framing + when zero-shot wins on frontier models + three cases where few-shot still wins + token-cost and noisy-example traps.
| Concern | Zero-shot | Few-shot |
|---|---|---|
| Token cost | Lower | Higher; examples eat input budget |
| Best for | Common tasks, strong models, fast iteration | Niche tasks, strict format, hard-to-describe style |
| Failure mode | Format drift on edge cases | Noisy examples mislead the model |
| Maintenance | Just an instruction | Curated examples to keep current |
| 2026 default | Yes on Claude Opus 4.7, GPT-5.5, Gemini 3.1 Pro | Reserve for format and niche style |
Real products, models, and research that use this idea.
- OpenAI's structured outputs feature uses a single schema directive instead of few-shot for JSON adherence, because GPT-5.5 follows the schema reliably zero-shot.
- Anthropic Workbench defaults to zero-shot for most prompt drafts, with few-shot reserved for style-mimicking tasks like brand voice or legal phrasing.
- Cursor uses few-shot examples in its code-edit prompts because the desired diff format is highly specific and not what a model guesses by default.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you pick few-shot examples that actually help?
QWhen can few-shot examples actively hurt accuracy?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Adding few-shot examples by reflex on a task the model already does well, which adds latency and tokens without measurably moving accuracy.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.