From 7c463f0fb553c1eb9f46f627bb21d7b0a0feb7ac Mon Sep 17 00:00:00 2001 From: yangdx Date: Sun, 21 Sep 2025 00:56:56 +0800 Subject: [PATCH] Change entity type formatting from title case to lowercase without spaces --- lightrag/operate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightrag/operate.py b/lightrag/operate.py index 195343f3..087930eb 100644 --- a/lightrag/operate.py +++ b/lightrag/operate.py @@ -354,8 +354,8 @@ async def _handle_single_entity_extraction( ) return None - # Captitalize first letter of entity_type - entity_type = entity_type.title() + # Remove spaces and convert to lowercase + entity_type = entity_type.replace(" ", "").lower() # Process entity description with same cleaning pipeline entity_description = sanitize_and_normalize_extracted_text(record_attributes[3])