LearnNewsExamplesConnect
Frontmatter
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
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 17, 2025, 2:17 PM

Refactor dbService to use chromaManager

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.