bedrock-claude-chat icon indicating copy to clipboard operation
bedrock-claude-chat copied to clipboard

[Feature Request] Support for AWS Aurora PostgreSQL with PgVector (serverless) as an alternative to AWS OpenSearch Serverless in the version 2

Open containeers opened this issue 1 year ago • 3 comments

Describe the solution you'd like

Support for AWS Aurora PostgreSQL with PgVector (serverless) as an alternative to AWS OpenSearch Serverless in the version 2 architecture. This solution would leverage the PgVector extension to enable vector search directly within the Aurora PostgreSQL serverless database. It offers a cost-effective

Why the solution needed

Cost Efficiency: AWS Aurora PostgreSQL serverless with PgVector significantly reduces costs compared to maintaining a separate AWS OpenSearch Serverless infrastructure. Aurora allows on-demand scaling, reducing costs during low usage periods while meeting scalability requirements during high-demand times. Simplified Architecture & Cloud Native database.

Additional context

PgVector: PgVector is an open-source extension for PostgreSQL designed for efficient similarity searches on high-dimensional vectors, commonly used in AI/ML-driven applications.

[PgVector GitHub Repository](https://github.com/pgvector/pgvector)
[AWS Aurora PostgreSQL PgVector support announcement (if available)](https://aws.amazon.com/blogs/...)

Cost Comparison:

Aurora PostgreSQL Serverless + PgVector offers reduced costs compared to OpenSearch Serverless, particularly for smaller-scale applications or those with intermittent usage patterns.
Operational overhead is reduced, as Aurora PostgreSQL serverless requires less tuning and management compared to maintaining a dedicated OpenSearch cluster.

Implementation feasibility

Are you willing to collaborate with us to discuss the solution, decide on the approach, and assist with the implementation? No, I am unable to implement the feature, but I am open to discussing the solution.

containeers avatar Nov 22 '24 12:11 containeers

As a workaround for now, you can create the Knowledge base on Bedrock directly and select Aurora. After created you grab the KB ID and use to create a bot that uses it, since now brchat allows to leverage existing KBs.

Image

msalheb avatar Apr 25 '25 11:04 msalheb

fyi; Vector bucket can be more affordable https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors.html

statefb avatar Jul 17 '25 01:07 statefb

Memo:

  • By default, use shared KnowledgeBase with vector bucket for PoC
  • When publish a bot which will be used by many users, use dedicated KnowledgeBase with OpenSearch

Related: #888

statefb avatar Jul 17 '25 01:07 statefb