Skip to content

Commit 5c13bea

Browse files
committed
feat(db): Check ChromaDB version on startup
1 parent 1684d14 commit 5c13bea

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/vectorcode/database/chroma0.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
from urllib.parse import urlparse
1414

1515
import chromadb
16+
17+
if not chromadb.__version__.startswith("0.6.3"): # pragma: nocover
18+
logging.error(
19+
f"""
20+
Found ChromaDB {chromadb.__version__}, which is incompatible wiht your VectorCode installation. Please install vectorcode[chroma0].
21+
22+
For example:
23+
uv tool install vectorcode[chroma0]
24+
"""
25+
)
26+
sys.exit(1)
27+
1628
import httpx
1729
from chromadb.api import AsyncClientAPI
1830
from chromadb.api.models.AsyncCollection import AsyncCollection

0 commit comments

Comments
 (0)