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

Function rank_score

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

Rank-derived score for the `rank`-th KG search result (0-based).

(rank: usize)

Source from the content-addressed store, hash-verified

504
505/// Rank-derived score for the `rank`-th KG search result (0-based).
506fn rank_score(rank: usize) -> f64 {
507 1.0 / (1.0 + rank as f64)
508}
509
510/// Lowercased, deduplicated terms using KG FTS rules plus a small allowlist of
511/// meaningful short technology names. Exact token matching prevents substring

Callers 1

gather_candidatesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected