Current PII detection uses pattern matching (regex) which catches structured formats like SSNs, credit card numbers, emails, and phone numbers. But it misses:
Names in context ("Send this to John Smith at Acme Corp")
Unstructured addresses
Context-dependent PII
Explore adding a lightweight NER (Named Entity Recognition) model as a post-processing step for PII detection in agent responses.
Considerations:
Keep dependency footprint light — evaluate spaCy vs small transformer models
Should be optional (users who want regex-only shouldn't need ML dependencies)
Could be a plugin/add-on: pip install agent-warden[ner]
Open questions:
What's the acceptable latency overhead per agent response?
How to handle false positive/negative tradeoff? Configurable sensitivity levels?
Current PII detection uses pattern matching (regex) which catches structured formats like SSNs, credit card numbers, emails, and phone numbers. But it misses:
Names in context ("Send this to John Smith at Acme Corp")
Unstructured addresses
Context-dependent PII
Explore adding a lightweight NER (Named Entity Recognition) model as a post-processing step for PII detection in agent responses.
Considerations:
Keep dependency footprint light — evaluate spaCy vs small transformer models
Should be optional (users who want regex-only shouldn't need ML dependencies)
Could be a plugin/add-on: pip install agent-warden[ner]
Open questions:
What's the acceptable latency overhead per agent response?
How to handle false positive/negative tradeoff? Configurable sensitivity levels?