Valid JSON, empty insides: the new failure mode of structured output, and two fixes
Playful-Force5982 · reddit · 2026-11-29
Structured output no longer fails on format—every schema now returns valid JSON—but the author's real problem is hollow content: required strings filled with "N/A", technically-present-but-empty arrays, summary fields that just restate the title. The parser and downstream steps are happy; the user gets a card with no information.
Two fixes that worked:
- Let the model say it doesn't know: make fields nullable and add a short reason field next to hollow-prone ones, so the model can return null with "source doc doesn't mention pricing". Filler dropped sharply, and the nulls themselves turned out useful for spotting thin source documents.
- A cheap second pass with a small model that only checks filler patterns, much cheaper than re-asking the big model.
The author also flags an eval blind spot: existing evals check structure, not content, so all hollow outputs scored as pass.
More from coding & agent
- Devs create /human folders to reclaim design decisions AI keeps making for them — VraserX · 2026-11-29
- Open-source tool verifies whether your AI agent's "done" actually happened — Extension_Pitch9081 · 2026-11-29
- Study: devs finish 10 min faster with an LLM, then take 60% longer to find planted bugs — Dedap85 · 2026-11-29
- Building a diabetes drug knowledge graph with Stardog, Snowflake and MCP — adnan_hashmi · 2026-11-29
- Agentic Harness Engineering: The 4 Pillars of the Agent Orchestration Layer — adnan_hashmi · 2026-11-29
- Vibe-coded Three.js 3D map of La Plagne colors 139 ski runs by gradient — IgorCarron · 2026-11-29