Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata filter using an attribute from bot user #780

Open
preethy-1 opened this issue Nov 8, 2024 · 1 comment
Open

Metadata filter using an attribute from bot user #780

preethy-1 opened this issue Nov 8, 2024 · 1 comment
Assignees

Comments

@preethy-1
Copy link

Hi @abhirpat,

How can I make use of the domain data passed from the parent web application to chatbot to apply metadata filtering in Amazon Bedrock Knowledge base for RAG.
For eg:
if domain data is "banking", then filter should only pickup document sources having metadata attribute domain as "banking"

@abhirpat
Copy link
Member

abhirpat commented Nov 8, 2024

Hi @preethy-1, the QnABot allows customize metadata and filters for RAG using Amazon Bedrock Knowledge through setting KNOWLEDGE_BASE_METADATA_FILTER in the content designer. This and additional customizations are available from v6.1.0 (please see CHANGELOG).

To learn in detail about how this functionality works, you may find this overview and example helpful https://aws.amazon.com/blogs/machine-learning/amazon-bedrock-knowledge-bases-now-supports-metadata-filtering-to-improve-retrieval-accuracy/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants