Modes A / B / C
Two things in Mnemosyne are called a mode. Provider modes A, B and C say which model providers the server has. The workspace mode, learning or production, says whether a workspace has enough data yet. They are independent.
Provider modes
packages/core/src/modes/detect.ts derives the letter from two facts: whether
an LLM is configured and whether an embedding provider is configured.
| Mode | Providers | What you get |
|---|---|---|
| A | None, or an LLM without embeddings | Writes and full-text recall |
| B | Embeddings only | Adds vector recall, with full-text as the fallback |
| C | Embeddings and an LLM | Adds LLM extraction on session collapse and LLM reranking |
Redis and telemetry are separate options. They do not change the letter.
The letters are a classification in the core library. The server does not
report one: GET /health/ready lists each check on its own (postgres,
vector, cache, embed).
Configuring providers
The server reads its providers from the environment:
MNEMO_LLM_PROVIDER=anthropic
MNEMO_LLM_API_KEY=...
MNEMO_EMBED_PROVIDER=openai
MNEMO_EMBED_API_KEY=...
MNEMO_EMBED_MODEL=text-embedding-3-smallThere are eight providers: OpenAI, Anthropic, Google, Cohere, Mistral, Voyage,
AWS Bedrock and Ollama (openai, anthropic, google, cohere, mistral,
voyage, bedrock, ollama). When MNEMO_EMBED_PROVIDER is unset, embeddings
come from the LLM provider (packages/server/src/boot/embed-provider.ts). The
Docker stack in the repository sets both to the bundled Ollama, so it runs in
mode C with no cloud key.
What happens without a provider
- No embedding, or the provider does not answer. Recall with the default
mode: "auto"falls back to full-text search.mode: "semantic"does not fall back: it fails withsemantic_search_unavailable. A memory written while the embedding provider is down is stored and is full-text searchable at once; its embedding is queued and the response carriesembeddingDeferred: true. - No LLM.
POST /session/{id}/collapseextracts nothing and reportsstatus: "failed"withskipReason: "llm_unavailable"; the session is kept so the collapse can be retried. A recall withrerank: truereturns the hits in their original order.POST /procedural/optimizeanswers 503. - No Redis. Without
MNEMO_REDIS_URLthe hot tier and rate limiting are off. Recall goes straight to the pointer and cold tiers. See Three-tier retrieval.
Workspace mode
Every workspace starts in learning and graduates to production. The record
lives in mnemo_workspace_mode:
curl http://localhost:3939/workspace-mode \
-H "Authorization: Bearer mns_live_..."{
"mode": "learning",
"sessionCount": 3,
"promoteAt": null,
"startedAt": "2026-11-10T09:00:00.000Z",
"factCount": 21,
"entityCount": 2
}A daily job (mnemo.workspace.graduate, 04:00 UTC) promotes the workspace when
any of these holds (shouldGraduate in
packages/core/src/cognitive/learningMode.ts):
| Criterion | Threshold |
|---|---|
| Facts | 50 or more |
| Sessions | 10 or more, or your own promoteAt value |
| Live entities | 5 or more |
| Age | 14 days since the workspace entered learning mode |
entityCount is not a stored counter. It counts the entities that are live
right now, that is, rows of mnemo_entity with valid_to IS NULL
(getWorkspaceMode in
packages/adapter-postgres/src/repositories/WorkspaceRepository.ts). Forgetting
an entity lowers it.
While a workspace is in learning mode, a session collapse does not update worth and does not promote the new facts to the hot tier. On graduation the server queues a rebuild of the hot tier.
To change the mode or the session threshold by hand, with a key that has the
memory:admin scope:
curl -X PUT http://localhost:3939/workspace-mode \
-H "Authorization: Bearer mns_live_..." \
-H "Content-Type: application/json" \
-d '{"mode": "production"}'The server plus Postgres with pgvector is the floor. Redis, an embedding provider and an LLM each add capability and none of them is required to write and read memories.