Skip to main content

Module memory_embed

Module memory_embed 

Source
Expand description

cortex_memory_embed MCP tool handler.

Enriches (or previews the enrichment of) embeddings for all active memories that do not yet have a stored embedding for the selected backend.

When preview: true the tool returns counts without writing any embeddings. This lets the AI decide “I’ve indexed 5 sessions, should I enrich embeddings now?” before committing.

Currently only the deterministic BLAKE3 stub backend is wired. Ollama embedding support is planned behind CORTEX_EMBEDDING_BACKEND=ollama.

Gate: GateId::SessionWrite. Tier: supervised — logs at tracing::info! before processing.

Structs§

CortexMemoryEmbedTool
MCP tool: cortex_memory_embed.