Text Ranking
sentence-transformers
Safetensors
Transformers
new
text-classification
text-embeddings-inference
custom_code
Instructions to use Alibaba-NLP/gte-multilingual-reranker-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Alibaba-NLP/gte-multilingual-reranker-base with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("Alibaba-NLP/gte-multilingual-reranker-base", trust_remote_code=True) 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) - Transformers
How to use Alibaba-NLP/gte-multilingual-reranker-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("Alibaba-NLP/gte-multilingual-reranker-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Add Text Embeddings Inference (TEI) snippet (#21)
Verified signature- Add Text Embeddings Inference (TEI) snippet (0acb790751daef0c1a7c5191122056bd16ef9f09) Co-authored-by: Alvaro Bartolome <alvarobartt@users.noreply.huggingface.co>8215cf0
-
Update model metadata to set pipeline tag to the new `text-ranking` and library name to `sentence-transformers` (#19)
Verified signature- Update model metadata to set pipeline tag to the new `text-ranking` and library name to `sentence-transformers` (d8a728546db973aa27c00cbb25f5570e4a4a8ce0) Co-authored-by: Tom Aarsen <tomaarsen@users.noreply.huggingface.co>028e39d
-
Update README.md
Verified signature3636e8f -
Update README.md
Verified signaturee2c4d69
-
fix metadata error (#14)
Verified signature- fix metadata error (16d84d47b8685381994d2ebd5e76af3f66be25b7)815b4a8 -
Update README.md
Verified signature51d8caa
-
support-tei (#11)
Verified signature- update config.json (a6258e9d2b1a11aa7bccdff9efde562bbca4393d) - rename keys (6b8ab32f84a6414530e025c47958f64e0d2cf0b2) Co-authored-by: hyeongchan kim <kozistr@users.noreply.huggingface.co>52ac27f
-
infinity usage of reranking. Implements a cohere compatible api. (#10)
Verified signature- infinity usage of reranking. Implements a cohere compatible api. (231c626908c606a13aa1f64400ca9a99e03f2ac0) Co-authored-by: Michael <michaelfeil@users.noreply.huggingface.co>8c8944c
-
Update README.md
Verified signature4e88bd5
-
Update README.md
Verified signature45c472c -
Update README.md
Verified signaturece8021e -
Upload mgte-reranker.png
Verified signatureb14968c -
Update README.md
Verified signature5bf056c
-
Update README.md
Verified signaturee7ca9d5
-
Update README.md
Verified signature66447c8 -
Update README.md
Verified signaturea624cb7
-
[init]
Verified signatureb61e919
-
initial commit
Verified signatured6da79d