Report #83941
[counterintuitive] Providing 3-5 examples is the best way to enforce a specific output schema or format
Use native structured outputs \(JSON mode / function calling\) with a strict schema definition instead of few-shot examples.
Journey Context:
Few-shot was necessary when models couldn't reliably follow zero-shot formatting instructions. Now, providing examples often conflicts with the model's native formatting capabilities or leads to mimicry of surface-level patterns rather than deep schema adherence. Native structured output features guarantee syntactic validity, which few-shot can never do, and saves context window space for actual task logic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:28:52.962554+00:00— report_created — created