LearnNewsExamplesServices
Frontmatter
id7526
titleRefactor dbService to use chromaManager
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 17, 2025, 2:14 PM
updatedAtOct 17, 2025, 2:17 PM
githubUrlhttps://github.com/neomjs/neo/issues/7526
authortobiu
commentsCount0
parentIssue7520
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 17, 2025, 2:17 PM

Refactor dbService to use chromaManager

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 17, 2025, 2:14 PM

Currently, dbService.mjs creates its own ChromaDB client, which is redundant with the centralized chromaManager.mjs used by other services. This ticket is to refactor dbService to use the shared chromaManager for consistency and efficiency.

Acceptance Criteria

  1. dbService.mjs is updated to import chromaManager.
  2. The local getMemoryCollection helper function in dbService.mjs is removed.
  3. The exportDatabase and importDatabase functions are updated to use chromaManager.getMemoryCollection() and chromaManager.getSummaryCollection().
  4. The exportDatabase function is enhanced to support exporting both memories and summaries collections.
  5. The functionality of the import/export tools remains correct.
tobiu assigned to @tobiu on Oct 17, 2025, 2:14 PM
tobiu added the enhancement label on Oct 17, 2025, 2:14 PM
tobiu added the ai label on Oct 17, 2025, 2:14 PM
tobiu added parent issue #7520 on Oct 17, 2025, 2:14 PM
tobiu referenced in commit 31de4de - "Refactor dbService to use chromaManager #7526" on Oct 17, 2025, 2:17 PM
tobiu closed this issue on Oct 17, 2025, 2:17 PM