pub struct MatryoshkaConfig {
pub full_dim: usize,
pub coarse_dim: usize,
pub mid_dim: usize,
pub m: usize,
pub ef_construction: usize,
pub two_stage_candidates: usize,
pub three_stage_coarse_candidates: usize,
pub three_stage_mid_candidates: usize,
}Fields§
§full_dim: usize§coarse_dim: usize§mid_dim: usize§m: usizeHNSW graph degree.
ef_construction: usize§two_stage_candidates: usizeCandidate set size for TwoStage coarse retrieval.
three_stage_coarse_candidates: usizeCandidate set sizes for ThreeStage (coarse → mid).
three_stage_mid_candidates: usizeImplementations§
Source§impl MatryoshkaConfig
impl MatryoshkaConfig
Sourcepub fn default_128() -> Self
pub fn default_128() -> Self
Sensible defaults for a 128-dim collection with 32/64 coarse/mid dims.
Trait Implementations§
Source§impl Clone for MatryoshkaConfig
impl Clone for MatryoshkaConfig
Source§fn clone(&self) -> MatryoshkaConfig
fn clone(&self) -> MatryoshkaConfig
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 MatryoshkaConfig
impl RefUnwindSafe for MatryoshkaConfig
impl Send for MatryoshkaConfig
impl Sync for MatryoshkaConfig
impl Unpin for MatryoshkaConfig
impl UnsafeUnpin for MatryoshkaConfig
impl UnwindSafe for MatryoshkaConfig
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