[Bug fix] Fix issue related to initalizing the local database engine (#1281)
This commit is contained in:
@@ -381,6 +381,10 @@ class App(EmbedChain):
|
|||||||
vector_db = VectorDBFactory.create(vector_db_provider, vector_db_config_data.get("config", {}))
|
vector_db = VectorDBFactory.create(vector_db_provider, vector_db_config_data.get("config", {}))
|
||||||
|
|
||||||
if llm_config_data:
|
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_provider = llm_config_data.get("provider", "openai")
|
||||||
llm = LlmFactory.create(llm_provider, llm_config_data.get("config", {}))
|
llm = LlmFactory.create(llm_provider, llm_config_data.get("config", {}))
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "embedchain"
|
name = "embedchain"
|
||||||
version = "0.1.83"
|
version = "0.1.84"
|
||||||
description = "Simplest open source retrieval(RAG) framework"
|
description = "Simplest open source retrieval(RAG) framework"
|
||||||
authors = [
|
authors = [
|
||||||
"Taranjeet Singh <taranjeet@embedchain.ai>",
|
"Taranjeet Singh <taranjeet@embedchain.ai>",
|
||||||
|
|||||||
Reference in New Issue
Block a user