PII redaction
Finding personal data such as names, emails, card numbers and phone numbers in text and replacing it before it is stored, logged or sent to a model.
In more detail
Patterns with checks, such as the Luhn check for card numbers, catch data with a recognisable shape; names and free text need trained recognisers such as Microsoft Presidio. Expect false positives and misses, and redact on both sides of the model.
Related terms
- personally identifiable information — Any information that can identify a person, directly or combined with other data, such as a name, email address, location or account number.
- Presidio — Microsoft's open-source SDK for detecting and anonymising personal data in text and images.
- Luhn check — A simple checksum formula whose last digit lets software spot mistyped card numbers and other identification numbers.
- guardrail (AI) — A check that runs before or after a model call, in code or with another model, to block, rewrite or flag unsafe input or output.
Taught in
- Guardrails, Privacy And Governance — AI Engineering: LLM Apps, RAG & Agents
- Images, Audio And Speech — AI Engineering: LLM Apps, RAG & Agents