Open
Description
[ x ] I have checked the documentation and related resources and couldn't resolve my bug.
Describe the bug
In the Nvidia Accuracy metric calculation, the User Answer and Reference Answer were supposed to be swapped (according to docs) in steps 1 and 2. However, it's not really swapping, as both titles and values are being swapped.
Ragas version: 0.2.14
Activity
sahusiddharth commentedon Apr 13, 2025
Hi @vitorsabbagh, are you just referring to the example in the docs?
the example calculation is not the best example because both the response and reference is the same.
If we look under the hood, it swapping is happening.
notice
answer0
andanswer1
they are getting swapped.vitorsabbagh commentedon Apr 13, 2025
Hi @sahusiddharth, you're right! However, notice that sentence_inference and sentence_true are also being swapped. It's a double swap.
sahusiddharth commentedon Apr 13, 2025
Yes @vitorsabbagh, you are correct thank-you letting us know. I will raise a PR to fix this.