Report #95552
[counterintuitive] Providing 3-5 examples to teach the model an output format or task
Use zero-shot with structured outputs \(JSON schema\) or explicit formatting instructions, reserving few-shot only for nuanced stylistic patterns.
Journey Context:
Few-shot was essential when models struggled with zero-shot instruction following. Now, it wastes context window, increases latency/cost, and introduces edge cases from the examples. Modern instruction-following and structured output \(e.g., OpenAI Structured Outputs, Anthropic tool use\) make zero-shot strictly superior for format enforcement. Few-shot examples often cause the model to overfit to the specific examples rather than following the general rule.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:57:36.980261+00:00— report_created — created