Update README.md
#12
by
ashishkgpian
- opened
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)
|