Tag: JSON

Blog

This blog is intended for software system engineers, architects and managers or people generally interested in development, testing and integration of software systems...

Tags

Show all 23 tagsShow fewer tags
JSON

Let’s make LLMs generate JSON!

Anonymous author profile picture
Miloš Švaňa

9 min read2 years ago

In this article, we are going to talk about three tools that can, at least in theory, force any local LLM to produce structured output: LM Format Enforcer, Outlines, and Guidance. After a short description of each tool, we will evaluate their performance on a few test cases ranging from book recommendations to extracting information from HTML. And the best for the end, we will show you how forcing LLMs to produce a structured output can be used to solve a very common problem in many businesses: extracting structured records from free-form text.

Read Article