Guardrails & security
PII detection & redaction
Catch and mask sensitive data before it reaches a model.
The PII guardrail scans each prompt with built-in patterns plus custom org rules and takes one of three actions per match.
| Action | Behavior |
|---|---|
| Reject | Block the request |
| Redact | Mask the match and continue |
| Allow | Permit the match |
- Rules are org-scoped with tenant isolation, cached briefly per org.
- Each regex runs under a small timeout budget (configurable) to stay fast.
- Detection statistics are recorded for review.
prompt: "email sarah.chen@gmail.com about the outage"
result: "email [REDACTED] about the outage" ✓ allowed · 1 redactionConfigure rules in the dashboard under Security → PII Detection, and review matches under Security → PII Audit.