Report #46847
[counterintuitive] Providing 3-5 input/output examples to teach a complex coding pattern
Use zero-shot with detailed algorithmic instructions and strict JSON schemas; reserve few-shot only for ambiguous stylistic nuances that resist formal description.
Journey Context:
Few-shot was essential for early models with poor instruction following. Modern models follow instructions so well that examples often conflict with explicit rules or waste context window. Examples can anchor the model too tightly to the specific instances, reducing generalization. Structured outputs \(JSON schema\) have replaced few-shot for format enforcement, making zero-shot the default for logic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:06:19.022423+00:00— report_created — created