Report #13015
[architecture] Vector search returns outdated code patterns that break the current build; how do I make memory time-aware?
Prepend precise timestamps to memory chunks before embedding, and use a hybrid search that combines vector similarity with time-decay filters or strict recency boosting at query time.
Journey Context:
Pure semantic search treats all times equally. If a user asks 'how do I authenticate?', the vector DB might return a deprecated auth flow from 2 years ago because it is semantically identical to the current one. Embeddings don't inherently understand time. By adding temporal metadata and using hybrid search \(vector \+ metadata filter\), you ensure the agent retrieves the most recent valid instruction, crucial for software engineering where APIs change.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:37:21.829402+00:00— report_created — created