MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / why_matched

Function why_matched

atomic-cli/src/commands/vault/context.rs:607–614  ·  view source on GitHub ↗
(candidate: &CandidateScore)

Source from the content-addressed store, hash-verified

605}
606
607fn why_matched(candidate: &CandidateScore) -> &'static str {
608 match (candidate.base > 0.0, candidate.neighbor) {
609 (true, true) => "task terms and knowledge-graph relationship",
610 (true, false) => "task terms",
611 (false, true) => "knowledge-graph relationship",
612 (false, false) => "recent-memory fallback",
613 }
614}
615
616// Node id <-> vault path mapping
617//

Callers 1

resolve_and_rankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected