- Newest
- Most votes
- Most comments
Based on the information available, it appears that Amazon Bedrock Knowledge Bases may not fully support federated queries to external schemas like the one you've described with Redshift Serverless pointing to an Aurora PostgreSQL database.
The behavior you're experiencing suggests that Bedrock Knowledge Bases is likely only considering the local schemas within the Redshift cluster when performing its data sync and query operations. This would explain why the sync fails when only the external schema is present (as it sees the database as "empty"), but succeeds when you create a local schema with data.
Bedrock Knowledge Bases is designed to work with structured data sources, including Amazon Redshift, but it seems to have limitations when it comes to federated queries. The service primarily focuses on querying data that is directly stored within the connected data source.
To determine if a database is empty, Bedrock Knowledge Bases likely checks for the presence of tables and data within the schemas it can directly access. In your case, it's not recognizing the tables in the external schema.
Unfortunately, there doesn't appear to be a straightforward way to make Bedrock Knowledge Bases work with your federated query setup. You might need to consider alternatives such as:
- Materializing the data from your Aurora PostgreSQL database into local tables within your Redshift cluster.
- Using a different approach to integrate your Aurora PostgreSQL data with Bedrock Knowledge Bases, possibly through ETL processes or by connecting directly to the Aurora database if supported.
For the most accurate and up-to-date information on supported configurations and potential workarounds, it would be best to contact AWS Support or consult with an AWS solutions architect. They may be able to provide more specific guidance or information on any planned support for federated queries in Bedrock Knowledge Bases.
Sources
Turning data into a knowledge base - Amazon Bedrock
AWS Bedrock knowledge base for Structured Data with Glue Tables | AWS re:Post
Build a knowledge base by connecting to a structured data store - Amazon Bedrock
Create a knowledge base by connecting to a structured data store - Amazon Bedrock
Relevant content
- asked 3 years ago