LearnNewsExamplesServices
Frontmatter
id9717
titleHybrid DB Refactoring & Vector Decoupling
stateClosed
labels
enhancementai
assigneestobiu
createdAtApr 5, 2026, 11:02 AM
updatedAtApr 5, 2026, 11:04 AM
githubUrlhttps://github.com/neomjs/neo/issues/9717
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 5, 2026, 11:04 AM

Hybrid DB Refactoring & Vector Decoupling

Closedenhancementai
tobiu
tobiu commented on Apr 5, 2026, 11:02 AM

This ticket consolidates infrastructural refactoring for the memory-core and knowledge-base MCP servers aimed at stabilizing process concurrency and decoupling LLM embedding providers from storage engines.

Resolutions:

  • Introduced a sequential #chromaLock Mutex Promise Queue inside ChromaManager.mjs to serialize ChromaDB setup, safely encapsulating console.warn suppression to halt global state race conditions.
  • Validated the Mutex natively inside an in-RAM Playwright unit test decoupled from local Ollama instances.
  • Refactored HealthService.mjs to dynamically probe specific instances defined by aiConfig.engine via StorageRouter, fixing structural blockages throwing false positives during local engine: chroma operations.
  • Overhauled TextEmbeddingService usage globally across MCP services, delegating raw array Vector generation fully down to the local Collection abstraction nodes so SQLiteVectorManager correctly outputs ollama 4096d arrays while ChromaManager flawlessly retains gemini 768d generation simultaneously with engine: both.
tobiu added the enhancement label on Apr 5, 2026, 11:02 AM
tobiu added the ai label on Apr 5, 2026, 11:02 AM
tobiu referenced in commit 4a90bd4 - "refactor: Sequence ChromaDB Mutex and decouple HealthService sqlite routing (#9717)" on Apr 5, 2026, 11:03 AM
tobiu assigned to @tobiu on Apr 5, 2026, 11:04 AM
tobiu closed this issue on Apr 5, 2026, 11:04 AM