-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix: avoid FaithfulnessEvaluator and ContextRelevanceEvaluator return Nan
#7685
Conversation
Nan
Pull Request Test Coverage Report for Build 9078293946Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix for FaithfulnessEvaluator and the newly added test look good to me. 👍 Let's add release notes and I'd suggest to also add the same fix for the ContextRelevanceEvaluator as part of this PR.
res["score"] = np_mean(res["statement_scores"]) |
If you want to put that fix in a separate PR, we cannot close the issue yet and thus need to change the PR description with the "fixes #..."
you are right, I forgot that one - the error only occur to me on the |
Nan
Nan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍 Just updated the PR title to include ContextRelevanceEvaluator too.
… `Nan` (#7685) * initial import * fixing tests * relaxing condition * adding safeguard for ContextRelevanceEvaluator as well * adding release notes
Related Issues
NaN
#7671How did you test it?