Text Ranking
sentence-transformers
Safetensors
English
qwen3
finance
legal
code
stem
medical
custom_code
Instructions to use zeroentropy/zerank-1-small-reranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use zeroentropy/zerank-1-small-reranker with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("zeroentropy/zerank-1-small-reranker", 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) - Notebooks
- Google Colab
- Kaggle
Add Sentence Transformers library_name
Browse filesHello!
## Preface
Congratulations on the release, I missed this when it was originally published! The scores look very impressive - do you want to share your rough training approach? I'm pretty curious.
## Details
I added the Sentence Transformers library_name, to make it easier for users to find this model when searching for a Sentence Transformers-compatible reranker here: https://huggingface.co/models?pipeline_tag=text-ranking&library=sentence-transformers&sort=trending
- Tom Aarsen
README.md
CHANGED
|
@@ -11,6 +11,7 @@ tags:
|
|
| 11 |
- code
|
| 12 |
- stem
|
| 13 |
- medical
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
<img src="https://i.imgur.com/oxvhvQu.png"/>
|
|
|
|
| 11 |
- code
|
| 12 |
- stem
|
| 13 |
- medical
|
| 14 |
+
library_name: sentence-transformers
|
| 15 |
---
|
| 16 |
|
| 17 |
<img src="https://i.imgur.com/oxvhvQu.png"/>
|