A unified API for various document re-ranking models, supporting cross-encoders, ColBERT, T5-based, and API-based models. Current version: 0.10.0. Actively maintained with frequent releases.
pip install rerankersNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quick example of re-ranking documents using a cross-encoder model.
Use 'pip install rerankers'.
Always specify 'model_type' explicitly.
Use keyword arguments: rank(query=..., docs=...)
Install the correct package: pip install rerankers, then import from rerankers.
Ensure you have rerankers installed (version >=0.5.0) and use: from rerankers import Reranker
Provide the 'model_type' argument explicitly, e.g., model_type='cross-encoder'.
No dependency data recorded yet.