pub struct ArmsConfig {
pub dimensionality: usize,
pub proximity: Arc<dyn Proximity>,
pub merge: Arc<dyn Merge>,
pub normalize_on_insert: bool,
pub tiers: TierConfig,
}Expand description
Main ARMS configuration
Defines the dimensional space and default operations.
Fields§
§dimensionality: usizeDimensionality of the space
Set this to match your model’s hidden size. Examples: 768 (BERT), 1024 (GPT-2 medium), 4096 (large models)
proximity: Arc<dyn Proximity>Proximity function for similarity calculations
merge: Arc<dyn Merge>Merge function for hierarchical composition
normalize_on_insert: boolWhether to normalize points on insertion
tiers: TierConfigTier configuration
Implementations§
Source§impl ArmsConfig
impl ArmsConfig
Sourcepub fn new(dimensionality: usize) -> Self
pub fn new(dimensionality: usize) -> Self
Create a new configuration with specified dimensionality
Uses default proximity (Cosine) and merge (Mean) functions.
Sourcepub fn with_proximity<P: Proximity + 'static>(self, proximity: P) -> Self
pub fn with_proximity<P: Proximity + 'static>(self, proximity: P) -> Self
Set a custom proximity function
Sourcepub fn with_merge<M: Merge + 'static>(self, merge: M) -> Self
pub fn with_merge<M: Merge + 'static>(self, merge: M) -> Self
Set a custom merge function
Sourcepub fn with_normalize(self, normalize: bool) -> Self
pub fn with_normalize(self, normalize: bool) -> Self
Set normalization behavior
Sourcepub fn with_tiers(self, tiers: TierConfig) -> Self
pub fn with_tiers(self, tiers: TierConfig) -> Self
Set tier configuration
Trait Implementations§
Source§impl Clone for ArmsConfig
impl Clone for ArmsConfig
Source§fn clone(&self) -> ArmsConfig
fn clone(&self) -> ArmsConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ArmsConfig
impl !RefUnwindSafe for ArmsConfig
impl Send for ArmsConfig
impl Sync for ArmsConfig
impl Unpin for ArmsConfig
impl !UnwindSafe for ArmsConfig
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