Vector Index
A data structure that speeds up nearest vector search. Instead of scanning all vectors, the index is organized to find similar vectors quickly.
Popular Algorithms
- HNSW — a graph, fast and accurate;
- IVF — coarse clustering;
- PQ — vector compression.
Trade-offs
An index is always a trade-off: speed and memory against accuracy. Fast indexes sometimes miss some results — this is approximate nearest neighbor (ANN) search.