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
@@ -25,6 +25,8 @@ type explanationInput struct {
|
||||
// percentileReason is the reason that the percentile is null; the zero
|
||||
// value means the cohort is below the minimum.
|
||||
percentileReason UnknownReason
|
||||
// semanticsKnown is true when Sem came from stored vectors.
|
||||
semanticsKnown bool
|
||||
}
|
||||
|
||||
// explain builds the bounded, templated explanation and the unknown flags.
|
||||
@@ -111,7 +113,9 @@ func skillGroupState(input explanationInput, required bool) (EvidenceState, bool
|
||||
// the specialization has no confirmation instead.
|
||||
func unknownFlags(input explanationInput) []UnknownFlag {
|
||||
flags := make([]UnknownFlag, 0, 9)
|
||||
flags = append(flags, UnknownFlag{Component: UnknownSemantics, Reason: ReasonMLUnavailable})
|
||||
if !input.semanticsKnown {
|
||||
flags = append(flags, UnknownFlag{Component: UnknownSemantics, Reason: ReasonMLUnavailable})
|
||||
}
|
||||
if input.confirmed {
|
||||
reason := input.percentileReason
|
||||
if reason == "" {
|
||||
|
||||
Reference in new issue
Block a user