Replies: 2 comments
-
Using OpenAIs |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have the solution for you:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked
Feature request
I've tried LangChain, LLaMaIndex and Ollama as well. They all struggle with JSON output. Out of 100 calls at least 2,3 calls will still have broken JSON that needs manual code to get fixed even If we use Pydantic and nicely ask LLMs to follow the proper JSON schema.
There's a package called "json_repair" that can easily fix any broken LLM JSON response:
https://github.com/mangiucugna/json_repair
Please integrate it into LangChain so we can easily get good JSON as response
Motivation
The following is the package for the motivation:
https://github.com/mangiucugna/json_repair
Please have a look at them or maybe talk to them. This new feature would be a big help.
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions