pub struct ScoringWeights {
pub vector_similarity: f64,
pub graph_strength: f64,
pub token_overlap: f64,
pub temporal: f64,
pub tag_matching: f64,
pub importance: f64,
pub confidence: f64,
pub recency: f64,
}Expand description
Configurable weights for the 9-component hybrid scoring system. All weights should sum to 1.0.
Fields§
§vector_similarity: f64§graph_strength: f64§token_overlap: f64§temporal: f64§tag_matching: f64§importance: f64§confidence: f64§recency: f64Implementations§
Source§impl ScoringWeights
impl ScoringWeights
Sourcepub fn normalized(&self) -> Self
pub fn normalized(&self) -> Self
Normalize weights so they sum to 1.0.
Trait Implementations§
Source§impl Clone for ScoringWeights
impl Clone for ScoringWeights
Source§fn clone(&self) -> ScoringWeights
fn clone(&self) -> ScoringWeights
Returns a duplicate 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 moreSource§impl Debug for ScoringWeights
impl Debug for ScoringWeights
Source§impl Default for ScoringWeights
impl Default for ScoringWeights
Source§impl<'de> Deserialize<'de> for ScoringWeights
impl<'de> Deserialize<'de> for ScoringWeights
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScoringWeights
impl RefUnwindSafe for ScoringWeights
impl Send for ScoringWeights
impl Sync for ScoringWeights
impl Unpin for ScoringWeights
impl UnsafeUnpin for ScoringWeights
impl UnwindSafe for ScoringWeights
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