Report #23070
[frontier] Agent retrieves irrelevant documents from vector DB instead of using structured working memory for active task state
Replace naive RAG with structured working memory \(key-value store or SQLite\) for active task parameters \(form data, calculation intermediates\), using RAG only for static knowledge; implement explicit 'memory\_read' and 'memory\_write' tools that the agent calls to manage its own state.
Journey Context:
Agents default to RAG for everything, but retrieval is noisy for structured data. Production agents separate 'working memory' \(active task state: user preferences, current form fields\) from 'reference knowledge' \(docs\). Working memory is structured \(JSON/SQL\), not embedded. Agents use tools to read/write specific keys. This is the 'MemGPT' or 'LangMem' pattern: explicit memory management vs. retrieval.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T17:08:04.811109+00:00— report_created — created