Report #74325
[counterintuitive] Providing multiple few-shot examples is the best way to ensure format and style adherence
Use zero-shot with native structured output enforcement \(JSON Schema/Tool Calling\) for format adherence. Reserve few-shot only for highly idiosyncratic stylistic mimicry.
Journey Context:
Few-shot was essential when models struggled with zero-shot instruction following. Today, few-shot examples often conflict with each other or with the system prompt, confusing the attention mechanism. Modern models have robust instruction following and structured output features. Few-shot eats context window, increases latency, and is probabilistic. Schema enforcement is 100% reliable for structure; zero-shot with clear constraints is faster and more deterministic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:21:05.222882+00:00— report_created — created