From 6977db3dd1f2dd3e01f2fcc05015e25324e81cbc Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 23 Apr 2025 21:30:07 +0800 Subject: [PATCH] Remove the single quotation marks that enclose the names of the entities --- lightrag/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightrag/utils.py b/lightrag/utils.py index b1dc0a6f..2c18db69 100644 --- a/lightrag/utils.py +++ b/lightrag/utils.py @@ -1428,6 +1428,8 @@ def normalize_extracted_info(name: str, is_entity=False) -> str: # Remove English quotation marks from the beginning and end if len(name) >= 2 and name.startswith('"') and name.endswith('"'): name = name[1:-1] + if len(name) >= 2 and name.startswith("'") and name.endswith("'"): + name = name[1:-1] if is_entity: # remove Chinese quotes