FairEval is a lightweight research framework for evaluating LLM outputs beyond accuracy — focusing on:
-
Rubric-based LLM-as-Judge scoring
- Uses a structured rubric (
config/prompts/judge_rubric.md) to score:
- coherence
- helpfulness
- factuality
- Returns scalar scores that correlate with human preference.
-
Toxicity and safety metrics
- Wraps a toxicity model (e.g., Detoxify) to compute:
- composite toxicity
- per-category scores (insult, threat, identity attack, etc.)
- Provides Altair charts for:
- toxicity breakdown by category
- toxicity distribution by demographic group
-
Human evaluation agreement
- Ingests a
human_eval.csv file with human ratings.
- Computes:
- Fleiss’ κ (inter-rater reliability)
- Spearman ρ between judge and human scores.
1git clone https://github.com/kritibehl/FairEval.git
2cd FairEval
3python3 -m venv .venv && source .venv/bin/activate
4pip install -r requirements.txt
5streamlit run demo/app.py