Report #37691
[synthesis] Suboptimal structured extraction due to wrong output format enforcement
Use XML tags \(e.g., \`\`\) for Claude structured extraction, Markdown/JSON for GPT-4o, and strict JSON schema for Gemini.
Journey Context:
Forcing JSON mode on Claude 3.5 often leads to escaping errors or truncated outputs, whereas Claude natively excels at XML tagging for structured data extraction. GPT-4o's JSON mode is highly reliable but struggles with complex XML. Gemini 1.5 Pro performs best with explicit JSON schemas provided in the prompt. Using a uniform JSON-only extraction strategy leaves Claude's performance on the table and increases token cost. Adapting the requested format to the model's native tokenizer strengths yields higher accuracy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T17:44:43.733122+00:00— report_created — created