Skip to main content
The 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

Set your API key:
Get a free API key at app.blindfold.dev.

Quick Start

Parameters

Policies

See Policies for details.

PII Methods

The pii_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

Use on_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 the region parameter to ensure PII is processed in a specific jurisdiction: See Regions for details.

PyPI Package

Install from PyPI

GitHub

Source code and issues

Guardrails AI Docs

Guardrails AI documentation

Cookbook Examples

Working integration examples