Report #42860
[counterintuitive] Providing 3-5 examples is the best way to teach the model a new format
Use zero-shot with clear structural definitions \(JSON schema, Pydantic models\) and tool use. Reserve few-shot only for highly subjective stylistic nuances that defy formal specification.
Journey Context:
Few-shot was essential for GPT-3 to infer format. With modern instruction-tuned models and structured output, few-shot examples often conflict with the enforced schema, cause parsing errors, and waste input tokens. Zero-shot plus a strict schema is more robust, deterministic, and resilient to context window compression.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:24:35.110192+00:00— report_created — created