diff --git a/crates/shrimpk-core/src/config.rs b/crates/shrimpk-core/src/config.rs index 55db32b..5192277 100644 --- a/crates/shrimpk-core/src/config.rs +++ b/crates/shrimpk-core/src/config.rs @@ -241,7 +241,7 @@ pub struct EchoConfig { pub child_memory_penalty: f32, /// Supersession demotion factor (multiplicative). 0.40 = retain 60% of score. /// Applied as `score *= (1 - factor)^count` for each supersession edge. - #[serde(default)] + #[serde(default = "default_supersedes_demotion")] pub supersedes_demotion: f32, /// Custom system prompt for the consolidator LLM fact extraction. /// Use `{max_facts}` placeholder for the max facts count. @@ -431,6 +431,10 @@ fn default_recency_weight() -> f32 { 0.05 } +fn default_supersedes_demotion() -> f32 { + 0.40 +} + fn default_max_disk_bytes() -> u64 { DEFAULT_MAX_DISK_BYTES }