Vector Quantization
A method of vector compression: a set of similar vectors is replaced by a common representative — a centroid. The original vector is stored as a reference to the nearest centroid.
Why
Vector databases store millions of embeddings. Vector quantization reduces memory usage and speeds up search, at the cost of some precision.
Where It Is Used
- IVF/PQ type indexes in vector databases;
- model weight compression (related technique);
- reducing the cost of storing large collections.