Report #43051
[counterintuitive] Providing 3-5 examples \(few-shot\) to teach a modern LLM a new output format
Use zero-shot with explicit schema definitions \(JSON mode/Structured Outputs\) or detailed algorithmic instructions. Reserve few-shot for highly nuanced edge-case formatting that resists formal description.
Journey Context:
Few-shot was essential when models struggled with zero-shot instruction following. Now, modern models are highly instruction-tuned. Few-shot examples often anchor the model too rigidly to the specific examples, reducing its ability to generalize to out-of-distribution inputs. Furthermore, few-shot eats up massive context window space compared to a concise JSON schema. Structured outputs guarantee formatting without needing examples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:44:00.854280+00:00— report_created — created