Similarity Search, Quantization, Faiss, Machine Learning, Hands On Tutorials.
because during inference the algorithm calculates distances by parts. This means that it would be much more problematic to use metrics for product quantization that do not have this property. Cosine distance is an example of such metric. If there is still a need to use a metric without this