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

Function final_score

atomic-cli/src/commands/vault/context.rs:553–560  ·  view source on GitHub ↗

Combine the candidate score parts into the final ranking score.

(candidate: &CandidateScore, recency: f64)

Source from the content-addressed store, hash-verified

551
552/// Combine the candidate score parts into the final ranking score.
553fn final_score(candidate: &CandidateScore, recency: f64) -> f64 {
554 let neighbor = if candidate.neighbor {
555 NEIGHBOR_BONUS
556 } else {
557 0.0
558 };
559 candidate.base + neighbor + RECENCY_WEIGHT * recency
560}
561
562// Node id <-> vault path mapping
563//

Callers 2

resolve_and_rankFunction · 0.85

Calls

no outgoing calls

Tested by 1