We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
Having an issue with LLM-based evaluators, they do not always return a valid JSON and break the whole evaluation process.
Describe the solution you'd like One possible (only for ChatGP) is to explicitly ask for JSON-only responses:
passing the following parameter to the call response_format={ "type": "json_object" }
response_format={ "type": "json_object" }
Probably a simple change in the LLMEvaluator starting here:
LLMEvaluator
haystack/haystack/components/evaluators/llm_evaluator.py
Line 86 in f14bc53
The text was updated successfully, but these errors were encountered:
davidsbatista
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
Having an issue with LLM-based evaluators, they do not always return a valid JSON and break the whole evaluation process.
Describe the solution you'd like
One possible (only for ChatGP) is to explicitly ask for JSON-only responses:
passing the following parameter to the call
response_format={ "type": "json_object" }
Probably a simple change in the
LLMEvaluator
starting here:haystack/haystack/components/evaluators/llm_evaluator.py
Line 86 in f14bc53
The text was updated successfully, but these errors were encountered: