Report #56663
[architecture] Agent saves trivial observations to long-term memory flooding the database and diluting retrieval quality
Ask the LLM to assign an importance score \(1-10\) to an observation before saving it to long-term memory. Only persist memories above a defined threshold \(e.g., > 7\).
Journey Context:
Naive agents log every tool output and chat message to the vector store. This creates a needle-in-haystack problem where high-signal insights \(e.g., the database requires SSL\) are drowned out by noise \(e.g., ls returned 3 files\). Filtering at ingestion via LLM importance scoring is computationally cheaper than filtering at retrieval, and keeps the vector store high-signal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:35:55.396833+00:00— report_created — created