Self-hosted v0.0.8: search returns total:0 whenever containerTag is omitted (documented optional); /v3 ignores its singular containerTag and never matches direct memories

Author: toswariCreated Sep 27, 2026Updated Sep 27, 2026

Environment

  • Server version: 0.0.8 (.supermemory/bin/supermemory-server.version), bun runtime 1.3.4
  • Install: self-hosted single binary, macOS (Apple Silicon), PGLite+pgvector embedded store
  • Embeddings: OpenAI-compatible oMLX bge-m3-mlx-fp16, SUPERMEMORY_EMBEDDING_DIMENSIONS=1024 (also reproduced with the 768d local default — embedding config is not the trigger)
  • Store: ~110 memories across 3 spaces, written via POST /v4/memories
  • Binary unmodified; all repro against http://localhost:6767

Summary

Both search endpoints document the container tag as optional, but omitting it always yields total: 0. Add a tag and the same query returns the same memories with correct similarity scores — so embeddings, vectors and the recall query are all healthy. On top of that, /v3/search ignores its own documented singular containerTag, and it never matches memories written through POST /v4/memories, which makes the use /v3/search for multi-tag search advice in the /v4 error message a dead end.

Repro

bash
# store a memory (returns an id, status ok)
curl -X POST http://localhost:6767/v4/memories \
  -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
  -d '{"containerTag":"migrated_memory_v2","memories":[{"content":"zygomorphic recall probe 42"}]}'

Then search for that exact text, changing only the scoping field:

bash
# 1. no tag (documented as "Optional")                     -> total:0   BUG
curl -s -X POST http://localhost:6767/v4/search \
  -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
  -d '{"q":"zygomorphic recall probe"}'
# => {"results":[],"timing":111,"total":0}

# 2. one tag, singular                                     -> 1 result, similarity 0.847
# 3. one tag, array                                        -> 1 result, similarity 0.847
curl -s -X POST http://localhost:6767/v4/search \
  -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
  -d '{"q":"zygomorphic recall probe","containerTag":"migrated_memory_v2"}'

# 4. two tags                                              -> rejected
# => {"error":"v4 search is single-space: pass one containerTag, or use /v3/search for multi-tag search"}

Finding 1 — omitting the tag always returns total: 0

Reproduced on both endpoints, and it is not a threshold or mode issue. For a stored, verbatim-matching query on /v4/search:

body result
{"q": "..."} total: 0
{"q": "...", "threshold": 0} (least sensitive) total: 0
{"q": "...", "searchMode": "hybrid"} total: 0
{"q": "...", "containerTag": "<tag>"} total: 1, similarity 0.847

Same on /v3/search: no tag gives total: 0, an array tag gives results.

The OpenAPI spec marks both fields optional (/v4/search.containerTag: "Optional tag this search should be containerized by"; /v3/search.containerTag: "Optional single container tag. Use this or containerTags."), so the unscoped call is a documented, valid request that silently returns nothing.

Finding 2 — /v4/search rejects multiple tags despite documenting the array

/v4/search.containerTags is documented as "Search is scoped to memories under these tags" (plural), but passing more than one returns the single-space error above. The error redirects to /v3/search for multi-tag search.

Finding 3 — /v3/search silently ignores its singular containerTag

bash
# singular -> total:0
-d '{"q":"...","containerTag":"migrated_memory_v2"}'
# array    -> results
-d '{"q":"...","containerTags":["migrated_memory_v2"]}'

The spec explicitly says "Use this or containerTags", so the singular form is a documented alternative that is accepted and then dropped.

Finding 4 — /v3/search never matches memories created via POST /v4/memories

A query that /v4/search matches at similarity 0.807 returns nothing from /v3/search scoped to the same space. /v3 only returns chunks from documents that were chunked at ingestion ("seed doc for space creation" in our store); the "Direct memories (N)" documents that POST /v4/memories creates are never returned. Since Finding 2 pushes multi-tag callers to /v3/search, cross-space recall of direct memories is currently unreachable through the native API.

Finding 5 — chunkCount is always 0

POST /v3/documents/documents reports "chunkCount": 0 for every document, including the one whose chunks /v3/search returns successfully.

Observation — no relevance floor on /v3

/v3/search returns an unrelated document at score 0.39 for a query that has nothing to do with it (chunkThreshold defaults to 0), while /v4/search defaults threshold to 0.6. Worth aligning or documenting.

Expected / actual

  • Expected: an unscoped search (tags documented optional) returns stored memories across spaces; containerTag singular works on /v3 as documented; use /v3/search for multi-tag search actually finds direct memories.
  • Actual: unscoped search always returns total: 0; singular tag silently ignored on /v3; /v3 cannot see direct memories at all.

Workaround in use

A local rewriting proxy injects/normalises the scope before forwarding: it fans /v4/search out across every known space and merges by similarity, normalises /v3's singular tag to the array form, and merges /v3's chunk hits with memory-index hits rendered in v3 chunk shape. Error responses are forwarded byte-for-byte so validation failures stay identical to native. Native recall is usable through that proxy; direct calls to :6767 are not.

Ask

  1. Make the container tag genuinely optional — an unscoped search should cover all spaces (or the spec should mark it required and the API should 400).
  2. Honour containerTag on /v3/search, or drop it from the spec.
  3. Either let /v4/search accept multiple tags, or make the use /v3/search redirect in its error message actually work for direct memories.
  4. Return a real chunkCount.

Happy to run further repro against the minified binary if a logging flag exists for the PGLite recall query — SUPERMEMORY_VERBOSE=1 shows workflow/HTTP lines but never the final SQL, which is why the scoping predicate could not be pinned down from outside.

Source: supermemoryai/supermemory