bedrock-claude-chat
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
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.
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.
fyi; Vector bucket can be more affordable https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors.html
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