Skip to main content

RankHooks

Struct RankHooks 

Source
pub struct RankHooks {
Show 14 fields pub seed_providers: Vec<SeedProvider>, pub features: Vec<RankFeatureFn>, pub rerankers: Vec<RerankerFn>, pub edge_weights: Vec<EdgeWeightFn>, pub similarities: Vec<SimilarityFn>, pub coverage: Vec<CoverageProvider>, pub candidates: Vec<CandidateProvider>, pub rank_edges: Vec<RankEdgeProvider>, pub rank_nodes: Vec<RankNodeProvider>, pub criticality: Vec<CriticalityProvider>, pub novelty: Vec<NoveltyProvider>, pub risk: Vec<RiskProvider>, pub semantic: Vec<SemanticProvider>, pub profiles: BTreeMap<String, BlendWeights>,
}

Fields§

§seed_providers: Vec<SeedProvider>§features: Vec<RankFeatureFn>§rerankers: Vec<RerankerFn>§edge_weights: Vec<EdgeWeightFn>§similarities: Vec<SimilarityFn>

Pairwise item similarity for MMR diversification. First provider returning a nonzero value wins (deterministic chain order); the built-in default (same-group => 1.0) runs last.

§coverage: Vec<CoverageProvider>

Extra required-coverage providers (§124 item 26): contributed symbol ids union with the engine required_ids base. Recorded in reasons as required-by:<n>.

§candidates: Vec<CandidateProvider>

Extra candidate providers (spec 18): merged with the lexical base by canonical id, max score wins. Deterministic chain order.

§rank_edges: Vec<RankEdgeProvider>

Extra rank-time edges (§48): merged into diffusion, never into the canonical graph. Deterministic chain order.

§rank_nodes: Vec<RankNodeProvider>

Extra rank-universe nodes (§124 item 17): merged before edge indexing so provider edges can attach to provider nodes. Deterministic chain order.

§criticality: Vec<CriticalityProvider>

Criticality overrides (§53): first Some in chain order wins.

§novelty: Vec<NoveltyProvider>

Novelty overrides (§53): first Some in chain order wins.

§risk: Vec<RiskProvider>

Change-risk overrides (§53): first Some in chain order wins.

§semantic: Vec<SemanticProvider>

Semantic-score overrides (§53): first Some in chain order wins.

§profiles: BTreeMap<String, BlendWeights>

Named blend profiles: profile name -> per-feature weight overrides for the linear blend (feature keys: task_ppr, global_ppr, lexical, semantic, confidence, criticality, change_risk, novelty). Missing keys keep default weights. Applied inside the same linear math; recorded in reasons.

Trait Implementations§

Source§

impl Default for RankHooks

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.