Feature Extraction
sentence-transformers
Safetensors
modernbert
multi-vector
colbert
late-interaction
Generated from Trainer
dataset_size:1000000
loss:CachedMultiVectorMultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use multi-vector-encoder/mLateOn-medical with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use multi-vector-encoder/mLateOn-medical with sentence-transformers:
from sentence_transformers import MultiVectorEncoder model = MultiVectorEncoder("multi-vector-encoder/mLateOn-medical") queries = ["Which planet is known as the Red Planet?"] documents = [ "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.", ] query_embeddings = model.encode_query(queries) document_embeddings = model.encode_document(documents) similarities = model.similarity(query_embeddings, document_embeddings) print(similarities) - Notebooks
- Google Colab
- Kaggle
Remove index portion for the time being
Browse files
README.md
CHANGED
|
@@ -188,10 +188,6 @@ This is a [Multi-Vector Encoder](https://www.sbert.net/docs/multi_vector_encoder
|
|
| 188 |
|
| 189 |

|
| 190 |
|
| 191 |
-
Late interaction stores one vector per token, so its index is larger than a dense one, and these medical passages are long (about 878 stored vectors each). [`HierarchicalTokenPooling`](https://sbert.net/docs/package_reference/multi_vector_encoder/modules.html#hierarchicaltokenpooling) compresses that cheaply: halving the index costs 0.003 NDCG@10, and even a tenth of the index still scores higher than every other model in the benchmark.
|
| 192 |
-
|
| 193 |
-

|
| 194 |
-
|
| 195 |
The full recipe, the evaluation protocol, and the experiments behind each choice are described in [Training and Finetuning Multi-Vector Embedding Models with Sentence Transformers](https://huggingface.co/blog/train-multi-vector-encoder).
|
| 196 |
|
| 197 |
## Model Details
|
|
|
|
| 188 |
|
| 189 |

|
| 190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
The full recipe, the evaluation protocol, and the experiments behind each choice are described in [Training and Finetuning Multi-Vector Embedding Models with Sentence Transformers](https://huggingface.co/blog/train-multi-vector-encoder).
|
| 192 |
|
| 193 |
## Model Details
|