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

Function rank_score

libatomic/src/daemon/services_agent.rs:148–150  ·  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

146
147 /// Rank-derived score for the `rank`-th KG search result (0-based).
148 fn rank_score(rank: usize) -> f64 {
149 1.0 / (1.0 + rank as f64)
150 }
151
152 /// Lowercased, deduplicated terms using KG FTS rules plus a small
153 /// allowlist of meaningful short technology names. Exact token

Callers 1

gather_candidatesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected