skip to content
Home Prabal
← All Series

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 →
  1. Part 1 of 3

    Schema Design

    Making LLMs produce reliable JSON - Part 1 of 3. Simple schemas, detailed descriptions, constrained decoding, and why enums beat strings.

  2. Part 2 of 3

    When One LLM Isn't Enough

    Making 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.

  3. Part 3 of 3

    Shipping in Production

    Making LLMs produce reliable JSON - Part 3 of 3. Temperature tuning, graceful degradation, observability, token caching, jailbreak detection.