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

Function why_matched

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

Source from the content-addressed store, hash-verified

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

Callers 1

resolve_and_rankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected