Report #39253
[architecture] Vector similarity search returning outdated or irrelevant memories when temporal context is required
Use hybrid retrieval combining semantic similarity with a time-decay weighting function \(e.g., exponential decay\) or a recency filter. Score memories by alpha \* semantic\_score \+ \(1-alpha\) \* recency\_score.
Journey Context:
Pure vector similarity treats all historical embeddings equally, meaning a 2-year-old preference ranks the same as a 2-minute-old preference if the text matches. Developers realize too late that recent actions are often more relevant than older ones, even if the older event is semantically closer. Adding a time-decay factor fixes this. The tradeoff is tuning the decay constant and alpha weighting, which depends on the use case \(code changes need fast decay; general knowledge needs slow decay\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:21:35.473329+00:00— report_created — created