2

I used remove_ids method to remove some vectors from faiss index, After deleting a vectory , search result are very incorrect. Anybody have some information regarding this? how can i correctly delete vector from faiss index without effecting search result

Followig is the code that i used to remove id

import numpy as np
import faiss
index = faiss.read_index('index.faiss')
ids_to_remove=[1]
ids_to_remove_array=np.array(ids_to_remove,dtype=np.int64)
index.remove_ids(ids_to_remove_array)
faiss.write_index(index,'index.faiss')

0 Answers0