Long-term memory with stores
Notebook· 03.04· 150–180 min· Lesson 30 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Use the store API:
put,get,search,delete,list_namespaces, and theItemit returns. - Design namespaces so users can't see each other's memories, and know the prefix-search trap.
- Read and write user facts from tools with
runtime.store, with the user id fromruntime.context. - Search memories by meaning with an embedding
index(offline hashing embeddings, then a real local model). - Persist the store in SQLite (with vector search and TTLs).
Before you start
Lessons 03.01–03.03; Lesson 02.04 (ToolRuntime, context_schema).
Python in this lesson
Python guideNew hereEllipsis (...)
