feat(matching): rank with semantic embeddings and explain matches by evidence

This commit is contained in:
shira committed 2026-10-11 10:39:46 +03:00
1 parent facc1789b1
commit 24b64d698a
215 files changed
+16951 -327

No files matched your search

@@ -60,7 +60,7 @@ func TestRankKeepsTheNeutralTWhenTheRealCohortReachesTheMinimum(t *testing.T) {
confirmedCard(domain.SpecializationBackend, domain.GradeIntern),
confirmedCard(domain.SpecializationFrontend, domain.GradeJunior),
}
ranked, err := service.rank(context.Background(), cohortUnit{evidence: evidence}, Request{}, searchBasis{}, policy, cards)
ranked, err := service.rank(context.Background(), cohortUnit{evidence: evidence}, Request{}, searchBasis{}, policy, needSemantics{}, cards)
if err != nil {
t.Fatalf("rank() error = %v, want a result whatever the real cohort size", err)
}