Report #73407
[architecture] Should I store agent memories as raw text chunks or structured data?
Store memories as structured triples \(Subject-Predicate-Object\) or JSON objects alongside the vector embedding, allowing for exact graph queries alongside semantic search.
Journey Context:
Pure vector search struggles with negation \('I do NOT like X'\) and precise relational queries \('Who is the manager of X?'\). Storing raw text loses structure. By extracting and storing memories as structured knowledge graphs or JSON \(e.g., using an LLM to extract entities/relations before embedding\), you enable hybrid retrieval: semantic for fuzzy matching, graph/SQL for precise relational lookups.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T05:48:26.744060+00:00— report_created — created