What problem does it solve?
This Skill provides a powerful and efficient tool for similarity search and clustering of dense vectors, supporting billions of vectors and GPU acceleration for optimal performance.
Core Features & Use Cases
- Vector Search: Perform fast k-NN search on large vector datasets for applications like large-scale vector retrieval or pure similarity search.
- Index Types: Utilize various index types such as Flat, IVF, HNSW, and Product Quantization to cater to different search performance and memory requirements.
- Use Case: Ideal for scenarios like fast k-NN search, large-scale vector retrieval, and applications that require high-throughput, low-latency similarity search without metadata.
Quick Start
Install the FAISS Skill and create an index to perform a search:
pip install faiss-cpu
python
import faiss
index = faiss.IndexFlatL2(128) # 128 dimensions
index.add(np.random.random((1000, 128)).astype('float32'))
distances, indices = index.search(np.random.random((1, 128)).astype('float32'), 5)