fix: Dont initialize chroma and embedding function in init config. (#289)

This commit is contained in:
Taranjeet Singh
2023-07-16 18:43:52 -07:00
committed by GitHub
parent e24063caff
commit 2889799f10

View File

@@ -22,15 +22,8 @@ class InitConfig(BaseConfig):
:param port: Optional. Port for the database server.
"""
self._setup_logging(log_level)
if db is None:
from embedchain.vectordb.chroma_db import ChromaDB
self.db = ChromaDB(ef=ef)
else:
self.db = db
self.ef = ef
self.db = db
self.host = host
self.port = port
self.id = id