pub struct CandidateFeatures {
pub node_id: u32,
pub raw_distance: f32,
pub similarity: f32,
pub recency: f32,
pub reward: f32,
pub success_score: f32,
pub region_match: bool,
}Expand description
Features for a single retrieval candidate.
Fields§
§node_id: u32Node ID in the index.
raw_distance: f32Raw semantic distance from HNSW (unnormalized).
similarity: f32Normalized semantic distance [0, 1].
recency: f32Recency factor [0, 1] (0 = most recent, 1 = oldest).
reward: f32Reward annotation [0, 1] (NaN → 0.5 default).
success_score: f32Typed-edge success score [0, 1] from Beta prior.
region_match: boolWhether candidate is in the same HNSW region as the query.
Trait Implementations§
Source§impl Clone for CandidateFeatures
impl Clone for CandidateFeatures
Source§fn clone(&self) -> CandidateFeatures
fn clone(&self) -> CandidateFeatures
Returns a copy of the value. Read more
1.0.0 · 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 CandidateFeatures
impl RefUnwindSafe for CandidateFeatures
impl Send for CandidateFeatures
impl Sync for CandidateFeatures
impl Unpin for CandidateFeatures
impl UnwindSafe for CandidateFeatures
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> 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