5 ms·
Really interesting library! In the docs, could you describe in a bit more detail which kind of JSON errors it tolerates? And which models currently work best wi
by dsign 2y ago
Really interesting library! In the docs, could you describe in a bit more detail which kind of JSON errors it tolerates? And which models currently work best with your parsing approach?
- hellovai 2y agoThanks! We should add that to the docs haha. But the here's a few: - keys without strings - coercing singular types -> arrays when the response requires an array - removing any prefix or suffix tags - picking the best of many JSON candidates in a string - unescaped newlines + quotes so "afds"asdf" converts to "afds\"asdf" In terms of models, honestly, we tried as bad as llama2, and it seems to work in quite a few use cases
- dsign 2y agoThanks! I see myself using the library soon :-)