#[non_exhaustive]pub struct ScoringConfig {
pub corrective_weight: f64,
pub stateful_weight: f64,
pub decisive_weight: f64,
pub reinforcing_weight: f64,
pub uncategorized_weight: f64,
pub importance_half_life_secs: f64,
}Expand description
Configuration for importance scoring.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.corrective_weight: f64Weight multiplier for Corrective passages (default: 1.5).
stateful_weight: f64Weight multiplier for Stateful passages (default: 1.2).
decisive_weight: f64Weight multiplier for Decisive passages (default: 1.3).
reinforcing_weight: f64Weight multiplier for Reinforcing passages (default: 1.0).
uncategorized_weight: f64Weight for uncategorized passages (default: 0.5).
importance_half_life_secs: f64Half-life in seconds for importance recency decay (default: 604800 = 7 days).
NOT the same as BM25’s 72-hour half-life in core.
Values ≤ 0 or non-finite fall back to DEFAULT_IMPORTANCE_HALF_LIFE_SECS.
Trait Implementations§
Source§impl Clone for ScoringConfig
impl Clone for ScoringConfig
Source§fn clone(&self) -> ScoringConfig
fn clone(&self) -> ScoringConfig
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 moreSource§impl Debug for ScoringConfig
impl Debug for ScoringConfig
Auto Trait Implementations§
impl Freeze for ScoringConfig
impl RefUnwindSafe for ScoringConfig
impl Send for ScoringConfig
impl Sync for ScoringConfig
impl Unpin for ScoringConfig
impl UnsafeUnpin for ScoringConfig
impl UnwindSafe for ScoringConfig
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