Skip to main content
Supermemory provides two ways to organize your memories:

Container Tags

Organize memories into isolated spaces by user, project, or workspace

Metadata Filtering

Query memories by custom properties like category, status, or date
Both can be used independently or together for precise filtering.

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.
API field differences:

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 in AND or OR arrays:

Filter Types

Combining Filters

Use AND and OR for complex queries:

Excluding Results

Use negate: true to exclude matches:
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 !=
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/OR expressions
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

Use docId 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