Home icon

Selecting a vector store for Amazon Bedrock Knowledge Bases

Machine Learning Blog



This article compares three vector store backends for Amazon Bedrock Knowledge Bases—Amazon OpenSearch Service, Amazon Aurora PostgreSQL with pgvector, and Amazon S3 Vectors—across distinct RAG use cases with performance benchmarks and selection guidance.

  • Amazon OpenSearch Serverless excels at real-time product search with sub-millisecond latency and hybrid search capabilities; benchmarks show 512-dim embeddings match 1024-dim quality at half the size.
  • Amazon S3 Vectors provides cost-effective storage for deep research agents, scaling to millions of vectors with sub-linear latency growth and 90% cost reduction versus traditional databases.
  • Aurora PostgreSQL with pgvector balances performance and relational data needs for customer-facing chatbots, supporting both HNSW and IVFFlat indexing with sub-50ms query times.
  • Selection framework: choose OpenSearch for <50ms latency with hybrid search, Aurora for ~100ms with relational data, S3 Vectors for cost-efficient massive scale.
  • Tiered architecture pattern uses S3 Vectors for full corpus storage while promoting high-traffic vectors to OpenSearch or Aurora for performance-critical queries.

Selecting the right vector store requires profiling application latency tolerance, query patterns, and cost sensitivity, then matching to the appropriate backend or combining multiple services in a tiered approach.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Oct 11
2024
Dive deep into vector data stores using Amazon Bedrock Knowledge Bases
Jul 2
2024
Access control for vector stores using metadata filtering with Amazon Bedrock Knowledge Bases
Aug 18
2026
Implement vector-prompt document classification using Amazon Bedrock
Mar 27
2025
Amazon Bedrock Knowledge Bases now supports Amazon Opensearch Managed Cluster for vector storage

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.