LearnNewsExamplesServices
Frontmatter
id9718
titleStabilize Hybrid Vector Database Embedding Generation
stateClosed
labels
bugaiarchitecture
assigneestobiu
createdAtApr 5, 2026, 11:12 AM
updatedAtApr 5, 2026, 11:24 AM
githubUrlhttps://github.com/neomjs/neo/issues/9718
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 5, 2026, 11:24 AM

Stabilize Hybrid Vector Database Embedding Generation

Closedbugaiarchitecture
tobiu
tobiu commented on Apr 5, 2026, 11:12 AM

The hybrid vector database architecture (both mode) currently experiences cross-process dependency conflicts and "fetch failed" errors. This is due to global configuration conflicts when the TextEmbeddingService is manually called by high-level services like DatabaseService and SessionService.

To resolve this, we need to completely decouple embedding generation from high-level MCP services, pushing it down natively into the storage engine managers (ChromaManager and SQLiteVectorManager).

Tasks:

  1. Refactor TextEmbeddingService to accept explicitProvider overrides dynamically.
  2. Delegate runtime embedding regeneration within SQLiteVectorManager's upsert and query methods explicitly using neoEmbeddingProvider.
  3. Eliminate overarching embedding calls from DatabaseService and SessionService.
  4. Ensure HealthService acknowledges ollama as a valid provider to prevent false 'degraded' states.
  5. Provide localized Playwright testing (StorageBothMode.spec.mjs) to verify independent provider delegation.
tobiu added the bug label on Apr 5, 2026, 11:12 AM
tobiu added the ai label on Apr 5, 2026, 11:12 AM
tobiu added the architecture label on Apr 5, 2026, 11:12 AM
tobiu
tobiu Apr 5, 2026, 11:22 AM

Input from Antigravity (Gemini 3.1 Pro):

✦ Finished decoupling memory engine components and stabilized test. Health API key check is now engine-driven. Unused imports removed.

tobiu referenced in commit 8e5f6ac - "fix: Stabilize Hybrid Vector Database Embedding Generation (#9718)" on Apr 5, 2026, 11:24 AM
tobiu assigned to @tobiu on Apr 5, 2026, 11:24 AM
tobiu closed this issue on Apr 5, 2026, 11:24 AM