What is Guardian?
Guardian is Continum’s pre-LLM protection layer that detects and redacts PII before it reaches your LLM provider. It runs in under 100ms, making it suitable for production use.Why Guardian?
The Problem
Users might accidentally send PII to your AI application:The Solution
Guardian intercepts and redacts PII before the LLM sees it:How It Works
1. Pattern Matching
Guardian uses regex patterns to detect common PII types:- Email addresses
- US SSN (123-45-6789)
- Credit cards (4111-1111-1111-1111)
- Phone numbers (+1-555-123-4567)
- UK/US Passports
- Health/Medical IDs
- IP addresses
- Physical addresses
2. Entity Detection
For complex PII (names, locations), Guardian uses lightweight ML models:- Named Entity Recognition (NER)
- Context-aware detection
- Confidence scoring
3. Redaction Strategies
Guardian offers multiple redaction strategies: Full redaction:Configuration
Enable Guardian
Guardian Actions
Configure what happens when PII is detected: REDACT_AND_CONTINUE (default):- Redacts PII from prompt
- Continues with LLM call
- User gets response with redacted input
- Blocks LLM call entirely
- Returns error to user
- No LLM call made
- Logs detection but doesn’t redact
- Useful for monitoring without blocking
Sandbox Configuration
Set Guardian action per sandbox:API Endpoint
POST /guardian/scan
Scan a prompt for PII before sending to LLM:SDK Integration
Guardian is automatically integrated when enabled:Performance
Guardian is optimized for production use:| Operation | Latency | Notes |
|---|---|---|
| Pattern matching | 10-30ms | Regex-based detection |
| Entity detection | 50-80ms | ML-based NER |
| Total Guardian overhead | < 100ms | Acceptable for production |
Detected PII Types
Guardian detects the following PII categories:Personal Identifiers
- Full names (with context)
- Email addresses
- Phone numbers
- Physical addresses
Government IDs
- US Social Security Numbers (SSN)
- UK/US Passport numbers
- Driver’s license numbers
- National ID numbers
Financial Data
- Credit/debit card numbers
- CVV codes
- Bank account numbers
- IBAN codes
- Cryptocurrency wallet addresses
Health Data
- Medical record numbers (MRN)
- Health insurance IDs
- Prescription numbers
- Biometric identifiers
Technical Identifiers
- IP addresses (when linked to individuals)
- Device IDs
- Session tokens
- API keys
Guardian Scans in Dashboard
All Guardian scans are logged and visible in the dashboard:- Detected PII types
- Redaction applied
- Action taken (ALLOW, REDACT, BLOCK)
- Confidence scores
- Duration
Best Practices
When to Enable Guardian
✅ Enable Guardian when:- Users can input free-form text
- Application handles sensitive data
- Compliance requires pre-LLM protection
- GDPR/CCPA/HIPAA applies
- Input is fully controlled (no user input)
- Performance is critical (< 100ms not acceptable)
- Post-hoc auditing is sufficient
Choosing Guardian Action
REDACT_AND_CONTINUE:- Best for most use cases
- Maintains user experience
- Protects LLM from PII
- Logs violations for monitoring
- Maximum protection
- Use for highly sensitive applications
- May frustrate users if false positives
- Consider showing helpful error message
- Monitoring mode
- Use during testing/rollout
- Logs detections without blocking
- Upgrade to REDACT after validation
Limitations
False Positives
Guardian may flag non-PII as PII:False Negatives
Guardian may miss obfuscated PII:Language Support
Guardian is optimized for English. Other languages may have reduced accuracy.Next Steps
Mirror
Learn about post-LLM auditing
Sandbox
Configure sandbox types
API Reference
Guardian API documentation
PII Detection
Comprehensive PII detection guide

