Skip to main content

score

Function score 

Source
pub fn score(chunk: &NewMemoryChunk) -> f32
Expand description

Compute the initial importance score for a new chunk.

If the caller passed an explicit importance value on NewMemoryChunk, that value is returned (clamped to [0,1]). Otherwise the scorer applies the heuristic above starting from a baseline of 0.5 and returns the clamped result.