Report #45824
[architecture] Storing raw conversation history instead of extracted semantic facts
Use an LLM extraction step to distill raw conversational turns \(episodic memory\) into discrete, subject-predicate-object triples or atomic facts \(semantic memory\) before persisting to the vector store.
Journey Context:
Storing raw chat logs or full tool outputs as memory chunks leads to massive redundancy and poor retrieval precision. When the agent searches for 'user's preferred database', it retrieves a 500-word transcript containing the preference, burying the actual fact. Extracting semantic facts costs an extra LLM call per turn but drastically reduces vector store bloat and improves exact-match retrieval, making the memory act like a knowledge graph rather than a log file.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:23:32.564363+00:00— report_created — created