pub struct NearestHit {
pub id: String,
pub score: f64,
}Expand description
A nearest-neighbour hit returned by ExperimentMemory::nearest.
Fields§
§id: StringExperiment identifier.
score: f64Cosine similarity to the query embedding (higher = more similar).
Trait Implementations§
Source§impl Clone for NearestHit
impl Clone for NearestHit
Auto Trait Implementations§
impl Forget for NearestHit
impl Freeze for NearestHit
impl Move for NearestHit
impl RefUnwindSafe for NearestHit
impl Send for NearestHit
impl Sync for NearestHit
impl Unpin for NearestHit
impl UnsafeUnpin for NearestHit
impl UnwindSafe for NearestHit
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