summaryrefslogtreecommitdiff
path: root/cerebral/config.py
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@nullring.xyz>2026-03-26 19:46:02 -0700
committerPreston Pan <ret2pop@nullring.xyz>2026-03-26 19:46:02 -0700
commitdcbe7fed3ab74df8dfc8f1c9affc76e2506020f8 (patch)
tree8693621be9de583e9efb702da1b0c74c9d00de36 /cerebral/config.py
parentf49dfb56c699da817a7deac711bd16d38df80783 (diff)
good versionHEADmain
Diffstat (limited to 'cerebral/config.py')
-rw-r--r--cerebral/config.py23
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")