From 4231e382816462f0d3eb198f5604bf0b30c09f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20MANSUY?= Date: Thu, 4 Dec 2025 19:18:37 +0800 Subject: [PATCH] cherry-pick fe890fca --- lightrag/operate.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lightrag/operate.py b/lightrag/operate.py index 15f18dca..87ffdf4f 100644 --- a/lightrag/operate.py +++ b/lightrag/operate.py @@ -1188,7 +1188,7 @@ async def _rebuild_single_entity( file_paths_list = file_paths_list[:max_file_paths] file_paths_list.append( - f"...{file_path_placeholder}({limit_method}:{max_file_paths}/{original_count})..." + f"...{file_path_placeholder}...({limit_method} {max_file_paths}/{original_count})" ) logger.info( f"Limited `{entity_name}`: file_path {original_count} -> {max_file_paths} ({limit_method})" @@ -1222,7 +1222,7 @@ async def _rebuild_single_entity( if len(limited_chunk_ids) < len(normalized_chunk_ids): truncation_info = ( - f"{limit_method}:{len(limited_chunk_ids)}/{len(normalized_chunk_ids)}" + f"{limit_method} {len(limited_chunk_ids)}/{len(normalized_chunk_ids)}" ) else: truncation_info = "" @@ -1347,7 +1347,7 @@ async def _rebuild_single_relationship( file_paths_list = file_paths_list[:max_file_paths] file_paths_list.append( - f"...{file_path_placeholder}({limit_method}:{max_file_paths}/{original_count})..." + f"...{file_path_placeholder}...({limit_method} {max_file_paths}/{original_count})" ) logger.info( f"Limited `{src}`~`{tgt}`: file_path {original_count} -> {max_file_paths} ({limit_method})" @@ -1383,7 +1383,7 @@ async def _rebuild_single_relationship( if len(limited_chunk_ids) < len(normalized_chunk_ids): truncation_info = ( - f"{limit_method}:{len(limited_chunk_ids)}/{len(normalized_chunk_ids)}" + f"{limit_method} {len(limited_chunk_ids)}/{len(normalized_chunk_ids)}" ) else: truncation_info = ""