Portkey Guardrails is a powerful tool for protecting Personally Identifiable Information (PII) in your AI applications. This guide provides a comprehensive walkthrough of implementing PII protection using Portkey’s guardrail capabilities.
output_guardrails
.EMAIL_ADDRESS_1
: [email protected]EMAIL_ADDRESS_2
: [email protected]PHONE_NUMBER_1
: (555) 123-4567PHONE_NUMBER_2
: +1-800-555-0123SSN_1
: 123-45-6789CREDIT_CARD_1
: 4532CREDIT_CARD_2
: 4532-1234-5678-9012NAME_1
: John SmithNAME_2
: Jane DoeLOCATION_ADDRESS_1
: 123 Main Street, Apt 4B, New York, NY 10001IP_ADDRESS_1
: 192.168.1.100IP_ADDRESS_2
: 10.0.0.1Feature | Portkey Native | AWS Bedrock |
---|---|---|
Placeholder Style | Numbered (e.g., [NAME_1] , [NAME_2] ) | Generic (e.g., {NAME} ) |
Instance Tracking | ✅ Each PII instance tracked separately | ✅ Same placeholder for same type |
Names | [NAME_X] | {NAME} |
Emails | [EMAIL_ADDRESS_X] | {EMAIL} |
Phone Numbers | [PHONE_NUMBER_X] | {PHONE} |
SSN | [SSN_X] | {US_SOCIAL_SECURITY_NUMBER}{SSN_REGEX} |
Addresses | [LOCATION_ADDRESS_X] | {ADDRESS} |
Credit Cards | [CREDIT_CARD_X] | {CREDIT_DEBIT_CARD_NUMBER} |
IP Addresses | [IP_ADDRESS_X] | {IP_ADDRESS} |
Bank Accounts | Not in default categories | {US_BANK_ACCOUNT_NUMBER} |