- Newest
- Most votes
- Most comments
Based on the information you've provided, it seems you're encountering an unexpected behavior with Amazon Bedrock Knowledge Base data source filtering. This issue, where documents from other data sources appear when filtering for a specific data source, is not typical and suggests a potential problem with the Knowledge Base or its underlying data.
Given that you've thoroughly checked your application code, ensured correct filter usage, and verified non-overlapping S3 prefixes, the issue likely lies within the Bedrock service itself. The fact that you can reproduce this in both your application and the Bedrock Console's "Test" playground further supports this conclusion.
Your suggestion about a possible remnant or caching issue in Bedrock's backend is a plausible explanation, especially considering you previously had a knowledge base with the same three data sources. While Bedrock should maintain clear separation between different knowledge bases and their associated data sources, it's possible that some residual data or index information is causing this unexpected behavior.
To address this issue, you could try the following steps:
-
Perform a full re-sync of all data sources in your current knowledge base. This might help refresh the index and clear any potential caching issues.
-
If the problem persists, consider creating a new knowledge base from scratch and ingesting your data sources into it. This could help eliminate any potential issues related to the previous knowledge base configuration.
-
Double-check that all your data sources are properly synced and that there are no ongoing or failed sync jobs that might be affecting the results.
-
If possible, try creating a small test knowledge base with a subset of your data to see if the issue reproduces in a fresh environment.
If none of these steps resolve the issue, it would be advisable to contact AWS Support. They can investigate more deeply on the backend and determine if there's an internal issue with the Bedrock service causing this behavior. When contacting support, provide them with detailed information about your knowledge base configuration, data sources, and the steps you've taken to reproduce and troubleshoot the issue.
Sources
Issue with metadata filtering in Amazon Bedrock | AWS re:Post
Bedrock knowledge base data source sync is not working | AWS re:Post
Bedrock Data source sync does not work | AWS re:Post
Relevant content
- asked a year ago
- asked a year ago
