pub enum Multivector {
F16(Vec<Vec<f16>>),
F32(Vec<Vec<f32>>),
}Expand description
A token-level embedding matrix, in the precision the model produced.
Late-interaction models emit f16 by default; the SDK keeps that precision rather than
silently widening, because crate::scoring::maxsim has to control exactly where the
widening happens.
Variants§
Implementations§
Source§impl Multivector
impl Multivector
Trait Implementations§
Source§impl Clone for Multivector
impl Clone for Multivector
Source§fn clone(&self) -> Multivector
fn clone(&self) -> Multivector
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 Multivector
impl Debug for Multivector
Source§impl PartialEq for Multivector
impl PartialEq for Multivector
impl StructuralPartialEq for Multivector
Auto Trait Implementations§
impl Freeze for Multivector
impl RefUnwindSafe for Multivector
impl Send for Multivector
impl Sync for Multivector
impl Unpin for Multivector
impl UnsafeUnpin for Multivector
impl UnwindSafe for Multivector
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