Report #6652
[architecture] Vector embeddings of memories lack temporal awareness, making the agent unable to distinguish between events that happened 5 minutes ago vs. 5 months ago
Do not rely solely on the text embedding for retrieval. Inject a recency score \(e.g., time since creation\) into the retrieval scoring function, combining semantic similarity \* recency \* importance.
Journey Context:
Pure vector similarity is a-temporal. If a user says 'I'm hungry', the embedding is nearly identical whether they said it today or a year ago. Relying purely on cosine similarity retrieves the year-old memory. Appending timestamps to the text barely helps because LLM embeddings do not natively parse dates for chronological ordering. The architectural fix is to move retrieval scoring out of the vector DB's pure similarity search and into a custom ranking function that multiplies similarity by a recency function \(like exponential decay\) and an importance score.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T00:39:42.362387+00:00— report_created — created