Переглянути джерело

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

Deshraj Yadav 1 рік тому
батько
коміт
1d31b8f7e4
3 змінених файлів з 7 додано та 1 видалено
  1. 3 0
      embedchain/apps/app.py
  2. 3 0
      embedchain/pipeline.py
  3. 1 1
      pyproject.toml

+ 3 - 0
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)
 

+ 3 - 0
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)
 

+ 1 - 1
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 <taranjeet@embedchain.ai>",