April 23, 2024, 4:32 a.m. | Thomas Taylor

DEV Community dev.to

Typically, AWS recommends leveraging an existing service offering such as Amazon Comprehend to detect and redact PII. However, this post explores an alternative solution using Amazon Bedrock.


This is possible using the Claude, Anthropic's large langauge model, and their publicly available prompt library. In our case, we'll leverage the PII purifier prompt that is maintained by their prompt engineers.





How to extract PII using Amazon Bedrock in Python


This demo showcases how to invoke the Amazon Claude 3 models …

ai amazon amazon bedrock amazon comprehend anthropic aws bedrock case claude however library pii prompt python service solution tutorial

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne