pub struct FdeParams {
pub k_sim: u32,
pub reps: u32,
pub d_proj: u32,
pub input_dim: u32,
pub seed: u64,
}Expand description
Parameters of an FDE transform. Persisted (via the raw fields on
VectorIndexType::Muvera) so query-time encoding reproduces document-time encoding.
Fields§
§k_sim: u32Number of SimHash hyperplanes per repetition; produces 2^k_sim buckets.
reps: u32Number of independent repetitions concatenated into the final FDE.
d_proj: u32Inner-projection target dimension. 0 means “no projection” (use input_dim).
input_dim: u32Dimension of each input token vector (resolved from the source column at build).
seed: u64Master seed; all hyperplanes/projections are derived from it.
Implementations§
Source§impl FdeParams
impl FdeParams
Sourcepub fn proj_dim(&self) -> usize
pub fn proj_dim(&self) -> usize
Per-bucket vector dimension (the projected dim, or input_dim if no projection).
Sourcepub fn fde_dim(&self) -> usize
pub fn fde_dim(&self) -> usize
Final FDE dimension: reps * 2^k_sim * proj_dim.
Saturates to usize::MAX on overflow rather than panicking (M-PANIC-IS-STOP):
an unvalidated caller with absurd reps/d_proj must not crash, and a saturated
value cleanly trips the dim > MAX_FDE_DIM check in FdeParams::validate.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FdeParams
impl<'de> Deserialize<'de> for FdeParams
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>,
impl Eq for FdeParams
impl StructuralPartialEq for FdeParams
Auto Trait Implementations§
impl Freeze for FdeParams
impl RefUnwindSafe for FdeParams
impl Send for FdeParams
impl Sync for FdeParams
impl Unpin for FdeParams
impl UnsafeUnpin for FdeParams
impl UnwindSafe for FdeParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more