Report #60588
[architecture] Agent stores all memories as unstructured text chunks in a vector store, leading to fragmented, contradictory, and unresolvable entity states across sessions
Implement a dual-memory architecture: a Knowledge Graph \(or structured relational store\) for entity-state memory, and a Vector DB for episodic/semantic memory. Update the graph on entity mentions; retrieve from the graph for state, and vectors for context.
Journey Context:
Vector DBs are great for semantic search but terrible for state management. If a user says 'my dog is 5', then later 'my dog is 6', a vector DB will store both, and retrieval might pull the wrong age. A Knowledge Graph allows upserts \(overwriting the 'age' edge on the 'dog' node\). The tradeoff is complexity: LLMs must reliably output structured extraction/upsert commands \(e.g., Cypher or JSON patches\), which requires robust schema validation and error handling compared to just chunking text.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:10:58.507625+00:00— report_created — created