fix: Don't create instance in InitConfig __init__ (#236)

This commit is contained in:
cachho
2023-07-12 00:16:30 +02:00
committed by GitHub
parent 37ac7f006d
commit 6fbf45498a
2 changed files with 6 additions and 21 deletions

View File

@@ -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,