Report #74491
[counterintuitive] Providing 3-5 examples \(few-shot\) to teach a model a new output format
Use zero-shot with a detailed JSON schema or native structured output enforcement \(JSON mode/tool use\) instead of few-shot examples.
Journey Context:
Few-shot was essential for GPT-3 to understand intent. With modern instruction-tuned models, few-shot examples often conflict with the model's pre-trained formatting instincts, leading to inconsistent adherence. If you provide 3 examples, the model might over-index on the specific quirks of those examples \(like a specific variable name\). Specifying the exact JSON schema or using tool/function calling forces the model's output distribution deterministically, making few-shot redundant and often counterproductive for formatting tasks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:37:50.278801+00:00— report_created — created