aws-samples / bedrock-claude-chat

AWS-native chatbot using Bedrock + Claude (+Mistral)
MIT No Attribution
928 stars 328 forks source link

feat: Guardrails for Amazon Bedrock #520

Closed fsatsuki closed 1 month ago

fsatsuki commented 2 months ago

Issue #, if available:

289

Description of changes: Implement content filters and contextual grounding checks for Guardrails for Amazon Bedrock.

It will delete the S3bucket that stores the documents you have been using until now and re-create it in BedrockRegion.Because Knowledge base and Guardrails must run in the same region. Parameters of Guardrails are stored in the Dynamodb.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

statefb commented 2 months ago

memo: We don't have backward compatibility due to the regional change of document bucket. If user include this PR, existing bucket likely be lost. Consider to re-create this PR to merge v2 branch, not v1.