Struct RerankConfig
pub struct RerankConfig {
pub strategy: RerankStrategy,
pub threshold: usize,
pub importance_weight: f64,
pub recency_weight: f64,
pub min_relevance_score: f64,
pub final_limit: usize,
pub candidate_pool_cap: usize,
}Expand description
Rerank stage configuration, materialized from canonical memory config.
Copy so the engine’s injection config (which embeds one) stays Copy.
Fields§
§strategy: RerankStrategy§threshold: usize§importance_weight: f64§recency_weight: f64§min_relevance_score: f64§final_limit: usize§candidate_pool_cap: usizeUpper bound on the candidate pool the stage will scan, materialized
from the recall limit and the configured candidate multiplier. run
trims the incoming pool to this bound (held under MAX_CANDIDATE_POOL)
before any blend/dedup/MMR work, so an over-returning backend cannot
feed an unbounded list into the quadratic scans.
Implementations§
Trait Implementations§
Source§impl Clone for RerankConfig
impl Clone for RerankConfig
Source§fn clone(&self) -> RerankConfig
fn clone(&self) -> RerankConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RerankConfig
impl Debug for RerankConfig
Source§impl PartialEq for RerankConfig
impl PartialEq for RerankConfig
impl Copy for RerankConfig
impl StructuralPartialEq for RerankConfig
Auto Trait Implementations§
impl Freeze for RerankConfig
impl RefUnwindSafe for RerankConfig
impl Send for RerankConfig
impl Sync for RerankConfig
impl Unpin for RerankConfig
impl UnsafeUnpin for RerankConfig
impl UnwindSafe for RerankConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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