Skip to content

v0.1.2

Choose a tag to compare

@johncarpenter johncarpenter released this 08 Mar 20:38
· 1 commit to main since this release

Fix pluggable VectorStore for DB-backed stores

What's new

  • Added file_suffix property to VectorStore protocol — returns the file extension for file-based stores (e.g. ".faiss"), or None for DB-backed stores that manage their own persistence
  • ClassificationIndex now correctly handles DB-backed stores (pgvector, etc.):
    • Only saves/loads metadata (.meta.json) — skips vector file I/O
    • _index_files_exist() checks store.size instead of looking for .faiss files
    • Removes hardcoded isinstance(store, FaissVectorStore) check
  • Added 18 new tests covering the pluggable vector store interface

Breaking changes

  • Custom VectorStore implementations must now provide a file_suffix property