remove_ids

API definition

size_t remove_ids(const faiss::IDSelector &sel) override;

Function

Deletes specified feature vectors.

Input

const faiss::IDSelector &sel: feature vectors to be deleted. For details about its usage and definition, see the related description in Faiss documentation.

Output

N/A

Return value

Number of feature vectors that are successfully deleted (invalid IDs are ignored).

Restrictions

N/A