beir-cellar / beir

A Heterogeneous Benchmark for Information Retrieval. Easy to use, evaluate your models across 15+ diverse IR datasets.
http://beir.ai
Apache License 2.0
1.54k stars 182 forks source link

Introduce `RetrievalModel` abstract base class #85

Closed tstadel closed 1 year ago

tstadel commented 2 years ago

Proposed Changes:

closes https://github.com/beir-cellar/beir/issues/84

tstadel commented 2 years ago

@NThakur20 I'm happy to receive your comments about this draft. Let me know if moving score_function is too intrusive. I just thought it makes more sense to have it only where you actually need it.

thakur-nandan commented 1 year ago

Hi @tstadel, thanks for the PR. I implemented the abstract base class in the latest revamping. I did not want to change the score function as users have always been using it in a particular way and I wish to change the functions as minimally as possible.

Thanks!