Update README.md
Browse files
README.md
CHANGED
@@ -222,6 +222,13 @@ print(similarity)
|
|
222 |
# tensor([[0.9118]])
|
223 |
```
|
224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
## Performance
|
226 |
|
227 |
nomic-embed-text-v2-moe performance on BEIR and MIRACL compared to other open-weights embedding models:
|
|
|
222 |
# tensor([[0.9118]])
|
223 |
```
|
224 |
|
225 |
+
For truncation/Matryoshka embeddings, you can specify `truncate_dim` and use the model similarly
|
226 |
+
|
227 |
+
```python
|
228 |
+
model = SentenceTransformer("nomic-ai/nomic-embed-text-v2-moe", trust_remote_code=True, truncate_dim=256)
|
229 |
+
...
|
230 |
+
```
|
231 |
+
|
232 |
## Performance
|
233 |
|
234 |
nomic-embed-text-v2-moe performance on BEIR and MIRACL compared to other open-weights embedding models:
|