diff options
Diffstat (limited to 'cerebral/config.py')
| -rw-r--r-- | cerebral/config.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cerebral/config.py b/cerebral/config.py new file mode 100644 index 0000000..7acb1d7 --- /dev/null +++ b/cerebral/config.py @@ -0,0 +1,23 @@ +import os +from dotenv import load_dotenv + +load_dotenv() + +LOCAL_LLM = "qwen3-vl:8b" +LOCAL_EMBED_MODEL = "nomic-embed-text-v2-moe:latest" +PKM_DIR = os.path.expanduser("~/monorepo") + +XDG_CONFIG_HOME = os.environ.get("XDG_CONFIG_HOME", os.path.expanduser("~/.config")) +APP_CONFIG_DIR = os.path.join(XDG_CONFIG_HOME, "cerebral") +APP_CACHE_DIR = os.path.expanduser("~/.cache/cerebral") +ORG_OUTPUT_DIR = os.path.expanduser("~/org/cerebral") +AGENDA_FILE = os.path.expanduser("~/org/agenda.org") + +os.makedirs(APP_CONFIG_DIR, exist_ok=True) +os.makedirs(APP_CACHE_DIR, exist_ok=True) +os.makedirs(ORG_OUTPUT_DIR, exist_ok=True) + +MEMORY_FILE = os.path.join(APP_CACHE_DIR, "memory_summary.txt") +MEMORY_INDEX_PATH = os.path.join(APP_CACHE_DIR, "memory_index") +FAISS_INDEX_PATH = os.path.join(APP_CONFIG_DIR, "pkm_index") +HASH_TRACKER_FILE = os.path.join(APP_CONFIG_DIR, "latest_commit.txt") |
