Instructions to use BAAI/bge-reranker-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use BAAI/bge-reranker-base with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("BAAI/bge-reranker-base") query = "Which planet is known as the Red Planet?" passages = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", "Saturn, famous for its rings, is sometimes mistaken for the Red Planet." ] scores = model.predict([(query, passage) for passage in passages]) print(scores) - Inference
- Notebooks
- Google Colab
- Kaggle
How does this compare to ms-marco cross encoders?
Thanks for sharing this model with the community.
I couldn't find a direct comparison of re-ranking performance with cross-encoder/ms-marco-MiniLM-L-12-v2 (and other models in the same family). Has anybody looked into it?
Thanks for your interest in our work!
The aim of bge-reranker is to train a multilingual model (mainly for English and Chinese currently), and you can see the training dataset at https://github.com/FlagOpen/FlagEmbedding/tree/master/FlagEmbedding/reranker. cross-encoder/ms-marco-MiniLM-L-12-v2 is only for english.
The current evaluation is based on Chinese data and cross-language data, lacking evaluation for English. We plan to extend the evaluation dataset and add more models in the future.
Is there any update about the comparation between cross-encoder/ms-marco-MiniLM-L-12-v2 and BAAI/bge-reranker-base? Thank you.
Is there any update about the comparation between cross-encoder/ms-marco-MiniLM-L-12-v2 and BAAI/bge-reranker-base? Thank you.
Apologies, but we have not conducted this comparison.
If you have any experimental results, we would greatly appreciate your feedback.