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
[Bug fix] Fix issue related to get_data_sources() method (#1295)
Deshraj Yadav91044ec59145
diff --git a/embedchain/app.py b/embedchain/app.pyindex ae7cb5d22..967661984 100644--- a/embedchain/app.py+++ b/embedchain/app.py@@ -10,9 +10,14 @@ import requestsimport yamlfrom tqdm import tqdm-from embedchain.cache import (Config, ExactMatchEvaluation,- SearchDistanceEvaluation, cache,- gptcache_data_manager, gptcache_pre_function)+from embedchain.cache import (+ Config,+ ExactMatchEvaluation,+ SearchDistanceEvaluation,+ cache,+ gptcache_data_manager,+ gptcache_pre_function,+)from embedchain.client import Clientfrom embedchain.config import AppConfig, CacheConfig, ChunkerConfigfrom embedchain.core.db.database import get_session, init_db, setup_engine@@ -21,8 +26,7 @@ from embedchain.embedchain import EmbedChainfrom embedchain.embedder.base import BaseEmbedderfrom embedchain.embedder.openai import OpenAIEmbedderfrom embedchain.evaluation.base import BaseMetric-from embedchain.evaluation.metrics import (AnswerRelevance, ContextRelevance,- Groundedness)+from embedchain.evaluation.metrics import AnswerRelevance, ContextRelevance, Groundednessfrom embedchain.factory import EmbedderFactory, LlmFactory, VectorDBFactoryfrom embedchain.helpers.json_serializable import register_deserializablefrom embedchain.llm.base import BaseLlm@@ -295,7 +299,7 @@ class App(EmbedChain):data_sources = self.db_session.query(DataSource).filter_by(app_id=self.local_id).all()results = []for row in data_sources:- results.append({"data_type": row.data_type, "data_value": row.data_value, "metadata": row.metadata})+ results.append({"data_type": row.type, "data_value": row.value, "metadata": row.meta_data})return resultsdef deploy(self):diff --git a/pyproject.toml b/pyproject.tomlindex d11925520..5b1cea358 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "embedchain"-version = "0.1.89"+version = "0.1.90"description = "Simplest open source retrieval(RAG) framework"authors = ["Taranjeet Singh <[email protected]>",