(candidate: &CandidateScore)
| 633 | } |
| 634 | |
| 635 | fn why_matched(candidate: &CandidateScore) -> &'static str { |
| 636 | match (candidate.base > 0.0, candidate.neighbor) { |
| 637 | (true, true) => "task terms and knowledge-graph relationship", |
| 638 | (true, false) => "task terms", |
| 639 | (false, true) => "knowledge-graph relationship", |
| 640 | (false, false) => "recent-memory fallback", |
| 641 | } |
| 642 | } |
| 643 | |
| 644 | // Node id <-> vault path mapping |
| 645 | // |