pub struct JointEmbeddingOutput {
pub dense: Option<Vec<f32>>,
pub sparse: Option<SparseVector>,
pub multi: Option<Vec<Vec<f32>>>,
}Expand description
Output container for single-pass joint multi-modal / BGE-M3 embedding.
Fields§
§dense: Option<Vec<f32>>Dense vector, when the model provides one.
sparse: Option<SparseVector>Sparse (BM25 / SPLADE) vector, when the model provides one.
multi: Option<Vec<Vec<f32>>>Multivector token vectors (ColBERT), when the model provides them.
Trait Implementations§
Source§impl Clone for JointEmbeddingOutput
impl Clone for JointEmbeddingOutput
Source§fn clone(&self) -> JointEmbeddingOutput
fn clone(&self) -> JointEmbeddingOutput
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 JointEmbeddingOutput
impl Debug for JointEmbeddingOutput
Source§impl Default for JointEmbeddingOutput
impl Default for JointEmbeddingOutput
Source§fn default() -> JointEmbeddingOutput
fn default() -> JointEmbeddingOutput
Returns the “default value” for a type. Read more
Source§impl PartialEq for JointEmbeddingOutput
impl PartialEq for JointEmbeddingOutput
impl StructuralPartialEq for JointEmbeddingOutput
Auto Trait Implementations§
impl Freeze for JointEmbeddingOutput
impl RefUnwindSafe for JointEmbeddingOutput
impl Send for JointEmbeddingOutput
impl Sync for JointEmbeddingOutput
impl Unpin for JointEmbeddingOutput
impl UnsafeUnpin for JointEmbeddingOutput
impl UnwindSafe for JointEmbeddingOutput
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