Flat (brute force): small data, exact results, simplest.
HNSW: best recall and speed when the vectors fit in RAM, with steady small writes; the default for millions of vectors.
IVF-Flat or IVF-PQ: when memory is the constraint (tens of millions and up), data is relatively static or periodically retrained, and some recall loss is acceptable.
Disk-based graph indexes (DiskANN) and scalar or binary quantization extend these ideas when RAM is limited. Always benchmark recall and latency on your own vectors.
Loading…