pub struct MemoryHit {
pub key: String,
pub text: String,
pub score: f64,
pub importance: f64,
pub tier: MemoryTier,
pub metadata: HashMap<String, String>,
}Expand description
A recall result.
Fields§
§key: StringStable key within the namespace.
text: StringThe memory text.
score: f64Final ranking score in [0, 1].
importance: f64Importance in [0, 1].
tier: MemoryTierOriginating tier.
metadata: HashMap<String, String>Entry metadata.
Trait Implementations§
impl StructuralPartialEq for MemoryHit
Auto Trait Implementations§
impl Freeze for MemoryHit
impl RefUnwindSafe for MemoryHit
impl Send for MemoryHit
impl Sync for MemoryHit
impl Unpin for MemoryHit
impl UnsafeUnpin for MemoryHit
impl UnwindSafe for MemoryHit
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