pub struct VectorMatch {
pub id: String,
pub score: f32,
pub metadata: BTreeMap<String, Value>,
}Expand description
One nearest neighbour: the record’s id, its cosine similarity to the query (higher is closer), and its metadata.
Fields§
§id: String§score: f32§metadata: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for VectorMatch
impl Clone for VectorMatch
Source§impl Debug for VectorMatch
impl Debug for VectorMatch
Source§impl PartialEq for VectorMatch
impl PartialEq for VectorMatch
impl StructuralPartialEq for VectorMatch
Auto Trait Implementations§
impl Freeze for VectorMatch
impl RefUnwindSafe for VectorMatch
impl Send for VectorMatch
impl Sync for VectorMatch
impl Unpin for VectorMatch
impl UnsafeUnpin for VectorMatch
impl UnwindSafe for VectorMatch
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