mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-07-10 09:48:43 +00:00
Implements three compaction policies (LRU, LFU, CoherenceWeighted) for agent memory lifecycle management. CoherenceWeighted scores entries by α·recency + β·frequency + γ·cos_sim(context_window), retaining memories semantically aligned with the agent's active reasoning context. Measured recall@10 after 50% compaction (N=2000, D=64, seed=42): LRU 71.0% LFU 86.6% CoherenceWeighted 100.0% (+29.0 pp over LRU) 12 unit tests + 1 acceptance test pass. https://claude.ai/code/session_01FphtGmUWK9FvHsjBErYbqx |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||