Vector retrieval algorithm | Advantage | Disadvantage | Scenario |
Quantized Clustering | Low CPU and memory usage. |
| Suitable for datasets with hundreds of millions of records in scenarios that do not have very high requirements on data accuracy or query latency. |
HNSW (Hierarchical Navigable Small World) | High recall rate and fast query speed. | High CPU and memory usage. | Suitable for datasets with tens of millions of records in scenarios that have strict requirements on data accuracy and query latency. |
linear | 100% recall rate. |
| Suitable for datasets with tens of thousands of records. |
QGraph (Quantized Graph) | Low CPU and memory usage, low latency, and high query performance. | Lower recall rate than HNSW. | Suitable for massive datasets (billions of records or more) in scenarios that have high requirements on query latency and query performance but no strict requirements on accuracy. |
CagraHnsw | Uses GPUs to build indexes, achieving speeds more than ten times faster than CPU-based building. | Recall rate is slightly lower than that of HNSW. | Suitable for scenarios in which indexes for massive volumes of data are updated periodically. |
CAGRA | A GPU algorithm whose performance is several times or even dozens of times that of CPU algorithms. | High GPU costs. The cost-effectiveness is not significant in low-QPS scenarios. | Suitable for scenarios that require high QPS and low latency. |
DiskANN Note The DiskANN algorithm is supported only when the instance family of the data nodes is SSD. | Indexes can be stored on disks, resulting in low memory usage. | Query latency is relatively high and throughput is low. | Scenarios that involve large data volumes (billions of records), limited memory, and low sensitivity to latency. |