CoralLeiCN
commited on
Commit
•
ef11a76
1
Parent(s):
81e7ea9
Update README.md
Browse filesFix the import error
![image.png](https://cdn-uploads.huggingface.co/production/uploads/6621a736f3502429f9cef839/9Nvj1klDWuWaAVuRQ8BYi.png)
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
|