-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
MAP and MRR wrong for multiple gold documents #7758
Comments
Hi @ju-gu I'm trying to understand the example above. You are providing 10 "retrievals" but have only 5 gold truth docs? In other words, you have:
I don't think this is a typical use case, are you sure this is what you're trying to do? Or are you trying to do this instead:
|
I am doing the latter. The two lists retrieved docs and true docs become a list of lists in these lines: ground_truth_documents=[[Document(content=content) for content in gold_docs]] So it is just one set of retrieved docs and one set of gold documents |
Describe the bug
Both the MAP and the MRR show wrong values. It seems we calculate the score for single gold documents and then override it after each instead of calculating it for the whole batch of gold documents.
Expected behavior
correct values
To Reproduce
The text was updated successfully, but these errors were encountered: