Improve RAG evaluation progress eval index display with zero padding

This commit is contained in:
yangdx 2025-11-05 09:46:07 +08:00
parent eb80771f51
commit 06b91d00f8

View file

@ -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