From f0400e928a2f39a33f658ca517e31d6db7e55659 Mon Sep 17 00:00:00 2001 From: Deshraj Yadav Date: Thu, 22 Feb 2024 02:40:06 -0800 Subject: [PATCH] [Bug fix] Fix issue related to initalizing the local database engine (#1281) --- embedchain/app.py | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/embedchain/app.py b/embedchain/app.py index e6f65c46..f2355b3d 100644 --- a/embedchain/app.py +++ b/embedchain/app.py @@ -381,6 +381,10 @@ class App(EmbedChain): vector_db = VectorDBFactory.create(vector_db_provider, vector_db_config_data.get("config", {})) if llm_config_data: + # Initialize the metadata db for the app here since llmfactory needs it for initialization of + # the llm memory + setup_engine(database_uri=os.environ.get("EMBEDCHAIN_DB_URI")) + init_db() llm_provider = llm_config_data.get("provider", "openai") llm = LlmFactory.create(llm_provider, llm_config_data.get("config", {})) else: diff --git a/pyproject.toml b/pyproject.toml index 737fb8fe..da49da99 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "embedchain" -version = "0.1.83" +version = "0.1.84" description = "Simplest open source retrieval(RAG) framework" authors = [ "Taranjeet Singh ",