Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AI45Lab/Code
/ ranking_score
Function
ranking_score
core/src/context/assembler.rs:251–253 ·
view source on GitHub ↗
(item: &ContextItem)
Source
from the content-addressed store, hash-verified
249
}
250
251
fn ranking_score(item: &ContextItem) -> f32 {
252
item.relevance + item.priority() * 0.25 + item.trust() * 0.15 + item.freshness() * 0.10
253
}
254
255
#[cfg(test)]
256
mod tests {
Callers
1
assemble
Method · 0.85
Calls
3
trust
Method · 0.80
freshness
Method · 0.80
priority
Method · 0.45
Tested by
no test coverage detected