-
Notifications
You must be signed in to change notification settings - Fork 817
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
Answer Relevance doesnt need context #1177
Comments
@mohamad-tohidi Hello there! I'm Dosu, a bot here to assist you with bug fixes, questions, and becoming a contributor. I'm here to help while you wait for a human maintainer. The To resolve the error, ensure that you provide a row = {
"question": "What is the capital of France?",
"contexts": ["Paris is the capital of France.", "It is known for its cafe culture and landmarks like the Eiffel Tower."]
} This will allow the The exact error message you receive when the question, contexts = row["question"], row["contexts"] If |
@dosu I'd like to add to this that, nowhere in the prompt it's instructing to go through the contexts. It's just taking care of non-committals and for contexts it's just few shot prompting. Maybe due to this I've noticed it's giving better scores for some of the wrong answers as compared to the correct ones. I'm no expert to say this but I think the prompt needs a little more fine tuning. Cheers and thanks! |
Looking at the prompt, I also feel like the contexts shouldn't be required for answer relevance. I understand the motivation for adding it in, exposed by @shahules786 on issue #440, but for many other cases, the context is not critical. @jjmachan, if that's ok, I could prepare a PR that makes the |
@gustavocidornelas your help would be highly appreciated - thanks a lot for offering! @shahules786 what do you think should be the next step? |
You're right. From the past experience, it seems to me that adding contexts just to fit edge cases in the relevancy metric is not very useful. Just raised a PR to fix this issue. |
[ ] I have checked the documentation and related resources and couldn't resolve my bug.
Describe the bug
the answer relevance metric, does not need context as input, it doesnt use it anywhere
so why is it when i try to run it without contexts list it gives me error?
even in the documentation you mentioned that it needs contexts, but you did not used it anywhere
The text was updated successfully, but these errors were encountered: