News for hackers. Stuff that matters.
Re:Show HN: BBC “In Our Time”, categorised by Dewey Decimal,... by Janymos on Thursday March 09, 2023 @09:11AM (#35081308)
I wonder what the standard approach is when the LLM does not return valid JSON data? Do you skip the input data all together, or use the parsing error to generate a valid JSON?
Re:Show HN: BBC “In Our Time”, categorised by Dewey Decimal,... by genmon on Friday March 10, 2023 @12:52PM (#35098158)
The general rule is: be minimally liberal in what I receive :)

A parse error kicks off a recovery process where, in theory, we could run any number of rules. In practice the only problems are unescaped quotes in strings, or mismatched quotes (start with `"` and terminate with `'`)