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
Each search is scoped to a single container tag. Passing
containerTag: "user_123" restricts results to memories stored in that container.Recommended Patterns
More Container Tag Examples
More Container Tag Examples
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
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
Query Complexity Limits
- Maximum 200 conditions per query
- Maximum 8 levels of nested
AND/ORexpressions
If you need more conditions than these limits allow, break your query into multiple requests or use broader search terms with post-processing.
Searching Within a Document
UsedocId to scope a search to chunks within one large document — useful for books, podcasts, or other long-form content:
Next Steps
Search
Apply filters in search queries
Add Memories
Add content with container tags and metadata