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
Set `check_same_thread` false so that one App can be used in parallel (#911)
Sidharth Mohantyd8cdbe00418b
diff --git a/embedchain/embedchain.py b/embedchain/embedchain.pyindex eb0dc62a5..58174d4e7 100644--- a/embedchain/embedchain.py+++ b/embedchain/embedchain.py@@ -88,7 +88,7 @@ class EmbedChain(JSONSerializable):self._telemetry_props = {"class": self.__class__.__name__}self.telemetry = AnonymousTelemetry(enabled=self.config.collect_metrics)# Establish a connection to the SQLite database- self.connection = sqlite3.connect(SQLITE_PATH)+ self.connection = sqlite3.connect(SQLITE_PATH, check_same_thread=False)self.cursor = self.connection.cursor()# Create the 'data_sources' table if it doesn't existdiff --git a/embedchain/pipeline.py b/embedchain/pipeline.pyindex 64e38e8b3..28a6cb1a3 100644--- a/embedchain/pipeline.py+++ b/embedchain/pipeline.py@@ -120,7 +120,7 @@ class Pipeline(EmbedChain):self.telemetry = AnonymousTelemetry(enabled=self.config.collect_metrics)# Establish a connection to the SQLite database- self.connection = sqlite3.connect(SQLITE_PATH)+ self.connection = sqlite3.connect(SQLITE_PATH, check_same_thread=False)self.cursor = self.connection.cursor()# Create the 'data_sources' table if it doesn't exist