(candidate: &CandidateScore)
| 601 | } |
| 602 | |
| 603 | fn 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 | // |