Report #40155
[counterintuitive] Providing 3-5 examples \(few-shot\) to teach a modern model a new output format or task structure
Use zero-shot instructions with strict JSON Schema \(Structured Outputs\) or XML schemas; reserve few-shot only for highly nuanced stylistic mimicry that defies formal specification.
Journey Context:
Few-shot was essential when models had poor instruction following. Now, examples consume massive context window space and introduce bias or edge-case collisions. Structured outputs \(JSON schema\) and precise zero-shot instructions are more compute-efficient and far less prone to conflicting signals from imperfect examples. Modern models generalize from schemas better than from examples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:52:21.251206+00:00— report_created — created