Skip to main content

ScaNN

Google ScaNN (Scalable Nearest Neighbors) is a python package.

ScaNN is a method for efficient vector similarity search at scale.

ScaNN includes search space pruning and quantization for Maximum Inner Product Search and also supports other distance functions such as Euclidean distance. The implementation is optimized for x86 processors with AVX2 support. See its Google Research github for more details.

Installation and Setup

We need to install scann python package.

pip install scann

Vector Store

See a usage example.

from langchain.vectorstores import ScaNN

API Reference: