Ollama JSON mode #19
pixelsquared
started this conversation in
General
Replies: 2 comments 1 reply
-
I had not - that would be vastly preferable to how it's being done right now. Thanks! Do you have time to replace the existing JSON system with the better Ollama method and open a PR? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks for the input. It definitely reduced the json generation errors. Sadly the LLMs still manage to outsmart the JSON parser by escaping etc which sometimes still causes errors but now it's faster :) |
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
-
Have you considered using Ollama's JSON mode for the JSON generation? https://github.com/ollama/ollama/blob/main/docs/api.md#json-mode
Beta Was this translation helpful? Give feedback.
All reactions