gcp Google Cloud Blog ·

AlloyDB ScaNN Introduces Four-Level Tree for 10 Billion Vector Search

blogaigcppreviewarchitect
feature

AlloyDB ScaNN, a vector index for Google's PostgreSQL-compatible AlloyDB, now scales vector search to 10 billion vectors with a new four-level tree architecture, currently in preview. This enhancement addresses significant memory and computational challenges prevalent in demanding enterprise-grade agentic AI applications. It reduces compute intensity through hierarchical partitioning and optimizes memory usage, ensuring high performance with low latency and high recall. Developers can experience this new capability by following the quickstart guide and official ScaNN documentation.

  • AlloyDB ScaNN Scales to 10 Billion Vectors
  • Reduced Compute Intensity via Hierarchical Partitioning
  • Efficient Memory Usage for Large Scale Vector Indexes
  • Validated Performance at Scale
Features (1)
  • AlloyDB ScaNN Scales to 10 Billion Vectors

    AlloyDB ScaNN now supports scaling vector search to over 10 billion vectors through the introduction of an innovative four-level tree architecture, currently in preview. This advancement enables the PostgreSQL-compatible vector index to meet the demands of enterprise-grade agentic AI applications, overcoming previous limitations of two- or three-level tree configurations.

Enhancements (2)
  • Reduced Compute Intensity via Hierarchical Partitioning

    The new four-level architecture drastically reduces compute intensity for vector search queries by employing hierarchical partitioning. This multi-layered design narrows down the search path exponentially, optimizing traversal efficiency to O(N^1/4) and allowing for efficient processing of massive datasets.

  • Efficient Memory Usage for Large Scale Vector Indexes

    To support 10 billion vector scale, AlloyDB ScaNN utilizes strategies for efficient memory management. These include balanced tree shape construction and optimized sampling processes, which enable the system to build high-fidelity tree partitions and manage memory effectively even when faced with resource constraints.

Notes (1)
  • Validated Performance at Scale

    Internal tests confirm AlloyDB ScaNN's ability to scale beyond 10 billion vectors while maintaining high performance. The system delivers less than or equal to 51 ms p95 latency and 95% recall with its ScaNN index at this massive scale.

Read the original announcement →

https://cloud.google.com/blog/products/databases/alloydb-scann-index-four-level-tree-improves-vector-search/

Related releases