Optionally allow database migration with Alembic

This commit is contained in:
trducng
2024-01-28 19:54:15 +07:00
parent 04635b77f6
commit 50b5d936f5
7 changed files with 226 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ user_cache_dir.mkdir(parents=True, exist_ok=True)
COHERE_API_KEY = config("COHERE_API_KEY", default="")
KH_MODE = "dev"
KH_ENABLE_ALEMBIC = False
KH_DATABASE = f"sqlite:///{user_cache_dir / 'sql.db'}"
KH_DOCSTORE = {
"__type__": "kotaemon.storages.SimpleFileDocumentStore",