Showing 1–2 of 2 · #json
PROMPTSStructured output without JSON mode: 7 patterns that hold up
Schemas in the prompt, sentinels, validate-and-repair loops and smaller output shapes. Patterns that make any model return parseable data.
MOMira OkaforOct 31 · 6 min
TESTSStructured outputs vs. plain prompts: when constrained decoding is worth it
Schema-constrained decoding guarantees valid JSON. It does not guarantee correct data, and it can cost quality. How to choose and how to test.
JLJonas LindSep 29 · 6 min