On LLM Control
A 3-part series on making LLMs produce reliable structured output without fine-tuning.
Runnable failure fixtures (v1.0)
I put together 12 nasty extraction cases where JSON comes back valid and still has wrong totals, flipped credit memo signs, or made up fields, along with a small pytest scorer you can run locally.
See the fixtures and grab the pytest runner →-
Part 1 of 3
Schema DesignMaking LLMs produce reliable JSON - Part 1 of 3. Simple schemas, detailed descriptions, constrained decoding, and why enums beat strings.
-
Part 2 of 3
When One LLM Isn't EnoughMaking LLMs produce reliable JSON - Part 2 of 3. Multi-model architectures, writer-critic loops, best-of-N sampling, and the freeform thinker + JSON formatter pattern.
-
Part 3 of 3
Shipping in ProductionMaking LLMs produce reliable JSON - Part 3 of 3. Temperature tuning, graceful degradation, observability, token caching, jailbreak detection.