Provide a developer mode when running ktem (#135)

Implement and utilize `on_app_created` to support the developer mode.
This commit is contained in:
Duc Nguyen (john)
2024-01-23 11:46:59 +07:00
committed by GitHub
parent 2dd531114f
commit ebc61400d8
4 changed files with 109 additions and 80 deletions

View File

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