mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: move chromadb to its own service in dockerfile
This commit is contained in:
parent
79d81e4b3d
commit
71c953f00b
4 changed files with 33 additions and 1 deletions
|
|
@ -20,7 +20,12 @@ import chromadb
|
|||
|
||||
from config.config import get_learnhouse_config
|
||||
|
||||
client = chromadb.Client()
|
||||
LH_CONFIG = get_learnhouse_config()
|
||||
client = (
|
||||
chromadb.HttpClient(host=LH_CONFIG.ai_config.chromadb_config.db_host, port=8000)
|
||||
if LH_CONFIG.ai_config.chromadb_config.isSeparateDatabaseEnabled == True
|
||||
else chromadb.Client()
|
||||
)
|
||||
|
||||
|
||||
chat_history = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue