pub struct BeliefMemConfig {
pub enabled: bool,
pub min_entry_prob: f32,
pub promote_threshold: f32,
pub max_candidates_per_group: usize,
pub retrieval_top_k: usize,
pub belief_decay_rate: f32,
}Expand description
Configuration for the probabilistic belief layer.
Embed in [memory.graph.belief_mem] in config.toml. All thresholds are
dimensionless probabilities in [0.0, 1.0].
Fields§
§enabled: boolWhether the feature is enabled. Default: false.
min_entry_prob: f32Minimum probability for a new fact to enter pending_beliefs.
Evidence below this is discarded. Default: 0.3.
promote_threshold: f32Promotion threshold: when prob >= promote_threshold, the belief is
returned from BeliefStore::record_evidence for the caller to commit.
Default: 0.85.
max_candidates_per_group: usizeEviction cap: maximum pending_beliefs rows per (source, canonical_relation)
group. Oldest low-probability beliefs are evicted when exceeded. Default: 10.
retrieval_top_k: usizeNumber of candidates returned by BeliefStore::retrieve_candidates.
Default: 3.
belief_decay_rate: f32Exponential decay rate λ applied to existing probability before each Noisy-OR
update. Set to 0.0 to disable temporal decay. Default: 0.01.
Trait Implementations§
Source§impl Clone for BeliefMemConfig
impl Clone for BeliefMemConfig
Source§fn clone(&self) -> BeliefMemConfig
fn clone(&self) -> BeliefMemConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BeliefMemConfig
impl Debug for BeliefMemConfig
Auto Trait Implementations§
impl Freeze for BeliefMemConfig
impl RefUnwindSafe for BeliefMemConfig
impl Send for BeliefMemConfig
impl Sync for BeliefMemConfig
impl Unpin for BeliefMemConfig
impl UnsafeUnpin for BeliefMemConfig
impl UnwindSafe for BeliefMemConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 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>
T in a tonic::Request