This occurs while optimizing a IVF_HNSW_SQ/Cosine index.
Originally reported in https://discord.com/channels/1030247538198061086/1456659493659213834
This occurs here:
|
let min_dist_idx = dists |
|
.values() |
|
.iter() |
|
.position_min_by(|a, b| a.total_cmp(b)) |
|
.unwrap(); |
It's possible the issue is the distance overflowed and thus is infinite. We might have to do something similar to: #4914. Just tested, and infinite and NaN vectors don't disrupt this. It only is None if the vector is empty.