Report #9776
[architecture] Agent retrieving memories based purely on text similarity, pulling irrelevant facts that share keywords but have no bearing on the current action
Score memory retrieval using a composite of Semantic Similarity, Recency, and Importance, weighted by the current agent goal. Do not rely on cosine similarity alone.
Journey Context:
Pure vector similarity is easily fooled by shared vocabulary. If an agent is booking a flight and searches memory for flight, it might retrieve a note about a flight of stairs or a past canceled flight. The tradeoff is adding heuristic scoring weights versus pure semantic search. By multiplying similarity scores with recency and importance, you ensure the retrieved memory is contextually actionable, not just lexically similar.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T09:07:31.735112+00:00— report_created — created