The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
[BugFix] Skip checking thread when making sqlite connection (#978)
Deshraj Yadav141a23fb1e82
diff --git a/embedchain/apps/app.py b/embedchain/apps/app.pyindex b61acbe75..15ba4e1dc 100644--- a/embedchain/apps/app.py+++ b/embedchain/apps/app.py@@ -2,7 +2,8 @@ from typing import Optionalimport yaml-from embedchain.config import AppConfig, BaseEmbedderConfig, BaseLlmConfig, ChunkerConfig+from embedchain.config import (AppConfig, BaseEmbedderConfig, BaseLlmConfig,+ ChunkerConfig)from embedchain.config.vectordb.base import BaseVectorDbConfigfrom embedchain.embedchain import EmbedChainfrom embedchain.embedder.base import BaseEmbedderdiff --git a/embedchain/embedchain.py b/embedchain/embedchain.pyindex 863bf1e7a..dfd1627e2 100644--- a/embedchain/embedchain.py+++ b/embedchain/embedchain.py@@ -16,7 +16,8 @@ from embedchain.embedder.base import BaseEmbedderfrom embedchain.helpers.json_serializable import JSONSerializablefrom embedchain.llm.base import BaseLlmfrom embedchain.loaders.base_loader import BaseLoader-from embedchain.models.data_type import DataType, DirectDataType, IndirectDataType, SpecialDataType+from embedchain.models.data_type import (DataType, DirectDataType,+ IndirectDataType, SpecialDataType)from embedchain.telemetry.posthog import AnonymousTelemetryfrom embedchain.utils import detect_datatype, is_valid_json_stringfrom embedchain.vectordb.base import BaseVectorDBdiff --git a/embedchain/memory/base.py b/embedchain/memory/base.pyindex d3386664c..d80cf7793 100644--- a/embedchain/memory/base.py+++ b/embedchain/memory/base.py@@ -23,7 +23,7 @@ CHAT_MESSAGE_CREATE_TABLE_QUERY = """class ECChatMemory:def __init__(self) -> None:- with sqlite3.connect(SQLITE_PATH) as self.connection:+ with sqlite3.connect(SQLITE_PATH, check_same_thread=False) as self.connection:self.cursor = self.connection.cursor()self.cursor.execute(CHAT_MESSAGE_CREATE_TABLE_QUERY)diff --git a/embedchain/pipeline.py b/embedchain/pipeline.pyindex e370faa48..8a922fe14 100644--- a/embedchain/pipeline.py+++ b/embedchain/pipeline.py@@ -23,7 +23,6 @@ from embedchain.utils import validate_yaml_configfrom embedchain.vectordb.base import BaseVectorDBfrom embedchain.vectordb.chroma import ChromaDB-# Setup the user directory if doesn't exist alreadyClient.setup_dir()diff --git a/pyproject.toml b/pyproject.tomlindex 9c039de36..b6b49a103 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "embedchain"-version = "0.1.21"+version = "0.1.22"description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"authors = ["Taranjeet Singh <[email protected]>",