IVFPQ w/ IP distance assumes vectors have been normalized, but not all users would expect or think to do this. Essentially, kmeans works with L2 distance or with IP and l2 normalized vectors. Currently if IP is used with vectors that aren't normalized then it runs into degenerate cases where most vectors are placed in a single cluster, and that causes issues for downstream algorithms (like the IVF portions).
One way to deal with this is to do normalization in-place or to normalize the input dataset then return it to its original state after the clustering is done.
IVFPQ w/ IP distance assumes vectors have been normalized, but not all users would expect or think to do this. Essentially, kmeans works with L2 distance or with IP and l2 normalized vectors. Currently if IP is used with vectors that aren't normalized then it runs into degenerate cases where most vectors are placed in a single cluster, and that causes issues for downstream algorithms (like the IVF portions).
One way to deal with this is to do normalization in-place or to normalize the input dataset then return it to its original state after the clustering is done.