AmenRa / ranx

⚡️A Blazing-Fast Python Library for Ranking Evaluation, Comparison, and Fusion 🐍
https://amenra.github.io/ranx
MIT License
438 stars 24 forks source link

[Feature Request] Reciprocal Rank Fusion #13

Closed maximedb closed 2 years ago

maximedb commented 2 years ago

Hi,

Thank you for this nice library.

How would you go about implementing Reciprocal Rank Fusion in ranx?

Thanks,

Maxime.

AmenRa commented 2 years ago

Hi Maxime and thanks for your question,

I plan to add many fusion methods to ranx this year, but I am currently busy with other projects.

Right now, your best bet is to implement RRF with Python dictionaries and pass the resulting fused run to ranx.

Alternatively, you can use an available Python implementation of RRF and convert the output to a data structure that can be loaded into Ranx.

Best,

Elias