Python API Documentation# Cluster K-Means K-Means Parameters KMeansParams K-Means Fit fit() K-Means Predict predict() K-Means Cluster Cost cluster_cost() Distance Pairwise Distance pairwise_distance() Nearest Neighbors Single-GPU Algorithms Brute Force KNN Index Index build Index search Index save Index load CAGRA Index build parameters Index search parameters Index Index build Index search Index save Index load Index extend HNSW Index search parameters Index Index Conversion Index search Index save Index load Index extend IVF-Flat Index build parameters Index search parameters Index Index build Index search Index save Index load Index extend IVF-PQ Index build parameters Index search parameters Index Index build Index search Index save Index load Index extend NN-Descent Index build parameters Index Index build Multi-GPU Algorithms Multi-GPU Nearest Neighbors Overview Important Notes Configuration Options Usage Examples Algorithm-Specific Documentation All-neighbors KNN Parameters Build Preprocessing Scalar Quantizer Quantizer QuantizerParams train() transform() inverse_transform()