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

evaluate_anserini_bm25.py retrieves 1000 documents for each query no matter which k I set in payload #146

Open
zhiyuanpeng opened this issue Jun 16, 2023 · 2 comments

Comments

@zhiyuanpeng
Copy link

Hi there,

I set k=10 in payload = {"queries": query_texts, "qids": qids, "k": 10 but the bm25 still retrieves 1000 documents for each query. I re-filter the 1000 documents to work around it. It will be great if you can fix this bug. Thanks.

@thakur-nandan
Copy link
Member

Hi @zhiyuanpeng,

Thanks for notifying this bug. I'll add it in my todo list to update it.

The evaluate_anserini_bm25.py actually uses an old docker version of Anserini BM25. If you wish to run the latest Anserini BM25, I would redirect you here: https://github.com/castorini/anserini/tree/master#%EF%B8%8F-regression-experiments--reproduction-guides.

The Anserini repository lets you change more parameters and ensures reproducible BM25 regressions on BEIR.

Hope it helps!

@lintool
Copy link
Member

lintool commented Jun 20, 2023

@thakur-nandan File an issue to redirect the BM25 baselines over to Pyserini? Will save you from having to answer such queries again in the future...

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

3 participants