Structured outputs and few-shot examples: getting reliable data from LLMs

· Flaviocopes · Nov. 28, 2026, 8:20 a.m.
Summary
This blog post explores the techniques of constrained decoding, JSON Schema design, field order, nullable fields, and few-shot examples as methods for obtaining reliable data from large language models (LLMs). It analyzes these techniques over 150 release-note runs to draw insights and optimize data extraction from LLMs.