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

fix: fixed verdict comparison in evolutions.py #1366

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MarkHmnv
Copy link

The bug is located in the ragas.testset.Evolution class. The problem is that you are checking the ‘verdict’ field against a string value of ‘-1’, and you need to compare it against an int value of -1:
{629CB6B1-CCF2-4FD0-988E-60BE9635D6FA}
{0CD30A93-DBB5-49AA-833D-1169960D694E}

So I changed the verdict comparison from a string to an integer in the conditional check.

Changed the verdict comparison from a string to an integer in the conditional check. This ensures proper handling of the 'verdict' field when processing the 'answer' dictionary.
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant