From 3ead0489b8c310e8855c084e46daeea9bc5eb63a Mon Sep 17 00:00:00 2001 From: zrguo <49157727+LarFii@users.noreply.github.com> Date: Tue, 15 Jul 2025 21:47:33 +0800 Subject: [PATCH] Remove "rank", "weight", "keywords" --- lightrag/operate.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lightrag/operate.py b/lightrag/operate.py index 0dc1f79f..073db4d4 100644 --- a/lightrag/operate.py +++ b/lightrag/operate.py @@ -2323,7 +2323,6 @@ async def _get_node_data( "entity": n["entity_name"], "type": n.get("entity_type", "UNKNOWN"), "description": n.get("description", "UNKNOWN"), - "rank": n["rank"], "created_at": created_at, "file_path": file_path, } @@ -2345,9 +2344,6 @@ async def _get_node_data( "entity1": e["src_tgt"][0], "entity2": e["src_tgt"][1], "description": e["description"], - "keywords": e["keywords"], - "weight": e["weight"], - "rank": e["rank"], "created_at": created_at, "file_path": file_path, } @@ -2601,9 +2597,6 @@ async def _get_edge_data( "entity1": e["src_id"], "entity2": e["tgt_id"], "description": e["description"], - "keywords": e["keywords"], - "weight": e["weight"], - "rank": e["rank"], "created_at": created_at, "file_path": file_path, } @@ -2625,7 +2618,6 @@ async def _get_edge_data( "entity": n["entity_name"], "type": n.get("entity_type", "UNKNOWN"), "description": n.get("description", "UNKNOWN"), - "rank": n["rank"], "created_at": created_at, "file_path": file_path, }