pub struct RetrievalResult {
pub item: MemoryItem,
pub evidence: Vec<EvidenceLink>,
pub score: f64,
pub score_breakdown: String,
}Expand description
A retrieval result with scoring and provenance.
Fields§
§item: MemoryItemThe retrieved memory item.
evidence: Vec<EvidenceLink>Evidence links supporting this memory.
score: f64Combined relevance score (higher is more relevant).
score_breakdown: StringHuman-readable breakdown of how the score was computed.
Trait Implementations§
Source§impl Clone for RetrievalResult
impl Clone for RetrievalResult
Auto Trait Implementations§
impl Forget for RetrievalResult
impl Freeze for RetrievalResultwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<EvidenceLink>: Freeze,
impl Move for RetrievalResult
impl RefUnwindSafe for RetrievalResult
impl Send for RetrievalResult
impl Sync for RetrievalResult
impl Unpin for RetrievalResult
impl UnsafeUnpin for RetrievalResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<EvidenceLink>: UnsafeUnpin,
impl UnwindSafe for RetrievalResult
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