all AI news
Jsonformer: A Bulletproof Way to Generate Structured JSON from Language Models
May 8, 2023, 11:02 p.m. |
Simon Willison's Weblog simonwillison.net
Jsonformer: A Bulletproof Way to Generate Structured JSON from Language Models
This is such an interesting trick. A common challenge with LLMs is getting them to output a specific JSON shape of data reliably, without occasionally messing up and generating invalid JSON or outputting other text.
Jsonformer addresses this in a truly ingenious way: it implements code that interacts with the logic that decides which token to output next, influenced by a JSON schema. If that code knows that the …
ai challenge data generativeai json language language models llms text
More from simonwillison.net / Simon Willison's Weblog
Quoting Alex Jason, via Adam Savage
1 day, 10 hours ago |
simonwillison.net
Blogmarks that use markdown
1 day, 19 hours ago |
simonwillison.net
No, Most Books Don't Sell Only a Dozen Copies
1 day, 20 hours ago |
simonwillison.net
Jobs in AI, ML, Big Data
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne
Senior Machine Learning Engineer (MLOps)
@ Promaton | Remote, Europe
Senior Business Intelligence Developer / Analyst
@ Transamerica | Work From Home, USA
Data Analyst (All Levels)
@ Noblis | Bethesda, MD, United States