-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
KeyError: 'user_input' when calculating RAGAS metric #2056
Comments
I'm experiencing the same issue, and I believe this is a quite critical bug. I couldn't run evaluations with additional metrics. Any update on this? |
Hey @PierreMesure and @Snow31ind - This should be solved by #2052 Can you try again with Giskard latest release? |
@alexcombessie Thank for replying to us. Let me input more context on this issue. The version of giskard and ragas in my
I believe After inspecting the stack traceback, I'm wondering if the ragas sample in the giskard ragas metric wrapper matches the required interface in the base ragas metric score method, as the sample doesn't contain the Could you help double check on that? And is there any tests being run to make sure there's no data interface mismatch? |
I just reverted ragas to 0.1.21 and it works. 😊 @alexcombessie, I reported another problem fixed by #2052, I don't think this PR will fix it. |
@PierreMesure Awesome! You make my day. Anyway, this issue is worth having a fixed soon. Thanks team! |
Thanks! @henchaves could you have a look when you have time next week 🙏 ? |
Hello @PierreMesure and @Snow31ind, thanks a lot for reporting this bug. It should be reviewed and merged soon! |
Issue Type
Bug
Source
source
Giskard Library Version
2.15.3
OS Platform and Distribution
No response
Python version
No response
Installed python packages
Current Behaviour?
When trying to evaluate a RAG assistant with some RAGAS metrics (context recall), the evaluation fails. See stacktrace below.
This happens when trying to provide the answer as
AgentAnswer
. We're not super clear about what should be in thedocuments
parameter, the documentation doesn't give any clear example. We're using LlamaIndex soagent_output.source_nodes
doesn't return a list of strings. Here's what we've tried:Standalone code OR list down the steps to reproduce the issue
Relevant log output
The text was updated successfully, but these errors were encountered: