byterover-cli icon indicating copy to clipboard operation
byterover-cli copied to clipboard

[FEATURE] Implement ChromaDB Vector Store

Open RyanNg1403 opened this issue 1 year ago • 0 comments

Add ChromaDB as Vector Store Backend

Problem

Cipher currently only supports Qdrant and Milvus as external vector databases. Users who prefer ChromaDB or are already using it in their infrastructure have no integration option with Cipher's memory system.

Solution

Add ChromaDB as a supported vector store backend following the existing architecture patterns.

Implementation

User Experience

VECTOR_STORE_TYPE=chroma
VECTOR_STORE_URL=http://localhost:8000
VECTOR_STORE_COLLECTION=knowledge_memory
VECTOR_STORE_DIMENSION=1536

Technical Changes

  1. Add dependency: chromadb to package.json
  2. Create backend: src/core/vector_storage/backend/chroma.ts
  3. Update factory: Extend getVectorStoreConfigFromEnv() in factory.ts
  4. Update types: Add ChromaDB to vector store type system
  5. Update docs: Add setup instructions to /docs/vector-stores.md

Requirements

  • Implement VectorStore interface from backend/types.ts
  • Support local and cloud ChromaDB instances
  • Handle authentication and persistence options
  • Include proper error handling and connection management
  • Add comprehensive test coverage
  • Support workspace memory and multi-collection features

Acceptance Criteria

  • [ ] ChromaDB client dependency added
  • [ ] ChromaDB backend implementation
  • [ ] Environment variable configuration support
  • [ ] Factory method updates
  • [ ] Test coverage (unit + integration)
  • [ ] Documentation updates
  • [ ] Local and cloud instance support
  • [ ] Workspace memory collection support
  • [ ] Multi-collection support

Priority

  • Priority: Medium
  • Impact: Medium
  • Effort: Medium

References

RyanNg1403 avatar Aug 10 '25 08:08 RyanNg1403