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
dbService.mjs is updated to import chromaManager.
- The local
getMemoryCollection helper function in dbService.mjs is removed.
- The
exportDatabase and importDatabase functions are updated to use chromaManager.getMemoryCollection() and chromaManager.getSummaryCollection().
- The
exportDatabase function is enhanced to support exporting both memories and summaries collections.
- The functionality of the import/export tools remains correct.
Currently,
dbService.mjscreates its own ChromaDB client, which is redundant with the centralizedchromaManager.mjsused by other services. This ticket is to refactordbServiceto use the sharedchromaManagerfor consistency and efficiency.Acceptance Criteria
dbService.mjsis updated to importchromaManager.getMemoryCollectionhelper function indbService.mjsis removed.exportDatabaseandimportDatabasefunctions are updated to usechromaManager.getMemoryCollection()andchromaManager.getSummaryCollection().exportDatabasefunction is enhanced to support exporting bothmemoriesandsummariescollections.