浏览代码

fix: update chroma init for host & port (#529)

Taranjeet Singh 1 年之前
父节点
当前提交
ea18b80f90
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      embedchain/vectordb/chroma_db.py

+ 1 - 2
embedchain/vectordb/chroma_db.py

@@ -28,8 +28,7 @@ class ChromaDB(BaseVectorDB):
 
         if host and port:
             logging.info(f"Connecting to ChromaDB server: {host}:{port}")
-            self.settings = Settings(chroma_server_host=host, chroma_server_http_port=port)
-            self.client = chromadb.HttpClient(self.settings)
+            self.client = chromadb.HttpClient(host=host, port=8000)
         else:
             if db_dir is None:
                 db_dir = "db"