ashishkgpian
commited on
Commit
•
95f6bf6
1
Parent(s):
990580e
Update README.md
Browse files
README.md
CHANGED
@@ -2655,7 +2655,7 @@ docs = [
|
|
2655 |
embeddings = model.encode(docs)
|
2656 |
|
2657 |
# Optional: Quantize the embeddings
|
2658 |
-
binary_embeddings = quantize_embeddings(embeddings, precision="
|
2659 |
|
2660 |
similarities = cos_sim(embeddings[0], embeddings[1:])
|
2661 |
print('similarities:', similarities)
|
|
|
2655 |
embeddings = model.encode(docs)
|
2656 |
|
2657 |
# Optional: Quantize the embeddings
|
2658 |
+
binary_embeddings = quantize_embeddings(embeddings, precision="float32")
|
2659 |
|
2660 |
similarities = cos_sim(embeddings[0], embeddings[1:])
|
2661 |
print('similarities:', similarities)
|