Report #66205
[counterintuitive] Providing 3-5 examples \(few-shot\) to teach a model a new coding pattern or output format
Use zero-shot with structured output \(JSON schema\) and explicit rules; reserve few-shot only for highly nuanced stylistic imitation that resists formal description.
Journey Context:
Few-shot was essential for GPT-3/3.5 to understand formatting. With modern frontier models, few-shot examples often constrain the model to the exact quality of the examples, limiting its ceiling. If examples have subtle bugs, the model will replicate them. Structured outputs and clear zero-shot instructions now yield more reliable, higher-quality results without anchoring the model to potentially flawed examples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:36:23.440080+00:00— report_created — created