-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
SASEvaluator returns score even when predicted_answers
contains None
#7842
Comments
This is something that I'm manually doing in my workflow, but I would like to see a component for. We have The handling of 'None' might need to be applied to LLMEvaluator as well. I run a forked version and it accepts 'None' as a parameter and returns an answer. I will try running it on the main Haystack code to see what happens. |
None is a value in the input list. In that case, we should raise a TypeError and let the user know that all values in the list are expected to be str.
|
None
None
None
predicted_answers
contains None
I had a fix for LLM evaluator locally, but it looks like it was fixed as another PR #7818, so I made a PR request for my fix of SAS |
In a RAG pipeline, there are cases where the prompt instructs the LLM to return a placeholder answer if there is missing information in the context, such as "No answer". See an example in our evaluation repository.
In that case, it makes sense to replace the predicted answer in the RAG pipeline with
None
, instead of computing any metric on the placeholder answer. However, the SASEvaluator returns a score even ifNone
is passed.Example:
the output is:
Expected
The text was updated successfully, but these errors were encountered: