From f4bca7bfb246e7474e6ce4a06538ce1b5d033284 Mon Sep 17 00:00:00 2001 From: yangdx Date: Sun, 27 Jul 2025 16:50:45 +0800 Subject: [PATCH] Fix linting --- lightrag/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lightrag/utils.py b/lightrag/utils.py index 87e91b0f..c3ab438e 100644 --- a/lightrag/utils.py +++ b/lightrag/utils.py @@ -1880,7 +1880,9 @@ async def process_chunks_unified( # Filter chunks with score below threshold filtered_chunks = [] for chunk in unique_chunks: - rerank_score = chunk.get("rerank_score", 1.0) # Default to 1.0 if no score + rerank_score = chunk.get( + "rerank_score", 1.0 + ) # Default to 1.0 if no score if rerank_score >= min_rerank_score: filtered_chunks.append(chunk)