Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

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

Taranjeet Singh2889799f107e
diff --git a/embedchain/config/InitConfig.py b/embedchain/config/InitConfig.py
index d4ed6f097..acd57fd64 100644
--- a/embedchain/config/InitConfig.py
+++ b/embedchain/config/InitConfig.py
@@ -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