Skip to main content

Overview

SuperMemory is a managed memory API that handles embedding, chunking, and indexing internally. Unlike traditional vector databases, you send raw text and SuperMemory takes care of vectorization and semantic search. This makes it a zero-configuration knowledge retrieval layer — no embedding provider setup required. Provider Class: SuperMemoryProvider
Config Class: SuperMemoryConfig

Install

Install the SuperMemory optional dependency group:

Key Differences from Traditional Vector DBs

  • No embedding provider needed. SuperMemory embeds text internally, so you do not pass an embedding_provider to KnowledgeBase.
  • No vector_size to configure. The config defaults to 0 because vectors are managed server-side.
  • No dense (raw-vector) search. Only full_text and hybrid search modes are supported.
  • Container tags instead of collections. The collection_name maps to a SuperMemory container_tag for organizing memories.

Examples

Basic Usage with KnowledgeBase

Using Environment Variable for API Key

Set SUPERMEMORY_API_KEY in your environment or .env file, then omit api_key from the config:

Custom Search Settings

Parameters

Base Parameters (from BaseVectorDBConfig)

SuperMemory-Specific Parameters

Search Modes

SuperMemory supports two search modes, configured via the search_mode parameter:
Dense (raw-vector) search is not supported because SuperMemory manages its own embeddings. Calling dense_search returns an empty list.