From 06b91d00f87468606ed9a11839a15cd4c0c59a54 Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 5 Nov 2025 09:46:07 +0800 Subject: [PATCH] Improve RAG evaluation progress eval index display with zero padding --- lightrag/evaluation/eval_rag_quality.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lightrag/evaluation/eval_rag_quality.py b/lightrag/evaluation/eval_rag_quality.py index 0338a4f0..5c49b631 100644 --- a/lightrag/evaluation/eval_rag_quality.py +++ b/lightrag/evaluation/eval_rag_quality.py @@ -423,7 +423,10 @@ class RAGEvaluator: # leave=False ensures the progress bar is cleared after completion, # preventing accumulation of completed bars and allowing position reuse pbar = tqdm( - total=4, desc=f"Eval-{idx}", position=position, leave=False + total=4, + desc=f"Eval-{idx:02d}", + position=position, + leave=False, ) # Give tqdm time to initialize and claim its screen position await asyncio.sleep(0.05) @@ -517,8 +520,7 @@ class RAGEvaluator: logger.info("%s", "=" * 70) logger.info("🚀 Starting RAGAS Evaluation of LightRAG System") - logger.info("🔧 Two-Stage Pipeline Configuration:") - logger.info(" • RAGAS Evaluation (Stage 2): %s concurrent", max_async) + logger.info("🔧 RAGAS Evaluation (Stage 2): %s concurrent", max_async) logger.info("%s", "=" * 70) # Create two-stage pipeline semaphores