fix(playbook): preserve exact match scores in hybrid recommendations
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled
This commit is contained in:
@@ -350,6 +350,11 @@ class PlaybookService:
|
||||
hybrid_by_id = {match.playbook_id: match for match in hybrid_matches}
|
||||
for playbook_id, jaccard_score in jaccard_results:
|
||||
if playbook_id in hybrid_by_id:
|
||||
match = hybrid_by_id[playbook_id]
|
||||
if match.similarity_score < jaccard_score:
|
||||
match.similarity_score = jaccard_score
|
||||
if match.match_type == "vector":
|
||||
match.match_type = "hybrid"
|
||||
continue
|
||||
hybrid_matches.append(
|
||||
PlaybookMatch(
|
||||
|
||||
Reference in New Issue
Block a user