Update chroma_impl.py

This commit is contained in:
Saifeddine ALOUI 2025-02-19 19:44:10 +01:00 committed by GitHub
parent 5d19a888b0
commit 2d085cda43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,13 +10,8 @@ import pipmaster as pm
if not pm.is_installed("chromadb"):
pm.install("chromadb")
try:
from chromadb import HttpClient, PersistentClient
from chromadb.config import Settings
except ImportError as e:
raise ImportError(
"`chromadb` library is not installed. Please install it via pip: `pip install chromadb`."
) from e
from chromadb import HttpClient, PersistentClient
from chromadb.config import Settings
@final