pub struct RankingWeights {
pub similarity: f32,
pub importance: f32,
pub recency: f32,
pub frequency: f32,
}Expand description
Ranking weights for memory relevance scoring
Fields§
§similarity: f32Weight for embedding similarity (0.0 - 1.0)
importance: f32Weight for importance score (0.0 - 1.0)
recency: f32Weight for recency (0.0 - 1.0)
frequency: f32Weight for access frequency (0.0 - 1.0)
Trait Implementations§
Source§impl Clone for RankingWeights
impl Clone for RankingWeights
Source§fn clone(&self) -> RankingWeights
fn clone(&self) -> RankingWeights
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 RankingWeights
impl Debug for RankingWeights
Source§impl Default for RankingWeights
impl Default for RankingWeights
Source§impl<'de> Deserialize<'de> for RankingWeights
impl<'de> Deserialize<'de> for RankingWeights
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 RankingWeights
impl RefUnwindSafe for RankingWeights
impl Send for RankingWeights
impl Sync for RankingWeights
impl Unpin for RankingWeights
impl UnsafeUnpin for RankingWeights
impl UnwindSafe for RankingWeights
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