Report #84152
[counterintuitive] Providing 3-5 full few-shot examples for every coding task to ensure format and style
Use zero-shot with structured output schemas \(JSON/XML\) first; only add few-shot examples if the logic is highly unconventional.
Journey Context:
In the GPT-3/3.5 era, few-shot was mandatory to steer the model. Modern models have strong instruction-following and zero-shot capabilities. Few-shot examples consume massive context window, increase latency/cost, and can cause 'anchoring' where the model copies the example's flaws or fails to generalize beyond the example. Schema-first zero-shot is now the default and more robust for formatting, while few-shot should be reserved for demonstrating nuanced logic that schemas cannot capture.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:50:34.927727+00:00— report_created — created