What problem does it solve?
It solves the challenge of assessing whether LLM outputs are accurate, reliable, and safe using repeatable methods instead of ad-hoc inspection.
Core Features & Use Cases
- Automated metrics: Computes scores for text generation quality (BLEU, ROUGE, METEOR, BERTScore, perplexity), classification performance (accuracy, precision/recall/F1, confusion matrix, AUC-ROC), and retrieval performance (MRR, NDCG, precision@K, recall@K).
- Human evaluation: Provides a practical framework for rating answers on accuracy, coherence, relevance, fluency, safety, and helpfulness when automation is insufficient.
- LLM-as-judge: Supports pointwise, pairwise, reference-based, and reference-free evaluation patterns to compare outputs when gold labels are limited or absent.
- Experimental rigor: Includes patterns for A/B testing and regression detection to track improvements over time and catch performance drops.
- Benchmarking workflows: Defines how to run models over datasets and aggregate results with summary statistics for each metric.
Quick Start
Use llm-evaluation to set up an evaluation suite for your model and compute automated metric scores for a curated set of test cases.