Skip to content

Commit 7241c30

Browse files
feat: merge GSSoC PR #2035 by @Ojas2095 (conflict-free)
2 parents 5283985 + 8827f22 commit 7241c30

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/services/duplicate_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,9 @@ def check_duplicate(self, text: str, threshold: Optional[float] = None) -> Dict:
394394
"[DuplicateService] DEGRADED: Duplicate check skipped (model not available)"
395395
)
396396
return {
397-
"is_duplicate": False,
398-
"duplicate_ticket_id": None,
399-
"similarity": 0.0,
397+
"is_duplicate": True,
398+
"duplicate_ticket_id": tickets_snapshot[best_idx.item()][0],
399+
"similarity_score": round(best_score, 4),
400400
}
401401

402402
use_default_threshold = threshold is None

0 commit comments

Comments
 (0)