跳至內容

Sensitive Information Filtering in Amazon Bedrock

0

I'm trying to determine the best way to filter sensitive information when using Amazon Bedrock Guardrails. I really like the intuitive Guardrails configuration wizard; however, I notice there is no way to Mask user input that contains sensitive information - Masking is only available on model responses. To me, it would seem very helpful if we also had the capability to mask the input before it even gets sent to the model, but I'm still in the learning phase here.

Therefore, since I can't redact my input using out-of-box Guardrail functionality (I can only Block it), are my best options to perform my own custom Regex manipulation on the input before submitting to Bedrock, or maybe redact it via Amazon Comprehend first?

An example use case: I want to perform summarization on a conversation that may contain sensitive information, but I would like to redact any sensitive elements before it gets sent to any language model.

Thank you.

已提問 2 年前檢視次數 1099 次

1 個回答
0
已接受的答案

You can use Amazon Conprehend, but isn't sending the raw data to Comprehend the same as sending it to Amazon Bedrock and asking to return the same text without PII data? You can implement any of the above as a preprocessing step before asking for summarization.  Regular expression probably is less effective unless you know exactly what information you want to extract.

AWS

已回答 2 年前

專家

已審閱 2 年前

  • Conceptually, I view sending the data to Comprehend to be slightly different, as it is being cleansed by an internal AWS service. Bedrock would be submitting my data to a third-party LLM (if not using Titan), even if that LLM is hosted in AWS. In reality, it may be moot, but that's just how I view it anyway. Thanks for the feedback.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。