pub struct DocumentMatch {
pub id: String,
pub score: f32,
pub payload: Option<Value>,
pub vectors: Option<Vec<Vec<f32>>>,
}Expand description
A multi-vector (late-interaction / ColBERT) document result: a document id, its MaxSim relevance, the payload, and — if requested — the document’s token vectors (ADR-0028).
Fields§
§id: StringDocument id.
score: f32MaxSim relevance score (0 for a direct fetch).
payload: Option<Value>The document payload, if requested / present (stored on the anchor token).
vectors: Option<Vec<Vec<f32>>>The document’s token vectors, if requested.
Trait Implementations§
Source§impl Clone for DocumentMatch
impl Clone for DocumentMatch
Source§fn clone(&self) -> DocumentMatch
fn clone(&self) -> DocumentMatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentMatch
impl Debug for DocumentMatch
Source§impl PartialEq for DocumentMatch
impl PartialEq for DocumentMatch
Source§fn eq(&self, other: &DocumentMatch) -> bool
fn eq(&self, other: &DocumentMatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DocumentMatch
Auto Trait Implementations§
impl Freeze for DocumentMatch
impl RefUnwindSafe for DocumentMatch
impl Send for DocumentMatch
impl Sync for DocumentMatch
impl Unpin for DocumentMatch
impl UnsafeUnpin for DocumentMatch
impl UnwindSafe for DocumentMatch
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