Skip to content

Commit 2fd2126

Browse files
committed
fix(test): correct relative path for PII LoRA model in auto-detection test
The PII auto-detection test was using an incorrect relative path "models/lora_pii_detector_bert-base-uncased_model" which would fail when running from the test directory location. Updated to use the correct relative path "../../../../models/lora_pii_detector_bert-base-uncased_model" to match the pattern used in the intent classification test. This ensures the test can locate the model files correctly and doesn't skip when the LoRA PII model is available. Fixes #787 Signed-off-by: Yossi Ovadia <[email protected]>
1 parent 292170b commit 2fd2126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/semantic-router/pkg/classification/lora_auto_detection_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func TestIntentClassificationLoRAAutoDetection(t *testing.T) {
8989

9090
// TestPIIAlreadyHasAutoDetection shows PII detection already works with LoRA auto-detection
9191
func TestPIIAlreadyHasAutoDetection(t *testing.T) {
92-
modelPath := "models/lora_pii_detector_bert-base-uncased_model"
92+
modelPath := "../../../../models/lora_pii_detector_bert-base-uncased_model"
9393

9494
// Check if LoRA model exists
9595
if _, err := os.Stat(modelPath + "/lora_config.json"); os.IsNotExist(err) {

0 commit comments

Comments
 (0)