Feature: Enhanced RAG Evaluation CLI with Two-Stage Pipeline and Improved UX#2311
Merged
danielaskdd merged 6 commits intoHKUDS:mainfrom Nov 4, 2025
Merged
Feature: Enhanced RAG Evaluation CLI with Two-Stage Pipeline and Improved UX#2311danielaskdd merged 6 commits intoHKUDS:mainfrom
danielaskdd merged 6 commits intoHKUDS:mainfrom
Conversation
- Add --dataset and --ragendpoint flags - Support short forms -d and -r - Update README with usage examples
• Lower concurrent evals from 3 to 2 • Standardize project names in samples • Add 3 new evaluation questions • Expand ground truth detail coverage • Improve dataset comprehensiveness
• Add tqdm progress bar for eval steps • Pass progress bar to RAGAS evaluate • Ensure progress bar cleanup in finally • Remove redundant output buffer flushes
• Split RAG gen and eval stages • Add rag_semaphore for stage 1 • Add eval_semaphore for stage 2 • Improve concurrency control • Update connection pool limits
• Move rag_semaphore to wrap full function • Increase RAG concurrency to 2x eval limit • Prevent memory buildup from slow evals • Keep eval_semaphore for RAGAS control
• Add position pool for tqdm bars • Serialize tqdm creation with lock • Set leave=False to clear completed bars • Pass position/lock to eval tasks • Import tqdm.auto for better display
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Feature: Enhanced RAG Evaluation CLI with Two-Stage Pipeline and Improved UX
Summary
This PR significantly improves the LightRAG evaluation system by adding command-line argument support, implementing a two-stage concurrent pipeline for better performance, and enhancing user experience with real-time progress visualization.
🚀 Key Improvements
1. Command-Line Arguments Support
argparsefor professional CLI interface--dataset/-dto specify custom test datasets--ragendpoint/-rto specify custom RAG API endpoints--helpdocumentation2. Two-Stage Pipeline Architecture
3. Real-Time Progress Visualization
tqdmprogress bars for each concurrent evaluation4. Enhanced Documentation
5. Improved Test Dataset
💡 Usage Examples
🧪 Testing Recommendations
EVAL_MAX_CONCURRENTvalues