Faiss Index.remove_ids()

Created
Created
2023 Oct 31 13:56
Creator
Creator
Seonglae ChoSeonglae Cho
Editor
Edited
Edited
2025 Oct 28 11:11
Refs
Refs

Requirements

  1. ID mapping support: The base index must be wrapped with IDMap or IDMap2 to enable ID-based operations
  1. Valid ID format: IDs must be provided as a numpy array of integers
  1. Existing IDs: Only IDs that exist in the index can be removed; attempting to remove non-existent IDs may result in warnings or errors

Implementation Example

 
 
 
 
 
 

Recommendations