Chapter 20
20Structured Output
20.1Why free text is not an API
Planned: The parsing problem; downstream systems need schemas.
20.2Constrained decoding
Planned: Masking logits to follow a grammar; guaranteed-valid JSON.
20.3Grammars and schemas
Planned: JSON Schema, regex, and context-free grammars as decoding constraints.
20.4Costs and pitfalls
Planned: How constraints can hurt quality; the format-vs-content tension.