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.

[Bugfix] Fix issue of "unable to open database file" (#945)

Deshraj Yadav1d31b8f7e41b
diff --git a/embedchain/apps/app.py b/embedchain/apps/app.py
index 38cfdd86d..03dd3027f 100644
--- a/embedchain/apps/app.py
+++ b/embedchain/apps/app.py
@@ -134,6 +134,9 @@ class App(EmbedChain):
:return: An instance of the App class.
:rtype: App
"""
+ # Setup user directory if it doesn't exist already
+ Client.setup_dir()
+
with open(yaml_path, "r") as file:
config_data = yaml.safe_load(file)
diff --git a/embedchain/pipeline.py b/embedchain/pipeline.py
index 0aacb323e..91faf83c4 100644
--- a/embedchain/pipeline.py
+++ b/embedchain/pipeline.py
@@ -357,6 +357,9 @@ class Pipeline(EmbedChain):
:return: An instance of the Pipeline class.
:rtype: Pipeline
"""
+ # Setup user directory if it doesn't exist already
+ Client.setup_dir()
+
with open(yaml_path, "r") as file:
config_data = yaml.safe_load(file)
diff --git a/pyproject.toml b/pyproject.toml
index 36e2cc055..81d62dab3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "embedchain"
-version = "0.1.8"
+version = "0.1.9"
description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"
authors = [
"Taranjeet Singh <[email protected]>",