Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
067be2c
fix: wire UnifiedClassifier to ExtProc router for consistent LoRA-bas…
yossiovadia Nov 11, 2025
0816eb8
Merge branch 'main' into fix/extproc-use-lora-classifier
yossiovadia Nov 11, 2025
efe47a6
fix(pii): enable LoRA PII auto-detection with minimal changes
yossiovadia Nov 12, 2025
10f2a66
test(pii): add comprehensive PII detection test suite and update e2e …
yossiovadia Nov 12, 2025
cf52321
Merge branch 'main' into fix/pii-lora-auto-detect
yossiovadia Nov 13, 2025
6251632
fix(test): update MockPIIInitializer signature to match interface
yossiovadia Nov 13, 2025
6efce63
fix(lint): apply black formatting and update test mock signature
yossiovadia Nov 13, 2025
4d1a44b
fix(pii): add fallback to ModernBERT for backward compatibility
yossiovadia Nov 13, 2025
3c4b512
Merge branch 'main' into fix/pii-lora-auto-detect
Xunzhuo Nov 16, 2025
68525f2
Merge branch 'main' into fix/pii-lora-auto-detect
Xunzhuo Nov 17, 2025
f8a355b
Merge branch 'main' into fix/pii-lora-auto-detect
yossiovadia Nov 18, 2025
db4a491
fix(classifier): resolve makeReasoningDecisionForCategory after PR #6…
yossiovadia Nov 18, 2025
c298067
fix(config): add default catch-all decision to enable PII detection f…
yossiovadia Nov 18, 2025
af7dfcd
fix(e2e): add default catch-all decision to dynamic-config CRD
yossiovadia Nov 19, 2025
76db897
fix(e2e): remove invalid 'always' signal type from CRD
yossiovadia Nov 19, 2025
20ef032
fix(e2e): change PII test to use 'base-model' instead of 'MoM'
yossiovadia Nov 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions config/testing/config.e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ classifier:
use_cpu: true
category_mapping_path: "models/lora_intent_classifier_bert-base-uncased_model/category_mapping.json"
pii_model:
model_id: "models/pii_classifier_modernbert-base_presidio_token_model" # TODO: Use local model for now before the code can download the entire model from huggingface
use_modernbert: true
model_id: "models/lora_pii_detector_bert-base-uncased_model"
use_modernbert: false # BERT-based LoRA model (this field is ignored - always auto-detects)
threshold: 0.7
use_cpu: true
pii_mapping_path: "models/pii_classifier_modernbert-base_presidio_token_model/pii_type_mapping.json"
pii_mapping_path: "models/lora_pii_detector_bert-base-uncased_model/pii_type_mapping.json"
categories:
- name: business
description: "Business and management related queries"
Expand Down Expand Up @@ -359,6 +359,24 @@ decisions:
enabled: true
pii_types_allowed: ["EMAIL_ADDRESS", "PERSON", "GPE", "PHONE_NUMBER", "US_SSN", "CREDIT_CARD"]

# Default catch-all decision for unmatched requests (E2E PII test fix)
# This ensures PII detection is always enabled, even when no specific decision matches
- name: "default_decision"
description: "Default catch-all decision - blocks all PII for safety"
priority: 1 # Lowest priority - only matches if nothing else does
rules:
operator: "OR"
conditions:
- type: "always" # Always matches as fallback
modelRefs:
- model: "Model-B"
use_reasoning: false
plugins:
- type: "pii"
configuration:
enabled: true
pii_types_allowed: [] # Block ALL PII - empty list means nothing allowed

default_model: "Model-A"

# API Configuration
Expand Down
Loading
Loading