Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Refactor:memory delete will re-use super method (#12684)

Stephen Hu4a7e40630b58
diff --git a/api/db/services/memory_service.py b/api/db/services/memory_service.py
index 8a65d15e24..215a198fe2 100644
--- a/api/db/services/memory_service.py
+++ b/api/db/services/memory_service.py
@@ -167,4 +167,4 @@ class MemoryService(CommonService):
@classmethod
@DB.connection_context()
def delete_memory(cls, memory_id: str):
- return cls.model.delete().where(cls.model.id == memory_id).execute()
+ return cls.delete_by_id(memory_id)