Container Tags
Organize memories into isolated spaces by user, project, or workspace
Metadata Filtering
Query memories by custom properties like category, status, or date
Container Tags
Container tags create isolated memory spaces. Use them to separate memories by user, project, or any logical boundary.Adding Memories with Tags
Searching with Tags
Container tags use exact array matching. A memory tagged
["user_123", "project_a"] won’t match a search for just ["user_123"].Recommended Patterns
| Pattern | Example | Use Case |
|---|---|---|
| User isolation | user_{userId} | Per-user memories |
| Project grouping | project_{projectId} | Project-specific content |
| Hierarchical | org_{orgId}_team_{teamId} | Multi-level organization |
More Container Tag Examples
More Container Tag Examples
| Endpoint | Field | Type |
|---|---|---|
/v3/search | containerTags | Array |
/v4/search | containerTag | String |
/v3/documents/list | containerTags | Array |
Metadata
Metadata lets you attach custom properties to memories and filter by them later.Adding Memories with Metadata
Searching with Metadata Filters
Filters must be wrapped inAND or OR arrays:
Filter Types
| Type | Example | Description |
|---|---|---|
| String equality | { key: "status", value: "published" } | Exact match |
| String contains | { filterType: "string_contains", key: "title", value: "react" } | Substring match |
| Numeric | { filterType: "numeric", key: "priority", value: "5", numericOperator: ">=" } | Number comparison |
| Array contains | { filterType: "array_contains", key: "tags", value: "important" } | Check array membership |
Combining Filters
UseAND and OR for complex queries:
Excluding Results
Usenegate: true to exclude matches:
More Metadata Filter Examples
More Metadata Filter Examples
String contains (substring search):Numeric comparisons:Array contains (check array membership):Complex nested filters:Numeric operator negation mapping:
When using
negate: true, operators flip:<becomes>=<=becomes>>becomes<=>=becomes<=becomes!=
Real-World Patterns
Real-World Patterns
User’s work documents from 2024:Team meeting notes with specific participants:Exclude drafts and deprecated content:
Quick Reference
When Adding Memories
When Searching
Metadata Key Rules
- Allowed characters:
a-z,A-Z,0-9,_,-,. - Max length: 64 characters
- No spaces or special characters