LLM

Part 5 · Getting Reliable JSON Out of a Local LLM featured image

Part 5 · Getting Reliable JSON Out of a Local LLM

format="json" gets you 90% of the way there. The other 10% is trailing commas, shape surprises, and items that almost-but-don't-quite match the schema. Here's the defensive pattern …

avatar
Ndimofor Aretas