Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

[Improvement] Make embedchain home dir configurable (#1341)

Deshraj Yadavba9f186fc53b
diff --git a/embedchain/constants.py b/embedchain/constants.py
index 758c75262..d3d7b28b3 100644
--- a/embedchain/constants.py
+++ b/embedchain/constants.py
@@ -2,7 +2,7 @@ import os
from pathlib import Path
ABS_PATH = os.getcwd()
-HOME_DIR = str(Path.home())
+HOME_DIR = os.environ.get("EMBEDCHAIN_CONFIG_DIR", str(Path.home()))
CONFIG_DIR = os.path.join(HOME_DIR, ".embedchain")
CONFIG_FILE = os.path.join(CONFIG_DIR, "config.json")
SQLITE_PATH = os.path.join(CONFIG_DIR, "embedchain.db")
diff --git a/pyproject.toml b/pyproject.toml
index 15a102fac..bc8d42966 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "embedchain"
-version = "0.1.100"
+version = "0.1.101"
description = "Simplest open source retrieval (RAG) framework"
authors = [
"Taranjeet Singh <[email protected]>",