pub struct FrameworkBuilder { /* private fields */ }Expand description
Builder for ChaoticSemanticFramework
Implementations§
Source§impl FrameworkBuilder
impl FrameworkBuilder
pub fn with_reservoir_size(self, size: usize) -> Self
pub fn with_reservoir_input_size(self, size: usize) -> Self
pub fn with_chaos_strength(self, strength: f32) -> Self
pub fn with_max_concepts(self, max_concepts: usize) -> Self
pub fn with_max_associations_per_concept(self, max_associations: usize) -> Self
pub fn with_concept_cache_size(self, size: usize) -> Self
pub fn with_turso( self, url: impl Into<String>, token: impl Into<String>, ) -> Self
pub fn with_connection_pool_size(self, pool_size: usize) -> Self
pub fn with_max_probe_top_k(self, max_probe_top_k: usize) -> Self
pub fn with_max_metadata_bytes(self, max_metadata_bytes: usize) -> Self
pub fn with_max_cached_top_k(self, max_cached_top_k: usize) -> Self
Sourcepub fn with_version_retention(self, retention: usize) -> Self
pub fn with_version_retention(self, retention: usize) -> Self
Keep the last N historical versions per concept in persistence.
Values less than 1 are coerced to 1. Default is 10.
pub fn with_local_db(self, path: impl Into<String>) -> Self
pub fn without_persistence(self) -> Self
pub async fn build(self) -> Result<ChaoticSemanticFramework>
Auto Trait Implementations§
impl Freeze for FrameworkBuilder
impl RefUnwindSafe for FrameworkBuilder
impl Send for FrameworkBuilder
impl Sync for FrameworkBuilder
impl Unpin for FrameworkBuilder
impl UnsafeUnpin for FrameworkBuilder
impl UnwindSafe for FrameworkBuilder
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
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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request