-
Notifications
You must be signed in to change notification settings - Fork 815
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
I am getting the error "TypeError(ufunc 'invert' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'')" and context_recall as 0 #1796
Comments
hey @tvsathish are you still facing this? If you are facing this could you run cheers 🙂 |
#1796 TypeError(ufunc 'invert' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'') will trigger when evaluating by `FactualCorrectness`
thanks to @oslijunw this issue has been fixed 🔥 |
I upgraded ragas to the latest version but I am still seeing this error message in the output
|
Can you provide some sample data in Excel, or forge a table with similar structure? @tvsathish |
Hi @oslijunw, I have tried to attach a sample Excel (can't share full data) - hope it helps in troubleshooting. This is the detailed exception I get:
Regards, |
I found the reason why the error still occurs. I will resubmit the PR later. Because the abnormal trigger point of my sample is different from your sample, it is not fixed. In addition, is your context recall still 0? |
The reason why the context recall score is still 0 is that the content of your document is a URL. The evaluation framework will not actively request related documents for you, so you have to handle it yourself. @tvsathish |
Hi @oslijunw, |
#1796 Compatibility is being fixed due to different sample trigger points
[ ] I checked the documentation and related resources and couldn't find an answer to my question.
Your Question
Why am I getting this error "TypeError(ufunc 'invert' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'')" and why is my context_recall value showing up as 0.000000
Code Examples
`
AZURE_OPENAI_KEY is environment variable
Additional context
Output:
The text was updated successfully, but these errors were encountered: