PII guardrail

class opik.guardrails.guards.pii.PII(blocked_entities: List[str] | None = None, language: str = 'en', threshold: float = 0.5)

Bases: Guard

Guard that validates text for personally identifiable information (PII).

get_validation_configs() List[Dict[str, Any]]

Get the validation configuration for PII detection.

Returns:

List containing the PII validation configuration