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§
- Blend
Weights - Per-feature linear blend weights.
None= SCC default. - Rank
Feature Value - Rank
Hooks - 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_similaritywhen no provider fires. - mmr_
select - select_
with_ budget
Type Aliases§
- Candidate
Provider - Edge
Weight Fn - Edge-weight contributor: per-edge (subject, predicate, object, base)
adjustment. Return
Some((mode, value))to alter the weight,Nonefor no change. Modes: add | multiply | replace | veto. Every applied contribution is recorded on the affected rank items’ reasons. - Rank
Feature Fn - Reranker
Fn - Seed
Provider - Similarity
Fn