fix: Don't create instance in InitConfig __init__ (#236)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import logging
|
||||
|
||||
import chromadb
|
||||
from chromadb.utils import embedding_functions
|
||||
@@ -20,6 +21,7 @@ class ChromaDB(BaseVectorDB):
|
||||
)
|
||||
|
||||
if host and port:
|
||||
logging.info(f"Connecting to ChromaDB server: {host}:{port}")
|
||||
self.client_settings = chromadb.config.Settings(
|
||||
chroma_api_impl="rest",
|
||||
chroma_server_host=host,
|
||||
|
||||
Reference in New Issue
Block a user