Skip to content

Commit

Permalink
Remove faiss test code
Browse files Browse the repository at this point in the history
  • Loading branch information
toshsan committed Oct 9, 2023
1 parent b1a1645 commit 518a6dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

print(embeddings)

# make faiss available
index = faiss.IndexFlatL2(d) # build the index, d=size of vectors
# here we assume xb contains a n-by-d numpy matrix of type float32
index.add(xb) # add vectors to the index
print(index.ntotal)
# # make faiss available
# index = faiss.IndexFlatL2(d) # build the index, d=size of vectors
# # here we assume xb contains a n-by-d numpy matrix of type float32
# index.add(xb) # add vectors to the index
# print(index.ntotal)

0 comments on commit 518a6dc

Please sign in to comment.