What You’ll Build
In this quick start, you’ll implement a sensitive information detection system that:- Detects a comprehensive set of personally identifiable information (PII) entity types
- Identifies protected health information (PHI) entity types for healthcare compliance
- Configures custom entity detection for organization-specific data
- Provides real-time detection with sub-second latency
Interactive TutorialFor more advanced examples, including batch processing, performance optimization, and production deployment patterns:Open the Complete Sensitive Information Guardrail Notebook in Google Colab →Or download the notebook from GitHub →
Prerequisites
- Fiddler account with access token
- Python 3.10+ environment
- Basic understanding of data privacy concepts
Overview
Fiddler’s Centor PII and PHI detection provides enterprise-grade protection against data leakage by automatically detecting sensitive information across multiple categories. These guardrails integrate seamlessly with Fiddler’s AI Observability platform, enabling continuous monitoring and automated compliance reporting.Key Capabilities
- PII Detection: a comprehensive set of entity types, including names, addresses, SSN, credit cards, emails, and phone numbers
- PHI Detection: healthcare-specific entity types for HIPAA compliance
- Custom Entities: Define organization-specific sensitive data patterns
- Real-time Processing: Sub-second latency for production applications
Example 2: PHI Detection for Healthcare
Detect protected health information in medical contexts:Expected Output:
API Reference
Endpoint
Request Format
Request Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
input | string | Text to analyze for sensitive information | Required |
entity_categories | string or array | Detection mode(s) to use | ”PII” |
custom_entities | array | Custom entity patterns (required when using “Custom Entities”) | None |
Response Format
Response Fields
| Field | Type | Description |
|---|---|---|
score | float | Confidence score (0.0 to 1.0) |
label | string | Entity type identifier |
start | integer | Character position where entity starts |
end | integer | Character position where entity ends |
text | string | The detected entity text |
Supported Entity Types
PII Entities
The Centor PII model returns labels as lowercase strings — use these exact values when filtering responses.- Personal: person, date of birth
- Contact: email, email address, phone number, mobile phone number, landline phone number, fax number, address, postal code
- Financial: credit card number, credit card expiration date, cvv, cvc, bank account number, account number, iban
- Government IDs: social security number, passport number, driver’s license number, tax identification number, license plate number, cpf, cnpj
- Digital: ip address, digital signature, website
PHI Entities
- Medical: medication, medical condition
- Insurance: health insurance number, health insurance id number, national health insurance number
- Identifiers: birth certificate number, serial number
Code Examples
- Python - Requests
- Python - Error Handling
- cURL
Next Steps
After completing this quick start:- Explore other Fiddler guardrails for comprehensive AI safety
- Review the complete guardrails documentation for all available guardrail types
- Integrate guardrails into your applications for production use
Summary
You’ve learned how to:- ✅ Detect a comprehensive set of PII entity types in text data
- ✅ Identify PHI for healthcare compliance
- ✅ Configure custom entities for your organization
- ✅ Integrate the Centor PII Guardrails API into your applications.