From dafdf92715fe1ea1dfc8a4b999325d266b39ea9c Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 29 Jul 2025 19:13:07 +0800 Subject: [PATCH] Remove content fallback logic in get_docs_by_status from Redis --- lightrag/kg/redis_impl.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lightrag/kg/redis_impl.py b/lightrag/kg/redis_impl.py index 31752d69..6518cf04 100644 --- a/lightrag/kg/redis_impl.py +++ b/lightrag/kg/redis_impl.py @@ -786,12 +786,6 @@ class RedisDocStatusStorage(DocStatusStorage): # Make a copy of the data to avoid modifying the original data = doc_data.copy() - # If content is missing, use content_summary as content - if ( - "content" not in data - and "content_summary" in data - ): - data["content"] = data["content_summary"] # If file_path is not in data, use document id as file path if "file_path" not in data: data["file_path"] = "no-file-path"