Why IndexIVFFlat search empty invlist? #3571
Replies: 3 comments
-
The cells are selected based on how close they are to the query point. |
Beta Was this translation helpful? Give feedback.
-
Can you explain why empty cells are created during index building, and why empty cells are selected during searching? |
Beta Was this translation helpful? Give feedback.
-
Please refer to https://hal.inria.fr/inria-00514462v2/document |
Beta Was this translation helpful? Give feedback.
-
Summary
I used IndexIVFFlat to search for 11 nearest items, and the result included -1.
Since the dataset size is (60,100) and I used n_list=45 & n_probe=15, I expected to get full result.
Therefore, I invested which cell was searched by this code.
It turns out that index inspected cells that contains 0 items.
I wonder why there is some cells that is empty, and why is IndexIVFFlat selected this cell to search.
Thank you.
Platform
Faiss version: faiss-cpu 1.7.4
Running on:
Interface:
Reproduction instructions
Beta Was this translation helpful? Give feedback.
All reactions