pub struct RerankFeatures {
pub relevance: f64,
pub salience: f64,
pub temporal: f64,
pub text_match: bool,
pub vector_match: bool,
}Expand description
Input features per recall candidate for weighted reranking (relevance, salience, temporal, text_match, vector_match).
Fields§
§relevance: f64Fused retrieval score from RRF or weighted fusion.
salience: f64Decay-adjusted salience value (raw salience × decay factor).
temporal: f64Half-life–decay recency score independent of per-note decay_factor.
text_match: boolTrue when candidate appeared in FTS text search results.
vector_match: boolTrue when candidate appeared in vector search results.
Trait Implementations§
Source§impl Clone for RerankFeatures
impl Clone for RerankFeatures
Source§fn clone(&self) -> RerankFeatures
fn clone(&self) -> RerankFeatures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RerankFeatures
impl RefUnwindSafe for RerankFeatures
impl Send for RerankFeatures
impl Sync for RerankFeatures
impl Unpin for RerankFeatures
impl UnsafeUnpin for RerankFeatures
impl UnwindSafe for RerankFeatures
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,
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