pub struct RetrievalFailuresConfig {
pub enabled: bool,
pub low_confidence_threshold: f32,
pub retention_days: u32,
pub channel_capacity: usize,
pub batch_size: usize,
pub flush_interval_ms: u64,
}Expand description
OmniMem retrieval failure tracking configuration (issue #3576).
Controls the async logger that records no-hit and low-confidence recall events
to memory_retrieval_failures for closed-loop memory parameter tuning.
Fields§
§enabled: boolEnable retrieval failure logging. Default: false.
low_confidence_threshold: f32Composite recall score below which a result is classified as low-confidence.
The threshold applies to the post-reranking composite score (which incorporates
MMR, temporal decay, importance weighting, and tier boost). Calibrate against
the scoring pipeline in use. Default: 0.3.
retention_days: u32Days to retain failure records before automatic cleanup. Default: 90.
channel_capacity: usizeBounded mpsc channel capacity for the fire-and-forget write path. Default: 256.
batch_size: usizeMaximum records collected before flushing a batch INSERT. Default: 16.
flush_interval_ms: u64Maximum milliseconds to wait before flushing a partial batch. Default: 100.
Trait Implementations§
Source§impl Clone for RetrievalFailuresConfig
impl Clone for RetrievalFailuresConfig
Source§fn clone(&self) -> RetrievalFailuresConfig
fn clone(&self) -> RetrievalFailuresConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more