guardrails-blindfold package integrates Blindfold with Guardrails AI, letting you add PII protection to any Guard with one line. Detect and fix PII in LLM outputs automatically.
Installation
Quick Start
Parameters
Policies
See Policies for details.
PII Methods
Thepii_method parameter controls how detected PII is fixed when on_fail="fix":
Usage Examples
GDPR Compliance with EU Region
HIPAA — Redact PHI
Block Output if PII Detected
Useon_fail="exception" to raise an error instead of fixing:
Detect Specific Entity Types
Chain with Other Validators
Blindfold can be combined with any other Guardrails validator:Protect LLM Output in a Chain
On-Fail Actions
Guardrails supports several failure handling strategies:Data Residency
Use theregion parameter to ensure PII is processed in a specific jurisdiction:
See Regions for details.
Links
PyPI Package
Install from PyPI
GitHub
Source code and issues
Guardrails AI Docs
Guardrails AI documentation
Cookbook Examples
Working integration examples