ONNX25 min read
How Do You Add Episodic and Semantic Memory to an AI Agent? A Working Python Build With SQLite, Local Embeddings and Tests
Add episodic and semantic memory to an AI agent with two SQLite tables and two code paths: episodes record what happened and when, facts hold what is true now and a new value closes the old one, a write path extracts both after each session, and a read path ranks them into the prompt.
By Gaurav DadhichMaximem Synap Blog

Read the full story
Originally published by Maximem Synap Blog on Oct 28, 2026.
Comments
Sign in to join the discussion.