Report #54492
[architecture] Vector search returns outdated code patterns or deprecated APIs
Augment embeddings with metadata \(timestamps\) and use hybrid search \(vector \+ metadata filtering\) to ensure recent memories are prioritized over stale ones.
Journey Context:
Pure vector similarity ignores time. A query for 'how to authenticate' might return a 2-year-old deprecated method if the text is semantically similar. Adding time-decay to the similarity score or strict date filters solves this. Tradeoff: strict filtering might hide the only available answer if it's old but still valid; soft decay is usually safer for code. Hybrid search gives you the best of both worlds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:57:43.387645+00:00— report_created — created