Few-shot lift flattens after 3-6 examples while token cost stays linear; the right count is the smallest set that covers every distinct output shape and known edge case.
Picture teaching a new hire how to format a report. Show them one good example and they get the rough shape. Show them three covering the variations they will see and they get it solidly. Show them twelve and you are now training, not onboarding. The fourth through twelfth example each adds less than the one before, but the time you spend reading them through together does not shrink. At some point you are no longer teaching the format. You are doing the new hire's first month of work for them, on the clock, in the meeting. A prompt with twelve few-shot examples has the same shape.
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.
4 minutes: lift curve shape, cost shape, the squeeze effect, coverage-based sizing, the fine-tuning crossover, ordering matters, when caching changes the math.
Real products, models, and research that use this idea.
- OpenAI's 2026 prompt engineering guide for GPT-5.5 explicitly notes diminishing returns past 4-5 examples on most tasks and points to fine-tuning for richer pattern coverage.
- Anthropic's Claude Opus 4.7 documentation recommends 2-4 well-chosen examples for structured-output tasks and prompt caching for the example block.
- Hugging Face PEFT and the OpenAI fine-tuning API both target the 'twelve examples is too many' inflection point with LoRA workflows that need 100-500 labeled samples.
- DSPy treats prompts including few-shot examples as compiled artifacts; the optimizer routinely selects 2-4 examples from a candidate pool, confirming the empirical knee.
- Llama 4 Maverick instruction-tuned variants show the same shape: marginal lift past 4 examples on structured-output benchmarks like BIG-Bench Hard.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow does example ordering affect output, and which example matters most?
QHow does prompt caching change the cost equation for few-shot?
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 examples until quality stops improving without checking whether each example covers a distinct case. Three carefully chosen examples that span the actual output shapes usually beats twelve that all demonstrate the same case slightly differently.
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.