Report #29806
[cost\_intel] Using strict JSON schema enforcement for simple outputs when it is not needed
For simple extractions from small models, ask for Markdown or a minimal custom format and parse it with regex, rather than forcing complex JSON schemas which bloat output tokens and increase cost.
Journey Context:
Strict JSON schemas \(like OpenAI's structured outputs\) are great for reliability, but they force the model to emit all the key names and structural tokens \(braces, quotes\). For a small model doing a simple extraction, the structural tokens can outnumber the data tokens 3:1. If the extraction is simple \(e.g., a list of items\), asking for a markdown list and parsing it is often just as reliable and significantly cheaper. Reserve strict JSON schemas for complex, nested outputs where parsing failures are costly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:25:09.129501+00:00— report_created — created