feat(matching): rank with semantic embeddings and explain matches by evidence
This commit is contained in:
1 parent
facc1789b1
commit
24b64d698a
215 files changed
+16951
-327
No files matched your search
@@ -275,6 +275,8 @@ function confirmedToTransport(candidate: MatchConfirmedCardModel): ConfirmedCand
|
||||
strength: candidate.strength,
|
||||
public_context: publicContextToTransport(candidate.publicContext),
|
||||
evidence_summary: candidate.evidenceSummary.map(({ code, state }) => ({ code, state })),
|
||||
// The card model does not carry the semantic explanation yet.
|
||||
semantic_evidence: [],
|
||||
components: { ...components, rank_score: rankScore },
|
||||
unknown_flags: candidate.unknownFlags.map(({ component, reason }) => ({ component, reason })),
|
||||
};
|
||||
@@ -290,6 +292,8 @@ function unconfirmedToTransport(candidate: MatchUnconfirmedCardModel): Unconfirm
|
||||
strength: null,
|
||||
public_context: publicContextToTransport(candidate.publicContext),
|
||||
evidence_summary: candidate.evidenceSummary.map(({ code, state }) => ({ code, state })),
|
||||
// The card model does not carry the semantic explanation yet.
|
||||
semantic_evidence: [],
|
||||
components: { fit: candidate.components.fit, coverage: candidate.components.coverage },
|
||||
unknown_flags: candidate.unknownFlags.map(({ component, reason }) => ({ component, reason })),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user