Skip to main content

Module ranking

Module ranking 

Source
Expand description

Engine ranking namespace: every ranker stage callable independently.

Thin wrappers over the existing scc-context pipeline pieces — no algorithm changes. ranking.symbols runs the FULL blend (same math as build_surface) and returns per-item feature decomposition plus plugin contributions; stage ops expose the raw vectors. Plugin hooks (spec 18): seed providers, edge-weight contributors, rank features, and rerankers chain deterministically; every contribution is recorded in the explanation.

Structs§

BlendWeights
Per-feature linear blend weights. None = SCC default.
RankFeatureValue
RankHooks
Ranker

Functions§

apply_edge_weight
apply_quotas
default_similarity
Default MMR similarity: same non-empty group => 1.0, else 0.0. Groups are caller-supplied (component/path); None/empty never match.
fold_similarity
Fold chained similarity providers over one pair: first nonzero wins. Falls back to default_similarity when no provider fires.
mmr_select
select_with_budget

Type Aliases§

CandidateProvider
EdgeWeightFn
Edge-weight contributor: per-edge (subject, predicate, object, base) adjustment. Return Some((mode, value)) to alter the weight, None for no change. Modes: add | multiply | replace | veto. Every applied contribution is recorded on the affected rank items’ reasons.
RankFeatureFn
RerankerFn
SeedProvider
SimilarityFn