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
Py: ruff format (#17193)
Jin Hai9f080a4f45ee
diff --git a/rag/advanced_rag/knowlege_compile/structure.py b/rag/advanced_rag/knowlege_compile/structure.pyindex e3b437df46..4d9fe98308 100644--- a/rag/advanced_rag/knowlege_compile/structure.py+++ b/rag/advanced_rag/knowlege_compile/structure.py@@ -1939,12 +1939,7 @@ async def cleanup_timeline_isolated_entities(if edge is not None:connected_names.update(name.casefold() for name in edge if name)- orphan_ids = [- row_id- for row_id, row in rows.items()- if row.get("knowledge_graph_kwd") == "entity"- and _struct_entity_name(row).casefold() not in connected_names- ]+ orphan_ids = [row_id for row_id, row in rows.items() if row.get("knowledge_graph_kwd") == "entity" and _struct_entity_name(row).casefold() not in connected_names]if orphan_ids:await thread_pool_exec(settings.docStoreConn.delete,