Skip to content
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

How to Save Retrieved Documents in Retrieval Tasks #171

Open
AugustLHHHHHH opened this issue May 11, 2024 · 0 comments
Open

How to Save Retrieved Documents in Retrieval Tasks #171

AugustLHHHHHH opened this issue May 11, 2024 · 0 comments

Comments

@AugustLHHHHHH
Copy link

I am currently working on an information retrieval task and I want to save the retrieved documents for bad case analysis.
I have printed the output of the search function in beir/retrieval/search/dense/exact_search.py, and the format is {q_id: {pid: score}}. such as:

image

However, it seems that the corpus ids are not sorted according to the scores. Should I sort the results by cosine similarity from high to low and save them so that the most relevant documents are placed at the beginning?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant