Report #95231
[architecture] Should an agent store raw conversation logs or extracted facts in long-term memory?
Store extracted, atomic semantic triples or facts, not raw conversational text. Run an extraction step \(e.g., LLM call\) to distill interactions into structured knowledge before persisting.
Journey Context:
Storing raw logs is cheap and easy to implement \(just dump the transcript\). However, raw logs are full of filler, pronouns lacking antecedents, and procedural noise. When retrieved later, the agent wastes context window tokens on irrelevant dialogue and struggles to answer factual questions. Storing distilled facts costs more upfront \(LLM extraction calls\) and risks losing nuance, but makes retrieval highly precise and context-efficient. The tradeoff favors extraction because long-term memory is read-heavy; you pay the extraction cost once but save tokens and improve answer quality on every subsequent retrieval.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:25:27.249956+00:00— report_created — created