liveBook · Manning

Personal data

As explained in Machine Learning Platform Engineering

Personally identifiable information is information that can identify or be used to identify an individual.

Personal data is information that can identify, or be used to identify, an individual. In production LLM systems, detect it in incoming prompts and sanitize it before processing. section 13.3.1

Implement personal-data protection as an input guard:

  • Configure a Guardrails AI guard with the GuardrailsPII validator. section 13.3.1
  • Check entities such as email addresses, credit-card numbers, and Social Security numbers. section 13.3.1
  • Fix detected values by redacting them, or reject invalid input and log the validation failure. section 13.3.1

Sanitizing an LLM prompt

A validation function runs input_guard.validate(user_input) before the prompt reaches the LLM, then returns validated_output. Detected email addresses can be replaced with a placeholder. section 13.3.1

Figure 13.9 PII detection example showing email address being automatically redacted to the placeholder
A screenshot of a email

AI-generated content may be incorrect.

Shows an email address automatically redacted during PII detection. section 13.3.1

How Machine Learning Platform Engineering covers it

How deep it goes
Defines identifying information and demonstrates validator configuration, redaction, exception handling, and sanitized output.
Examples
Uses email addresses, credit-card numbers, Social Security numbers, and automatically redacted prompt values.
What it assumes
Assumes an LLM input pipeline and introduces PII validation through configured entity types and failure actions.
What you can do after
Apply it via Guardrails AI to validate, redact, reject, and log sensitive user input before LLM processing.
How it connects
Connects PII detection with input sanitization, safety guardrails, LLM processing, and output validation.

Also explained in

Compare how 9 books explain personal data →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Platform Engineering. The section links point to the parts of the book it draws on.