AI Cloud Architect

Selecting a vector store for Amazon Bedrock Knowledge Bases

AWSBlog post by Deepak Dalakoti, Rhys Lewis and Petar AvramovicAWS Artificial Intelligence Blog

Choosing the right vector store for your Amazon Bedrock Knowledge Bases RAG application affects performance and cost. This post compares Amazon OpenSearch Service, Amazon Aurora PostgreSQL with pgvector, and Amazon S3 Vectors across three RAG use cases, with benchmarks and a practical selection framework.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Guide comparing OpenSearch Service, Aurora PostgreSQL with pgvector, and S3 Vectors as customer-managed vector stores for Bedrock Knowledge Bases, using separate benchmarks per use case.

Who it is for

Architects choosing a vector store for a Bedrock Knowledge Bases RAG app who need a latency, cost and growth trade-off.

Key points

  • Benchmarks come from separate workloads per store, not a shared dataset, so numbers are not directly comparable (per the post).
  • OpenSearch benchmarks ran on Serverless Classic collections; NextGen collections are not yet compatible with the Knowledge Bases Retrieve API (per the post).
  • S3 Vectors p50 latency rises from 82 ms at 5K vectors to 294 ms at 1M vectors (AWS benchmark).
  • Aurora HNSW had 31.91 ms p50 vs 35.94 ms for IVFFlat on 500K chunks (AWS benchmark).

The same at other vendors

Same approach

MicrosoftAnnouncement

[In preview] Public Preview: Azure HorizonDB

AI:Azure HorizonDB is a PostgreSQL-compatible database with built-in vector indexing, a comparable option to Aurora PostgreSQL with pgvector.

Timeline

  1. Compared hereAWS vector solutions: Build agentic AI where your data lives · AWS · Blog post
  2. This postSelecting a vector store for Amazon Bedrock Knowledge Bases
  3. Compared hereAmazon S3 Vectors now supports metadata pre-filtering for higher recall on filtered searches · AWS · Announcement
  4. Compared hereAmazon S3 Vectors now supports hybrid search combining vector and full text for more relevant search results · AWS · Announcement

Go deeper