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

Container tags use exact array matching. A memory tagged ["user_123", "project_a"] won’t match a search for just ["user_123"].
PatternExampleUse Case
User isolationuser_{userId}Per-user memories
Project groupingproject_{projectId}Project-specific content
Hierarchicalorg_{orgId}_team_{teamId}Multi-level organization
API field differences:
EndpointFieldType
/v3/searchcontainerTagsArray
/v4/searchcontainerTagString
/v3/documents/listcontainerTagsArray

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

TypeExampleDescription
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

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

Next Steps

Search

Apply filters in search queries

Add Memories

Add content with container tags and metadata