Report #17862
[architecture] Agent memory grows unbounded and retrieval quality degrades over time
Implement a time-decay weighting factor in the vector database retrieval score \(e.g., exponential decay based on access count and timestamp\) and periodically consolidate or evict memories that fall below a threshold.
Journey Context:
Standard vector DBs treat all embeddings equally regardless of age. As memory grows, 'popular' but obsolete facts dominate search results. Simple LRU is too aggressive; pure semantic search misses temporal relevance. Combining semantic similarity with a recency/access decay function balances long-term relevance with recent context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:41:44.958318+00:00— report_created — created