pub struct RerankFeatures {
pub relevance: f64,
pub salience: f64,
pub temporal: f64,
pub text_match: bool,
pub vector_match: bool,
}Expand description
Input features available per recall candidate for weighted reranking.
Each field is a normalized scalar in roughly [0, 1] (though temporal and
salience can technically exceed 1.0 only if the raw salience > 1.0 or age < 0,
neither of which the runtime produces in practice).
Supported feature names (keys in reranker_weights):
"relevance"— fused retrieval score (RRF/weighted fusion output)"salience"— note salience after decay (salience * exp(-k * age))"temporal"— recency score (exp(-ln2/half_life * age_days))"text_match"— 1.0 when candidate appeared in FTS text results, else 0.0"vector_match"— 1.0 when candidate appeared in vector results, else 0.0
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