CortexDB 0.16.0 — voice mode, an in-process embedder and the online re-embed
Never published; superseded by 0.16.1. 0.16.0 was tagged, but its release build failed and nothing was published. Everything on this page ships in 0.16.1, with the same server code. Read
RELEASE_NOTES_0.16.1.md; this page is kept for reference only.
0.16.0 makes CortexDB the memory of a live voice agent. It adds:
- Voice mode, a single setting at install;
- an embedding model that runs inside the server, so a recall never waits for an embedding provider;
- voice call sessions, which hold a caller's memories in RAM for the length of a call;
- an online re-embed, which moves an existing data directory to another embedding model while the server keeps serving.
It also makes the first recall after a restart and recalls during bulk imports faster for every deployment.
A deployment that does not turn voice mode on behaves as before.
Upgrading from 0.15.x is a drop-in replacement, and it is not one way.
- 0.16.0 keeps shard apply format 11 and adds no shard command and no column family, so a 0.15.x binary still opens a data directory 0.16.0 ran.
- The exception is a data directory moved to the in-process embedder (
CORTEX_EMBEDDING_PROVIDER=local). Only 0.16.0 and later know that provider, so an older release refuses the directory at its embedding check and changes nothing.
Upgrading from 0.14.x is 0.15.0's upgrade. The first start arms the data directory for format 11, and that is one way:
- Take a cold backup first.
- Rehearse on a restored copy.
- Read "Breaking changes" and "Upgrade (one-way)" in
RELEASE_NOTES_0.15.0.md.
0.16.0 is released on the customer channel only: download it from the customer portal, https://customer.cortexdb.ai, with your company's license. There is no public image to pull.
What's new or changed
Voice mode
-
Turn it on in one of three ways:
CORTEX_PROFILE=voice;cortexdb --profile voice;- the console's System › Voice mode page.
It takes effect at the next start. Anything you set yourself is kept, and the startup config lint prints every value the profile set (
profile:voice).docs/VOICE_MODE.mdcovers it all. -
What the profile sets:
- the in-process embedder with its default model (below);
- recall admission sized for many short concurrent recalls;
- the indexer at half the CPUs, so queries keep the rest;
- tenant vector shards that open at boot.
It does not change the vector quantization, the memory limits, the authorization preset, the answer model or enrichment.
-
cortexdb voice statusand the console page report the state:- the profile;
- the model;
- readiness;
- sessions;
- pinned scopes.
The console page also runs a latency check from the browser.
The in-process embedder
- A new embedding provider,
local, runs the model inside the server.- A query is embedded in about 0.04 ms with the default model.
- No recall leaves the machine to embed, and none waits for a provider.
- Two models ship in the image and in the release tarballs, on amd64 and arm64:
potion-multilingual-128Mis the default: static, int8, 256 dimensions, multilingual.granite-embedding-107m-multilingual(int8, ONNX Runtime) is the quality option, at about 1.1 ms a query. It is refused on x86 CPUs with neither VNNI nor AMX, where it would produce wrong vectors.
- A canary check at startup confirms that this build embeds the data directory's reference text as it did when the directory was written.
The voice read path
- A recall with
profile: "voice"takes the short path of a live voice turn (capabilityrecall_profile_voice_v1). It works on any deployment, voice mode or not, so a server that also serves chat can send its voice turns there.- It skips the question classifier, LLM query expansion, the reranker and the graph stages.
- It retrieves 16 candidates per channel. On LongMemEval-S retrieval, that lost nothing against the usual 40.
- It reads events only, unless
includeasks for facts, beliefs, episodes or understanding. - It waits at most 100 ms for an admission permit. After that it answers
429 RECALL_OVERLOADED, so the agent can answer without memory for that turn.
- Two new recall fields work on any recall:
alphaweighs vector search against keyword search, from 0.0 to 1.0.server_timing: truereturns aServer-Timingheader with the request's stages.
Voice call sessions (experimental)
/v1/sessionsopens a call (capabilityvoice_sessions_v1). It needs voice mode; otherwise it answers409 VOICE_SESSIONS_DISABLED.- At call start the caller's memories are loaded into a working set in RAM, and the response carries a brief for the agent's opening turn.
- Recalls during the call are served from that set.
- What the call writes joins the set before the next recall.
- Shared knowledge, such as a product FAQ, can be held in RAM for every call with
CORTEX_VOICE_PINNED_SCOPES. - Deletes always win. Every forget, erasure, redaction, retention sweep and scope move reaches a working set before it could serve a removed memory.
- Sessions have limits: a number per node, per tenant and per caller, and a memory budget.
- A call that starts past a limit still gets its brief, and its recalls take the usual read path.
- While the server's memory is high, a call start is admitted as a recall is, at half the usual concurrency.
/v1/sessions/{session}reads a call's state, and/v1/sessions/{session}/endends it.
The online re-embed
-
POST /v1/admin/reembedmoves a single-node data directory to another embedding model while the server keeps serving. One use is moving an existing store to the in-process embedder:{"to": {"provider": "local"}}names the default model on any server. -
By default the request is an estimate (
dry_run). It reports:- the rows to embed in each family;
- the time, disk, memory and cost (0 for a local model);
- anything that blocks a job, including every check the start makes on the target before it loads the model.
-
A job builds the new vectors beside the live index. Writes, forgets and erasures made during the job reach both.
-
When the job is
ready, restart with the target model configured. The job'srestart_withnames the settings. That restart:- swaps the index;
- checks the new one row by row and by sample searches;
- deletes the old index, unless the job kept it with
retain_old_index.
-
Restarting with the target configured before the job is ready changes nothing. The server refuses to start (exit 78,
REEMBED_NOT_READY) and names both ways out: restart on the current model, or cancel the job. -
A restart on the current model keeps the job: a building job resumes, and a ready job stays ready.
-
Starting, cancelling and cleaning up need the trusted operator and
admin.compact.GET /v1/admin/reembedshows the job./cancelstops it and deletes what it built./cleanupdeletes a kept old index.
-
The clients drive it too:
cortexdb reembedin the CLI;- the console's Move this store to voice mode;
- both SDKs.
While a ready job targets a model, the console lets you switch the setting to it, and the restart then swaps.
Faster for every deployment
- The first recall after a restart no longer pays about 1.4 seconds for building the scope map; the map is now built at boot.
- Recalls no longer stall while a bulk import is indexing. Before, a recall could wait about 125 ms for a keyword index commit. Now the commit a recall asks for covers only its own tenant and joins a commit already running.
- Tenant vector shards can open at boot with
CORTEX_VECTOR_TENANT_SHARDS_OPEN_AT_BOOT=1, so the first query to a shard does not pay for opening it.
Also changed
-
The console's Restart server now stops the server as SIGTERM does, then exits 75 for the supervisor:
- it drains the forgets and erasures in flight;
- it finishes a re-embed job's catch-up;
- it saves the snapshots and flushes the ledgers and the erasure residual.
Before, it saved the snapshots and exited.
Measured
These are our measurements, taken on one machine. Client latency is p50 / p95 / p99 in milliseconds, and a range covers two runs.
| p50 | p95 | p99 | |
|---|---|---|---|
| A recall during a call, from its working set | 1.43 | 1.68 | 1.81 |
| A 100,000-document FAQ held in RAM: keyword and vector search (the default) | 2.64–2.74 | 3.08–3.19 | 3.33–3.52 |
| The same, vector search only | 2.13–2.24 | 2.49–2.53 | 2.66–2.71 |
| The same at 500 recalls a second, keyword and vector | 4.04–4.43 | 5.17–5.38 | 5.76–5.77 |
| A call's start and brief | 28 | 37 | 39 |
-
The first recall after a restart took 4.5 ms (vector only) and 6.8 ms (keyword and vector).
-
The online re-embed moved a store of 467,123 events (1,021,568 chunk vectors, from a 1,536-dimension provider model) to the default local model:
- the job was ready in 342 s on its default 3 threads, with no provider calls;
- the restart that swapped was ready in 28 s, with every row present and every sample search finding its row.
While a re-embed job to the granite model ran on that store, the p99 of a recall during a call went from 2.62 to 2.99 ms.
The hardware:
- an AWS m7i.4xlarge (Intel Xeon Platinum 8488C, 16 vCPU), November 2026;
- the default local model;
- for the latency table, the server pinned to 6 cores and their hyperthreads;
- for the re-embed, the server on 12 vCPUs.
Known limitations
- The granite model is refused on x86 CPUs without VNNI or AMX. The default model runs everywhere.
- The online re-embed has these limits:
- It runs on a single node. A cluster data node answers
409 REEMBED_UNSUPPORTED_ON_CLUSTER; a cluster moves by export and import into a new cluster. - A configured segment store (
CORTEX_ICE_URL) blocks a job. - After a swap, going back takes another job or the backup taken before the swap.
- A server that stops without a graceful stop (a crash or a kill) while a job is ready swaps at its next start, then repairs the rows the copy missed in the background while it serves. Until the repair ends, a vector search may not find those rows.
- It runs on a single node. A cluster data node answers
- The voice profile does not set
TOKIO_WORKER_THREADS, because the runtime starts before the profile is read. Set it in the environment, and pin cores with the container's cpuset, to keep the runtime off the embedder's cores. - A voice recall during a bulk import shares the CPU with it. On our bench machine, the p99 of a recall served from the index went from 3.3 to 8.1 ms while an import ran. Recalls during a call, served from its working set, search their vectors in memory.
- A graceful shutdown can take 0.15 to 0.2 s longer than on 0.15.x.
- 0.15.0's known limitations hold (
RELEASE_NOTES_0.15.0.md, "Known limitations").
Clients
| Package | Version | Changed |
|---|---|---|
Python SDK (cortexdbai) | 0.15.0 | client.sessions for voice calls, the voice recall fields, the re-embed operator methods, error classes for the new codes |
TypeScript SDK (cortexdbai) | 0.13.0 | the same |
cortexdb-cli | 0.9.0 | cortexdb session, recall --profile voice, cortexdb voice status, cortexdb reembed |
cortexdb-mcp | 0.11.0 | call_brief and voice recall for voice agents (the server's own /mcp has them too) |
cortexdb-connectors | 0.3.0 | no |