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
fix: format lint (#316)
cachhod16eafae05d9
diff --git a/embedchain/__init__.py b/embedchain/__init__.pyindex 4279b16ec..371713f12 100644--- a/embedchain/__init__.py+++ b/embedchain/__init__.py@@ -5,4 +5,5 @@ __version__ = importlib.metadata.version(__package__ or __name__)from embedchain.apps.App import App # noqa: F401from embedchain.apps.CustomApp import CustomApp # noqa: F401from embedchain.apps.OpenSourceApp import OpenSourceApp # noqa: F401-from embedchain.apps.PersonApp import PersonApp, PersonOpenSourceApp # noqa: F401+from embedchain.apps.PersonApp import (PersonApp, # noqa: F401+ PersonOpenSourceApp)diff --git a/embedchain/apps/CustomApp.py b/embedchain/apps/CustomApp.pyindex 517c85aa7..69062c15b 100644--- a/embedchain/apps/CustomApp.py+++ b/embedchain/apps/CustomApp.py@@ -1,9 +1,9 @@import logging-from typing import Iterable, List, Union+from typing import Listfrom langchain.schema import BaseMessage-from embedchain.config import ChatConfig, CustomAppConfig, OpenSourceAppConfig+from embedchain.config import ChatConfig, CustomAppConfigfrom embedchain.embedchain import EmbedChainfrom embedchain.models import Providersdiff --git a/embedchain/apps/OpenSourceApp.py b/embedchain/apps/OpenSourceApp.pyindex 2ab6e0aae..803cf1333 100644--- a/embedchain/apps/OpenSourceApp.py+++ b/embedchain/apps/OpenSourceApp.py@@ -1,5 +1,5 @@import logging-from typing import Iterable, List, Union+from typing import Iterable, Unionfrom embedchain.config import ChatConfig, OpenSourceAppConfigfrom embedchain.embedchain import EmbedChaindiff --git a/embedchain/apps/PersonApp.py b/embedchain/apps/PersonApp.pyindex 4bac1c104..2472f6918 100644--- a/embedchain/apps/PersonApp.py+++ b/embedchain/apps/PersonApp.py@@ -4,7 +4,8 @@ from embedchain.apps.App import Appfrom embedchain.apps.OpenSourceApp import OpenSourceAppfrom embedchain.config import ChatConfig, QueryConfigfrom embedchain.config.apps.BaseAppConfig import BaseAppConfig-from embedchain.config.QueryConfig import DEFAULT_PROMPT, DEFAULT_PROMPT_WITH_HISTORY+from embedchain.config.QueryConfig import (DEFAULT_PROMPT,+ DEFAULT_PROMPT_WITH_HISTORY)class EmbedChainPersonApp:diff --git a/embedchain/config/apps/CustomAppConfig.py b/embedchain/config/apps/CustomAppConfig.pyindex f27282184..5649721ee 100644--- a/embedchain/config/apps/CustomAppConfig.py+++ b/embedchain/config/apps/CustomAppConfig.py@@ -1,4 +1,3 @@-import loggingfrom typing import Anyfrom chromadb.api.types import Documents, Embeddings@@ -7,7 +6,6 @@ from dotenv import load_dotenvfrom embedchain.models import EmbeddingFunctions, Providersfrom .BaseAppConfig import BaseAppConfig-from embedchain.models import Providersload_dotenv()diff --git a/embedchain/config/apps/OpenSourceAppConfig.py b/embedchain/config/apps/OpenSourceAppConfig.pyindex 954c2ec29..82b4cdcc2 100644--- a/embedchain/config/apps/OpenSourceAppConfig.py+++ b/embedchain/config/apps/OpenSourceAppConfig.py@@ -15,7 +15,8 @@ class OpenSourceAppConfig(BaseAppConfig)::param id: Optional. ID of the app. Document metadata will have this id.:param host: Optional. Hostname for the database server.:param port: Optional. Port for the database server.- :param model: Optional. GPT4ALL uses the model to instantiate the class. So unlike `App`, it has to be provided before querying.+ :param model: Optional. GPT4ALL uses the model to instantiate the class.+ So unlike `App`, it has to be provided before querying."""self.model = model or "orca-mini-3b.ggmlv3.q4_0.bin"diff --git a/embedchain/embedchain.py b/embedchain/embedchain.pyindex e645e8ec3..c98e852bf 100644--- a/embedchain/embedchain.py+++ b/embedchain/embedchain.py@@ -1,6 +1,7 @@import loggingimport os+from chromadb.errors import InvalidDimensionExceptionfrom dotenv import load_dotenvfrom langchain.docstore.document import Documentfrom langchain.memory import ConversationBufferMemory@@ -10,8 +11,6 @@ from embedchain.config.apps.BaseAppConfig import BaseAppConfigfrom embedchain.config.QueryConfig import DOCS_SITE_PROMPT_TEMPLATEfrom embedchain.data_formatter import DataFormatter-from chromadb.errors import InvalidDimensionException-load_dotenv()ABS_PATH = os.getcwd()@@ -164,7 +163,7 @@ class EmbedChain:except InvalidDimensionException as e:raise InvalidDimensionException(e.message()- + ". This is commonly a side-effect when an embedding function, different from the one used to add the embeddings, is used to retrieve an embedding from the database."+ + ". This is commonly a side-effect when an embedding function, different from the one used to add the embeddings, is used to retrieve an embedding from the database." # noqa E501) from Noneresults_formatted = self._format_result(result)