RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix: sort memory by create_time desc (#16942)
Lynn51fa76295ff1
diff --git a/api/apps/services/memory_api_service.py b/api/apps/services/memory_api_service.pyindex ba8fac6a2c..ad2d27fa02 100644--- a/api/apps/services/memory_api_service.py+++ b/api/apps/services/memory_api_service.py@@ -270,6 +270,7 @@ async def list_memory(filter_params: dict, keywords: str, page: int = 1, page_simemory_list, count = MemoryService.get_by_filter(filter_dict, keywords, page, page_size)[memory.update({"memory_type": get_memory_type_human(memory["memory_type"])}) for memory in memory_list]+ memory_list.sort(key=lambda m: m["create_time"], reverse=True)return {"memory_list": memory_list, "total_count": count}