pub struct OpsConfig {
pub backup_dir: Option<PathBuf>,
pub consolidation_min_cluster_size: usize,
pub consolidation_similarity: f32,
pub dedup_batch_size: usize,
pub max_forgets_per_archive: usize,
pub documents: DocumentConfig,
pub readiness: ReadinessConfig,
}Expand description
Settings for the operations endpoints.
Fields§
§backup_dir: Option<PathBuf>Where backups are written (MENTEDB_BACKUP_DIR). None means
<data_dir>/backups. Each database gets its own subdirectory.
consolidation_min_cluster_size: usizeSmallest cluster of near duplicates worth consolidating.
consolidation_similarity: f32Cosine similarity at which memories are grouped for consolidation.
dedup_batch_size: usizeMemory ids handed to one paraphrase dedup pass, so a large database is swept in bounded steps.
max_forgets_per_archive: usizeMost memories one archive run may forget.
documents: DocumentConfig§readiness: ReadinessConfigImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpsConfig
impl RefUnwindSafe for OpsConfig
impl Send for OpsConfig
impl Sync for OpsConfig
impl Unpin for OpsConfig
impl UnsafeUnpin for OpsConfig
impl UnwindSafe for OpsConfig
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
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> ErasedDestructor for Twhere
T: 'static,
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