PII Redaction For LLM Apps
PolicyAware detects and redacts sensitive content before prompts reach models or tools.
Install
pip install policyaware
Run The Example
git clone https://github.com/ktirupati/policyaware.git
cd policyaware/examples/pii-redaction-policy
python demo.py
Expected Output
contains_pii=True
categories=email, phone
redacted=Contact [REDACTED_EMAIL] or [REDACTED_PHONE] about claim ACME-42.
gateway_decision=conditional_allow
gateway_actions=redact
Open the complete example folder on GitHub: PII redaction policy.