Skip to content
Mermaid templates

Agent Memory Architecture

Short-term context + episodic + semantic + procedural memory.

Template previewMermaid
Rendering…

Make it your own.

flowchart LR
Q[User turn] --> Ctx["Short-term context<br/>(current conversation)"]
Ctx --> LLM[LLM]
Epi[(Episodic memory\nrecent sessions)] --> Ret[Retriever]
Sem[(Semantic memory\nknowledge embeddings)] --> Ret
Proc[(Procedural memory\nlearned skills / tools)] --> LLM
Ret --> LLM
LLM --> Out[Response]
Out --> Save["Write back<br/>(summary + key facts)"]
Save --> Epi
Save --> Sem