pub struct RaBitQConfig {
pub seed: u64,
pub keep_raw: bool,
}Expand description
RaBitQ quantization configuration.
Fields§
§seed: u64Seed for the random rotation matrix. Same seed → identical quantization across shards, enabling consistent distance comparisons.
keep_raw: boolKeep raw F16 vectors alongside binary codes for exact reranking. Disabling this halves the storage of the index section but prevents reranking — only use when storage is the primary constraint.
Trait Implementations§
Source§impl Clone for RaBitQConfig
impl Clone for RaBitQConfig
Source§fn clone(&self) -> RaBitQConfig
fn clone(&self) -> RaBitQConfig
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 RaBitQConfig
impl Debug for RaBitQConfig
Source§impl<'de> Deserialize<'de> for RaBitQConfig
impl<'de> Deserialize<'de> for RaBitQConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RaBitQConfig
impl RefUnwindSafe for RaBitQConfig
impl Send for RaBitQConfig
impl Sync for RaBitQConfig
impl Unpin for RaBitQConfig
impl UnsafeUnpin for RaBitQConfig
impl UnwindSafe for RaBitQConfig
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