A collection is a named container that groups related memories together. You create collections, assign memories to them, and scope searches to them.
Why Use Collections?
- Separate contexts: Keep work, personal, and project memories distinct
- Targeted search: Search only within relevant collections
- Access control: Different API keys can have different collection permissions
- Multi-tenancy: Isolate data for different users or customers
Creating Collections
Collection names are case-insensitive. “Work” and “work” are treated as duplicates.
For hosted SaaS workspaces that need graph data stored in customer-owned object storage, create the collection with a workspace storage target. See Customer-Owned Object Storage.
Storing Memories in Collections
Always specify collection_id when storing memories:
Searching Within Collections
Search accepts collection names or UUIDs. When storing memories, collection_id must be a UUID.
Managing Collections
Deleting a collection removes its graph data and vector sources. The underlying memory records are disassociated from the collection, not deleted.
Patterns and Tips