pub struct MultiFunctionEmbedding {
pub dense: Vec<f32>,
pub sparse: SparseWeights,
pub multi_vec: MultiVectorEmbedding,
}Expand description
Result of a single multi-function embedding call containing all three representations produced from one model invocation.
Fields§
§dense: Vec<f32>Dense vector (standard embedding for dense retrieval).
sparse: SparseWeightsSparse lexical weights (SPLADE-like for sparse retrieval).
multi_vec: MultiVectorEmbeddingColBERT-style multi-vector (per-token embeddings for late interaction).
Trait Implementations§
Source§impl Clone for MultiFunctionEmbedding
impl Clone for MultiFunctionEmbedding
Source§fn clone(&self) -> MultiFunctionEmbedding
fn clone(&self) -> MultiFunctionEmbedding
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 moreAuto Trait Implementations§
impl Freeze for MultiFunctionEmbedding
impl RefUnwindSafe for MultiFunctionEmbedding
impl Send for MultiFunctionEmbedding
impl Sync for MultiFunctionEmbedding
impl Unpin for MultiFunctionEmbedding
impl UnsafeUnpin for MultiFunctionEmbedding
impl UnwindSafe for MultiFunctionEmbedding
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