pub struct RelevanceConfig {
pub decay_days: f32,
pub importance_weight: f32,
pub recency_weight: f32,
}Expand description
Configuration for relevance scoring
Fields§
§decay_days: f32Exponential decay half-life in days (default: 30.0)
importance_weight: f32Weight for importance factor (default: 0.7)
recency_weight: f32Weight for recency factor (default: 0.3)
Trait Implementations§
Source§impl Clone for RelevanceConfig
impl Clone for RelevanceConfig
Source§fn clone(&self) -> RelevanceConfig
fn clone(&self) -> RelevanceConfig
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 RelevanceConfig
impl Debug for RelevanceConfig
Source§impl Default for RelevanceConfig
impl Default for RelevanceConfig
Source§impl<'de> Deserialize<'de> for RelevanceConfig
impl<'de> Deserialize<'de> for RelevanceConfig
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 RelevanceConfig
impl RefUnwindSafe for RelevanceConfig
impl Send for RelevanceConfig
impl Sync for RelevanceConfig
impl Unpin for RelevanceConfig
impl UnsafeUnpin for RelevanceConfig
impl UnwindSafe for RelevanceConfig
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