pub struct BgeM3DeriveConfig {
pub sparse_top_k: usize,
pub sparse_min_weight: f32,
pub num_multi_vec_tokens: usize,
}Expand description
Configuration for deriving sparse and multi-vec representations from dense embeddings when the backend (Ollama) does not natively expose them.
Fields§
§sparse_top_k: usizeNumber of top dimensions to keep for sparse representation.
sparse_min_weight: f32Minimum absolute weight threshold for sparse entries.
num_multi_vec_tokens: usizeNumber of pseudo per-token vectors for multi-vec representation.
Trait Implementations§
Source§impl Clone for BgeM3DeriveConfig
impl Clone for BgeM3DeriveConfig
Source§fn clone(&self) -> BgeM3DeriveConfig
fn clone(&self) -> BgeM3DeriveConfig
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 BgeM3DeriveConfig
impl Debug for BgeM3DeriveConfig
Auto Trait Implementations§
impl Freeze for BgeM3DeriveConfig
impl RefUnwindSafe for BgeM3DeriveConfig
impl Send for BgeM3DeriveConfig
impl Sync for BgeM3DeriveConfig
impl Unpin for BgeM3DeriveConfig
impl UnsafeUnpin for BgeM3DeriveConfig
impl UnwindSafe for BgeM3DeriveConfig
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