From f19cce16be41dc21c77c76b72709ce8321162986 Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 4 Sep 2025 18:31:53 +0800 Subject: [PATCH] Fix incorrect variable name in NetworkXStorage file path - Fix working_dir -> workspace_dir typo - Correct GraphML file path generation --- lightrag/kg/networkx_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/kg/networkx_impl.py b/lightrag/kg/networkx_impl.py index 028b97a8..09668f6e 100644 --- a/lightrag/kg/networkx_impl.py +++ b/lightrag/kg/networkx_impl.py @@ -51,7 +51,7 @@ class NetworkXStorage(BaseGraphStorage): os.makedirs(workspace_dir, exist_ok=True) self._graphml_xml_file = os.path.join( - working_dir, f"graph_{self.namespace}.graphml" + workspace_dir, f"graph_{self.namespace}.graphml" ) self._storage_lock = None self.storage_updated = None