Skip to main content
Supermemory doesn’t just store your content—it transforms it into optimized, searchable knowledge. Every upload goes through an intelligent pipeline that extracts, chunks, and indexes content in the ideal way for its type.

Automatic content intelligence

When you add content, Supermemory:
  1. Detects the content type — PDF, code, markdown, images, video, etc.
  2. Extracts content optimally — Uses type-specific extraction (OCR for images, transcription for audio)
  3. Chunks intelligently — Applies the right chunking strategy for the content type
  4. Generates embeddings — Creates vector representations for semantic search
  5. Builds relationships — Connects new knowledge to existing memories
No chunking strategies to configure. No embedding models to choose. It just works.

Ingesting as pure SuperRAG (taskType: "superrag")

By default, every supermemory.add() call runs on the memory path (taskType: "memory"): Supermemory chunks and embeds the content for retrieval, and runs it through the memory pipeline — extracting facts, updating the profile, and linking it into the knowledge graph. If you’re ingesting content that’s purely reference material — documentation, a large PDF, a knowledge base article — and you don’t need Supermemory to derive personal facts or update a profile from it, set taskType: "superrag" in the request body. It skips the memory pipeline entirely and only does the chunk → embed → index work needed to make the content searchable.
taskType: "superrag" is a 5x discount on ingested tokens — sm_superrag_text/sm_superrag_rich are priced at 20% of sm_tokens_text/sm_tokens_rich. See Billing → Memory vs SuperRAG tokens for the exact rates.
Content ingested as superrag is retrievable via chunk search (searchMode: "chunks"), but it will never surface as a memory, contribute to a user’s profile, or connect into the knowledge graph. Use it for reference material you want searchable, not for anything that should shape what Supermemory knows about a user — that still needs the default taskType: "memory".
When you’re searching over a mix of both, searchMode: "hybrid" (below) is what pulls memory-path facts and superrag-path document chunks into one result set. More ingestion guidance: Rules of supermemory → Ingest with SuperRag when you just need search.

Smart chunking by content type

Different content types need different chunking strategies. Supermemory applies the optimal approach automatically:

Documents (PDF, DOCX)

PDFs and documents are chunked by semantic sections — headers, paragraphs, and logical boundaries. This preserves context better than arbitrary character splits.

Code

When content is recognized as Markdown, fenced code blocks are kept whole when they fit in a chunk. Larger blocks are split and re-wrapped in the original fence, including its language tag. Overlap can contain part of a previous line, so chunks are not guaranteed to be independently valid code. Raw source files and content not recognized as Markdown use plain-text chunking. A lone fenced block may not be enough for automatic Markdown detection.

Web pages

URLs are fetched, cleaned of navigation/ads, and chunked by article structure — headings, paragraphs, lists.

Markdown

Chunked by heading hierarchy, preserving the document structure. See Content Types for the full list of supported formats.

Hybrid memory + RAG

Supermemory combines the best of both approaches in every search:

Traditional RAG

  • Finds similar document chunks
  • Great for knowledge retrieval
  • Stateless — same results for everyone

Memory system

  • Extracts and tracks user facts
  • Understands temporal context
  • Personalizes results per user
With searchMode: "hybrid" (the default), you get both:

Search optimization

Two flags give you fine-grained control over result quality:

Reranking

Re-scores results using a cross-encoder model for better relevance. rerank takes "none" (default), "order", or "aggregate":
When to use: Complex queries, technical documentation, when precision matters more than speed.

Query rewriting

Expands your query to capture more relevant results:
When to use: Short queries, user-facing search, when recall matters.

Why it’s “Super”

You focus on building your product. Supermemory handles the RAG complexity.

Next steps

Content types

All supported formats and how they’re processed

How it works

The full processing pipeline

Memory vs RAG

When to use each approach

Search

Search parameters and optimization

Billing

Exact meter rates for memory vs SuperRAG tokens

Adding memories

taskType and other ingestion parameters