pii
rule. This rule helps identify and prevent the disclosure of sensitive personal information in AI responses. For more details, see our Rules Catalog.
Rule structure:
- type:
pii
- value:
list of PII categories to detect
- expected:
fail
(to flag when PII is detected) - threshold: Confidence level for PII detection (e.g., 0.8 for 80% confidence)
value
field. For more than 5 categories, we suggest to add more rules, see the example below.