- Save durable context.
- Search for relevant context before generating an answer.
- Use scopes to isolate users or tenants.
- Send feedback when results are helpful or wrong.
Save Memories
UsePOST /api/memories, the TypeScript SDK, or MCP save_memory.
For large notes, use the returned
jobId to track extraction.
Search Memories
Search before your app generates a response or makes a decision.Use Scopes For Isolation
Usescope as the hard boundary for your own users, tenants, accounts, or
organizations.
scope, MemContext searches only the unscoped memory lane.
Use project for grouping inside a scope:
Handle Changing Information
You can save updated information without manually deleting old memories. Example:- Save:
User prefers long-form LinkedIn posts. - Later save:
User now prefers short hook-first LinkedIn posts.
Use Categories
Categories help you filter and reason about memory:Use Expiry For Temporary Facts
SetvalidUntil when a memory should stop being used after a specific time.
Recommended App Flow
- Search MemContext with the current user or workspace context.
- Add the returned memories to your AI prompt.
- Generate the answer in your own app.
- Save any durable new preference, fact, or decision.
- Send feedback when retrieved memories were useful or wrong.
