



Vector index type based on Google's ScaNN algorithm combining tree-like structure with Asymmetric Hashing quantization, optimized for batch queries with 10x faster index generation and smaller memory footprint.
Loading more......
The TreeAH index is based on Google's ScaNN (Scalable Nearest Neighbors) algorithm, which is used in a multitude of Google services for similarity search. The TreeAH index type is named for its combination of a tree-like structure and its use of Asymmetric Hashing (AH), a core quantization technique from the underlying ScaNN algorithm.
The main difference with the IVF index is the use of asymmetric hashing (the "AH" in TreeAH), which uses product quantization to compress embeddings. The "asymmetric" aspect refers to the fact that:
The vectors are compressed with product quantization, a technique that reduces their memory usage. The compressed vectors are then stored in the index tables instead of the original vectors, thus reducing vector index sizes.
When the VECTOR_SEARCH or AI.SEARCH function runs:
Coupled with a CPU-optimized distance computation algorithm, vector search using TreeAH can be:
The TreeAH algorithm is optimized for batch queries that process hundreds or more query vectors.
Available as part of Google Cloud BigQuery and Vertex AI services.