Sentence Similarity
sentence-transformers
Safetensors
nandi_encoder
embeddings
feature-extraction
mteb
retrieval
multilingual
indic
long-context
frontiersmind
nandi
custom_code
Instructions to use FrontiersMind/EmbeddingNandi-150M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use FrontiersMind/EmbeddingNandi-150M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("FrontiersMind/EmbeddingNandi-150M", trust_remote_code=True) sentences = [ "task: sentence similarity | query: How do I return a damaged product?", "task: sentence similarity | query: खराब सामान वापस कैसे करें?", "task: sentence similarity | query: damaged product wapas kaise kare?", "task: sentence similarity | query: What is the weather like today?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -221,12 +221,12 @@ EmbeddingNandi-150M is trained with Matryoshka Representation Learning, so the 7
|
|
| 221 |
|
| 222 |
Scores at each size on a 28-task subset of the three benchmarks (13 English, 6 Code and 9 Indic tasks; `bfloat16`, inputs up to 1,024 tokens, vectors re-normalized after truncation):
|
| 223 |
|
| 224 |
-
| Dimension | Storage |
|
| 225 |
-
|---|---|
|
| 226 |
-
| 768 | 100% |
|
| 227 |
-
| 512 | 66.7% |
|
| 228 |
-
| 256 | 33.3% |
|
| 229 |
-
| 128 | 16.7% |
|
| 230 |
|
| 231 |
* **Re-normalize after truncating when using dot product:** truncation changes the vector's norm. Re-normalizing the shortened vectors makes the dot product equivalent to cosine similarity. If you use cosine similarity directly, explicit re-normalization is not necessary.
|
| 232 |
* **Queries and documents must use the same size.**
|
|
|
|
| 221 |
|
| 222 |
Scores at each size on a 28-task subset of the three benchmarks (13 English, 6 Code and 9 Indic tasks; `bfloat16`, inputs up to 1,024 tokens, vectors re-normalized after truncation):
|
| 223 |
|
| 224 |
+
| Dimension | Storage |
|
| 225 |
+
|---|---|
|
| 226 |
+
| 768 | 100% |
|
| 227 |
+
| 512 | 66.7% |
|
| 228 |
+
| 256 | 33.3% |
|
| 229 |
+
| 128 | 16.7% |
|
| 230 |
|
| 231 |
* **Re-normalize after truncating when using dot product:** truncation changes the vector's norm. Re-normalizing the shortened vectors makes the dot product equivalent to cosine similarity. If you use cosine similarity directly, explicit re-normalization is not necessary.
|
| 232 |
* **Queries and documents must use the same size.**
|