Auto indexer for k-NN similarity search using Faiss
Top 42.3% on sourcepulse
AutoFaiss automates the creation of efficient Faiss KNN indices, targeting users who need to build large-scale similarity search indexes with optimized recall, query speed, and memory constraints. It simplifies the complex process of selecting optimal Faiss index types and hyperparameters, enabling users to build massive indexes (e.g., 200M vectors, 1TB) on modest hardware (e.g., 15GB RAM) with millisecond latency.
How It Works
AutoFaiss employs a heuristic-driven approach, leveraging Faiss's efficient index types and binary search to automatically determine the best indexing parameters. It balances recall, query speed, and memory usage against user-defined constraints, making it suitable for large datasets where manual tuning is prohibitive. The library supports both in-memory and disk-based embeddings, with options for memory-mapped indices to further reduce memory footprints.
Quick Start & Requirements
pip install autofaiss
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
make_direct_map
option for vector reconstruction can significantly increase RAM usage.1 year ago
1 day