From b5ebfa0cb8794cb21a70a2b8e14e1c8e98d5d956 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 23 Sep 2025 23:33:29 +0800 Subject: [PATCH] Add entity type synonyms for legal, medical, and natural domains --- lightrag_webui/src/hooks/useLightragGraph.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lightrag_webui/src/hooks/useLightragGraph.tsx b/lightrag_webui/src/hooks/useLightragGraph.tsx index d55ac432..786c2b7d 100644 --- a/lightrag_webui/src/hooks/useLightragGraph.tsx +++ b/lightrag_webui/src/hooks/useLightragGraph.tsx @@ -26,7 +26,12 @@ const TYPE_SYNONYMS: Record = { 'project': 'concept', 'condition': 'concept', 'rule': 'concept', + 'regulation': 'concept', + 'article': 'concept', 'law': 'concept', + 'legalclause': 'concept', + 'policy': 'concept', + 'disease': 'concept', '概念': 'concept', '对象': 'concept', '类别': 'concept', @@ -36,6 +41,10 @@ const TYPE_SYNONYMS: Record = { '条件': 'concept', '规则': 'concept', '法律': 'concept', + '法律条款': 'concept', + '条文': 'concept', + '政策': 'policy', + '疾病': 'concept', 'method': 'method', 'process': 'method', @@ -52,6 +61,9 @@ const TYPE_SYNONYMS: Record = { 'component': 'artifact', 'material': 'artifact', 'chemical': 'artifact', + 'drug': 'artifact', + 'medicine': 'artifact', + 'food': 'artifact', 'weapon': 'artifact', 'arms': 'artifact', '人工制品': 'artifact', @@ -64,6 +76,8 @@ const TYPE_SYNONYMS: Record = { '物品': 'artifact', '材料': 'artifact', '化学': 'artifact', + '药物': 'artifact', + '食品': 'artifact', '武器': 'artifact', '军火': 'artifact', @@ -71,6 +85,7 @@ const TYPE_SYNONYMS: Record = { 'natural': 'naturalobject', 'phenomena': 'naturalobject', 'substance': 'naturalobject', + 'plant': 'naturalobject', '自然对象': 'naturalobject', '自然物体': 'naturalobject', '自然现象': 'naturalobject',