pub struct RecallResult {
pub memory: Memory,
pub score: f32,
pub weighted_score: Option<f32>,
pub smart_score: Option<f32>,
pub depth: Option<u8>,
}Expand description
Single recall result
Fields§
§memory: Memory§score: f32§weighted_score: Option<f32>Score after importance-weighted re-ranking
smart_score: Option<f32>Always-on multi-signal smart score (vector + importance + recency + frequency)
depth: Option<u8>KG-3: traversal depth at which this memory was found (only set on associated_memories entries). 1 = direct neighbour of a primary result, 2 = two hops, 3 = three hops.
Trait Implementations§
Source§impl Debug for RecallResult
impl Debug for RecallResult
Source§impl<'de> Deserialize<'de> for RecallResult
impl<'de> Deserialize<'de> for RecallResult
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 RecallResult
impl RefUnwindSafe for RecallResult
impl Send for RecallResult
impl Sync for RecallResult
impl Unpin for RecallResult
impl UnsafeUnpin for RecallResult
impl UnwindSafe for RecallResult
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