mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
`embeddings init` writes { model, dimension } to .claude-flow/embeddings.json,
but memory init, the AgentDB bridge and the router task embedder all
hardcoded Xenova/all-MiniLM-L6-v2 / 384.
Add src/memory/embedding-config.ts: resolveEmbeddingConfig(root) reads that
file (same schema commands/embeddings.ts writes; bare model names get the
Xenova/ namespace), falls back to MiniLM/384, and warns once on malformed
JSON. resolveEffectiveEmbeddingConfig() additionally checks memory.db and
agentdb-memory.db: if either already holds real vectors of another
dimension, that recorded dimension is kept with one warning; nothing is
mixed or rebuilt. Resolutions are cached per root.
Used by loadLocalEmbeddingChain, fresh vector_indexes seeds, the bridge's
registry init / embedding labels / dimension stub check, and task-embedder.
Co-Authored-By: RuFlo <ruv@ruv.net>