Commit
•
990580e
1
Parent(s):
81e7ea9
Update README.md (#10)
Browse files- Update README.md (ef11a76589d40b22c2129c80da71a65d6cf2a06d)
Co-authored-by: Z Guo <[email protected]>
README.md
CHANGED
@@ -2631,7 +2631,8 @@ python -m pip install -U sentence-transformers
|
|
2631 |
|
2632 |
```python
|
2633 |
from sentence_transformers import SentenceTransformer
|
2634 |
-
from sentence_transformers.util import cos_sim
|
|
|
2635 |
|
2636 |
# 1. Specify preffered dimensions
|
2637 |
dimensions = 512
|
|
|
2631 |
|
2632 |
```python
|
2633 |
from sentence_transformers import SentenceTransformer
|
2634 |
+
from sentence_transformers.util import cos_sim
|
2635 |
+
from sentence_transformers.quantization import quantize_embeddings
|
2636 |
|
2637 |
# 1. Specify preffered dimensions
|
2638 |
dimensions = 512
|