e-means in FAISS 1.16.0

Meta FAIR's replacement for classic k-means: it clusters vectors (e.g. search embeddings) and reaches the same result in about a tenth of the passes over the data. It runs on CPU and GPU, with NumPy arrays and PyTorch tensors.

How to try it

  1. Install FAISS version 1.16.0 or newer.
  2. Import faiss.contrib.e_means.
  3. Run it on your own embeddings, e.g. to cluster notes or products by topic, and compare speed with regular k-means.

Price: free

Official link

More new tools