Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rokkamokka
· 1y ago · 0 comments
For LLMs I recommend just doing NDJSON, that is, newline delimited json. It's much simpler to implement
Comments
[–]
rictic
1y ago
Do any LLMs support constrained generation of newline delimited json? Or have you found that they're generally reliable enough that you don't need to do constrained sampling?
[–]
sprobertson
1y ago
not for the standard hosted APIs using structured output or function calling, best you can get is an array
[–]
stevage
1y ago
I love NDJSON in general. I use it a lot for spatial data processing (GDAL calls it GeoJsonSeq).