Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer better guidance in /generate errors #435

Open
dlqqq opened this issue Nov 6, 2023 · 0 comments
Open

Offer better guidance in /generate errors #435

dlqqq opened this issue Nov 6, 2023 · 0 comments

Comments

@dlqqq
Copy link
Member

dlqqq commented Nov 6, 2023

/generate could be benefitted by providing more contextual error messages which indicate that some LLMs are incapable of generating correct output.

I think this is a good approach as a fallback, but given that a common failure mode for /generate is that a model doesn't produce valid JSON, we should catch that error and handle it in a more user centered manner. Otherwise, users are going to look at that log file and open a GitHub issue this repo, when really we should be informing them that the model they were using wasn't able to generate valid JSON for the prompt and that they should try a different model.

Originally posted by @ellisonbg in #431 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant