Memory

Memory-Type Storage Specialization

Use different storage technologies optimized per memory type — fast in-memory stores (Redis-class) for episodic, vector databases (Pinecone/Weaviate) for semantic, relational or workflow engines for procedural — instead of one general store for everything.

Problem

Single-store memory architectures sacrifice latency, cost, or correctness for at least two of the three memory types. Episodic needs sub-millisecond reads on recent items; semantic needs similarity search; procedural needs ACID workflow integrity. No single store is optimal for all three.

Solution

Episodic Memory → Redis or similar in-memory store with timestamps, user IDs, interaction summaries, identified intents. Semantic Memory → vector DB storing embeddings with metadata for similarity retrieval. Procedural Memory → relational DB or workflow engine storing workflow definitions, decision trees, process maps with versioning. Agent's memory layer routes reads / writes per type. Pair with three-layers-agent-memory, episodic-memory, semantic-memory, procedural-memory.

When to use

  • All three memory types are needed.
  • Operational capacity for multiple stores.
  • Per-type performance characteristics matter.

Open the full interactive page

Diagram, neighbourhood map, code examples, related patterns and full provenance.

Related