Commit f576a53
committed
fix: enable LoRA intent classification and optimize PII threshold
- Fix IsCategoryEnabled() to check correct config path
- Switch default config from ModernBERT to LoRA intent classifier
- Raise PII threshold from 0.7 to 0.9 to reduce false positives
Results:
- Domain classification: 52.50% (vs ModernBERT baseline ~50%)
- PII detection: 96% (minimal impact from threshold increase)
Fixes #724
Signed-off-by: Yossi Ovadia <[email protected]>1 parent 2134116 commit f576a53
File tree
3 files changed
+4
-5
lines changed- config
- e2e/profiles/ai-gateway
- src/semantic-router/pkg/classification
3 files changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
| 64 | + | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| |||
0 commit comments