LearnNewsExamplesServices
Frontmatter
id7839
titleEnhance AI SDK: Fix ChromaDB warnings and enable programmable backups
stateClosed
labels
enhancementai
assigneestobiu
createdAtNov 21, 2025, 11:16 AM
updatedAtNov 21, 2025, 11:18 AM
githubUrlhttps://github.com/neomjs/neo/issues/7839
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 21, 2025, 11:18 AM

Enhance AI SDK: Fix ChromaDB warnings and enable programmable backups

Closed v11.8.0 enhancementai
tobiu
tobiu commented on Nov 21, 2025, 11:16 AM

This issue consolidates several related changes aimed at improving the stability and usability of the AI infrastructure SDK.

1. Fix ChromaDB Embedding Function Warning The ChromaDB client emits a persistent warning ("No embedding function configuration found") because our dummyEmbeddingFunction was too simple and flagged as "legacy".

  • Change: Update dummyEmbeddingFunction in ai/mcp/server/*/config.mjs to fully implement the IEmbeddingFunction interface (adding name, getConfig, buildFromConfig) with clear intent-driven comments explaining why.

2. Enable Database Backup/Restore via SDK The Memory_DatabaseService was not exposed in the public SDK, preventing agents from programmatically triggering backups.

  • Change: Export Memory_DatabaseService in ai/services.mjs.
  • Change: Update Memory_DatabaseService to allow optional paths for export, defaulting to the config.
  • Change: Fix relative path issues in ai/mcp/server/memory-core/config.mjs by using __dirname to ensure backups work regardless of the execution context (npm run vs node).

3. Refactor Import Logic

  • Change: Update importDatabase in Memory_DatabaseService to cleanly handle collection clearing (replace mode) without using ternary operators, improving readability.

4. Cleanup Example Scripts

  • Change: Remove redundant LifecycleService.ready() calls in ai/examples/self-healing.mjs (since ChromaManager.ready() now handles it).
  • New Artifacts: Add ai/examples/db-backup.mjs and ai/examples/db-restore.mjs as working proofs of the new SDK capabilities.
tobiu added the enhancement label on Nov 21, 2025, 11:16 AM
tobiu added the ai label on Nov 21, 2025, 11:16 AM
tobiu referenced in commit 33f1fe8 - "chore: Enhance AI SDK (Issue #7839) on Nov 21, 2025, 11:17 AM
tobiu assigned to @tobiu on Nov 21, 2025, 11:17 AM
tobiu closed this issue on Nov 21, 2025, 11:18 AM
tobiu cross-referenced by #7838 on Nov 21, 2025, 11:19 AM