pub struct RankParams {
pub dense_weight: f32,
pub sparse_weight: f32,
pub fusion: Fusion,
pub candidate_multiplier: usize,
pub graph_boost: f32,
}Expand description
Ranking parameters for a hybrid search.
Fields§
§dense_weight: f32Weight of the dense (semantic) arm.
sparse_weight: f32Weight of the sparse (BM25) arm.
fusion: FusionHow the arms are fused.
candidate_multiplier: usizePer-arm candidate pool size as a multiple of limit (oversampling before
fusion). Clamped to a sane floor internally.
graph_boost: f32One-hop knowledge-graph boost applied after fusion (0 = off, the default):
each candidate gains graph_boost × mean(fused score of its in/out neighbors within the candidate pool), rewarding well-connected hub/authority pages.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RankParams
impl RefUnwindSafe for RankParams
impl Send for RankParams
impl Sync for RankParams
impl Unpin for RankParams
impl UnsafeUnpin for RankParams
impl UnwindSafe for RankParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more