Vector indexing overview

AlloyDB AI extends the open-source pgvector extension, providing compatibility with standard index types such as HNSW alongside Google's Scalable Nearest Neighbors (ScaNN) vector search index. Storing and indexing vector embeddings directly in AlloyDB for PostgreSQL lets you build generative AI, semantic search, and recommendation applications without moving your operational data or managing a separate vector database.

Visual overview of AlloyDB vector search

Build faster, smarter AI applications

AlloyDB AI eliminates the complexity of managing a separate vector database. Keep operational data and embeddings in one place, and use built-in functions to generate batch embeddings (Preview) for large tables, scaling your AI pipeline from a single, secure source.

RAG thumbnail

Enhance LLM responses by using vector search to find and retrieve the most relevant, up-to-date context from your private data in AlloyDB, directly feeding it into the prompt to reduce hallucinations.

Semantic search thumbnail

Enable concept-based search by converting your data into vector embeddings. AlloyDB AI's fast vector queries then find items based on their semantic meaning, not just keyword matches.

Recommendation engine thumbnail

Power real-time personalization by using ultra-fast vector search to identify similar items or users (nearest neighbors) directly within your database, enabling dynamic and relevant recommendations.

ScaNN vector search performance

Icon representing speed
Icon representing memory efficiency
Icon representing faster queries
Icon representing a filtered search

Learn more

Explore our developer resources to build AI applications with AlloyDB's vector search capabilities.

Video

Enhance retail product discovery with AlloyDB's semantic, hybrid, and multimodal search.

Article

A technical whitepaper on the architecture, algorithms, and performance of the ScaNN index in AlloyDB.

Codelab

Learn how to perform hybrid search on Cloud Run, combining SQL, full-text, and vector search.