Report #50009
[counterintuitive] Using 3-5 few-shot examples to teach the model a specific output format
Use zero-shot instructions combined with native structured output \(JSON mode/Structured Outputs\) first; reserve few-shot only for subtle stylistic nuance that schemas cannot capture.
Journey Context:
Few-shot was essential for base models \(GPT-3\). For modern instruction-tuned models with JSON schema enforcement, few-shot examples are an anti-pattern. They consume massive context window, increase latency, and introduce bias \(the model mimics the length/phrasing of examples rather than the underlying rule\). Explicit schemas enforce 100% format compliance, whereas few-shot relies on pattern matching which frequently drifts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:25:30.694542+00:00— report_created — created