ArmsConfig

Struct ArmsConfig 

Source
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: usize

Dimensionality 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: bool

Whether to normalize points on insertion

§tiers: TierConfig

Tier configuration

Implementations§

Source§

impl ArmsConfig

Source

pub fn new(dimensionality: usize) -> Self

Create a new configuration with specified dimensionality

Uses default proximity (Cosine) and merge (Mean) functions.

Source

pub fn with_proximity<P: Proximity + 'static>(self, proximity: P) -> Self

Set a custom proximity function

Source

pub fn with_merge<M: Merge + 'static>(self, merge: M) -> Self

Set a custom merge function

Source

pub fn with_normalize(self, normalize: bool) -> Self

Set normalization behavior

Source

pub fn with_tiers(self, tiers: TierConfig) -> Self

Set tier configuration

Trait Implementations§

Source§

impl Clone for ArmsConfig

Source§

fn clone(&self) -> ArmsConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for ArmsConfig

Source§

fn default() -> Self

Default configuration: 768 dimensions, cosine proximity, mean merge

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.