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

Vector Store Implementations

Open RyanNg1403 opened this issue 1 year ago • 4 comments

Add support for 6 additional vector storage backends following the existing architecture pattern at src/core/vector_storage/backend/.

Vector Store Details

1. ChromaDB: HTTP/persistent modes, metadata filtering (npm install chromadb) 2. FAISS: Local high-performance search, multiple index types (npm install faiss-node) 3. Pinecone: Cloud database, namespaces, rate limiting (npm install @pinecone-database/pinecone) 4. Weaviate: GraphQL-based, schema management (npm install weaviate-ts-client) 5. PgVector: PostgreSQL extension, ACID transactions (npm install pg @types/pg) 6. Redis: In-memory, RedisSearch module (npm install redis @redis/search)

Success Criteria

  • All implementations follow existing architectural patterns
  • Comprehensive test coverage (100%)
  • Proper error handling and logging
  • Configuration documentation updated

RyanNg1403 avatar Aug 08 '25 18:08 RyanNg1403

one thing to watch out for when adding multiple backends like this is that FAISS and some others have silent failure modes if the index is created but never properly loaded or activated before queries.
this can pass tests in a clean environment but break in deployment when ingestion or config ordering changes.
worth having a minimal verification step per backend to confirm data is actually queryable before marking the test as passed.

onestardao avatar Aug 09 '25 00:08 onestardao

@onestardao really helpful insight! I'll be looking at that.

RyanNg1403 avatar Aug 09 '25 01:08 RyanNg1403

This falls under what we classify as No.14 – vector store backend mismatch / hidden operational modes in our AI failure Problem Map. We’ve documented and fixed these FAISS + multi-backend inconsistencies so the retrieval layer behaves identically across modes. Full details here: WFGY Problem Map — MIT licensed, free to integrate.

onestardao avatar Aug 09 '25 02:08 onestardao

I implemented the pgvector store: https://github.com/campfirein/cipher/pull/198

romanbsd avatar Aug 11 '25 07:08 romanbsd