Update chroma_impl.py
Browse files
lightrag/kg/chroma_impl.py
CHANGED
@@ -10,13 +10,8 @@ import pipmaster as pm
|
|
10 |
if not pm.is_installed("chromadb"):
|
11 |
pm.install("chromadb")
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
from chromadb.config import Settings
|
16 |
-
except ImportError as e:
|
17 |
-
raise ImportError(
|
18 |
-
"`chromadb` library is not installed. Please install it via pip: `pip install chromadb`."
|
19 |
-
) from e
|
20 |
|
21 |
|
22 |
@final
|
|
|
10 |
if not pm.is_installed("chromadb"):
|
11 |
pm.install("chromadb")
|
12 |
|
13 |
+
from chromadb import HttpClient, PersistentClient
|
14 |
+
from chromadb.config import Settings
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
|
17 |
@final
|