Commit
•
c0c2411
1
Parent(s):
990580e
Update README.md
Browse files'ubinary' data type gives error when running the code, change to 'float32'
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)
|