PII Redaction
Definition
The automated detection and removal or masking of personally identifiable information before data is stored, logged, or sent to an AI model.In-Depth Explanation
PII redaction protects data such as names, emails, phone numbers, and payment details across prompts, completions, logs, and traces. Redaction removes the information entirely, while masking replaces it with placeholders (for example, "****-1234") that preserve structure for debugging. Modern systems go beyond regex pattern-matching, using ML and contextual analysis to catch subtle identifiers, and can run locally so sensitive data never reaches a cloud model. It supports compliance with GDPR and HIPAA.
Real-World Example
A support tool strips customer credit-card numbers from chat transcripts before sending them to an LLM for summarization.