Judgy: Correcting LLM Judge Bias for Reliable AI Model Evaluation
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
Judgy is a Python package designed to improve the reliability of evaluations performed by LLM-as-Judges. It provides tools to estimate the true success rate of a system by correcting for LLM judge bias and generating confidence intervals through bootstrapping. This helps ensure more accurate and trustworthy assessments of AI model performance.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
judgy is a Python library developed to address the challenges of using Large Language Models (LLMs) as judges for evaluating other AI models or systems. When LLMs are used in this capacity, their inherent biases and potential errors can significantly impact the reliability and accuracy of the evaluation results. This package provides a robust solution to estimate the true success rate of your system by correcting for these LLM judge biases.
Installation
Getting started with judgy is straightforward. You can install the package using pip:
pip install judgy
Examples
Here's a quick example demonstrating how to use judgy to estimate a system's true success rate with confidence intervals:
import numpy as np
from judgy import estimate_success_rate
# Your data: 1 = Pass, 0 = Fail
test_labels = [1, 1, 0, 0, 1, 0, 1, 0] # Human labels on test set
test_preds = [1, 0, 0, 1, 1, 0, 1, 0] # LLM judge predictions on test set
unlabeled_preds = [1, 1, 0, 1, 0, 1, 0, 1] # LLM judge predictions on unlabeled data
# Estimate true pass rate with 95% confidence interval
theta_hat, lower_bound, upper_bound = estimate_success_rate(
test_labels=test_labels,
test_preds=test_preds,
unlabeled_preds=unlabeled_preds
)
print(f"Estimated true pass rate: {theta_hat:.3f}")
print(f"95% Confidence interval: [{lower_bound:.3f}, {upper_bound:.3f}]")
Why Use It
The core problem judgy solves is the unreliability introduced by LLM judge biases. By implementing a bias correction method, judgy helps you obtain a more accurate estimate of your system's true performance. It works by first estimating the LLM judge's accuracy (True Positive Rate and True Negative Rate) using a labeled test set. Then, it applies a correction formula to the observed pass rate from the judge. Finally, it uses bootstrap resampling to quantify the uncertainty and provide a confidence interval, giving you a statistically sound range for your system's true success rate. This ensures that your evaluations are not only corrected for bias but also come with a measure of their statistical robustness.
Links
For more detailed information, documentation, and to contribute, visit the official judgy resources:
Related repositories
Similar repositories that may be relevant next.

RL4LMs: A Modular RL Library for Fine-tuning Language Models
July 6, 2026
RL4LMs is a powerful and modular reinforcement learning library designed to fine-tune language models to human preferences. It offers easily customizable building blocks for training, including on-policy algorithms, reward functions, and metrics. Thoroughly tested and benchmarked, RL4LMs supports a wide range of NLP tasks and models.

torchtune: PyTorch Native Library for LLM Post-Training and Experimentation
July 5, 2026
torchtune is a PyTorch native library designed for authoring, post-training, and experimenting with Large Language Models (LLMs). It offers hackable training recipes, simple PyTorch implementations of popular LLMs, and best-in-class memory efficiency. Please note: torchtune is no longer actively maintained as of 2025.

RouteLLM: Optimize LLM Costs and Maintain Quality with Intelligent Routing
July 5, 2026
RouteLLM is a powerful framework designed to serve and evaluate LLM routers, enabling significant cost savings without compromising response quality. It intelligently routes simpler queries to cheaper models while maintaining high performance, offering a drop-in replacement for existing OpenAI clients or a compatible server. This solution helps balance the dilemma of LLM deployment costs versus model capabilities.

Memoripy: An AI Memory Layer for Context-Aware Applications
July 5, 2026
Memoripy is a Python library designed to provide an AI memory layer for context-aware applications. It offers both short-term and long-term storage, semantic clustering, and optional memory decay. This robust tool helps AI systems manage and retrieve relevant information efficiently, supporting various LLM APIs like OpenAI and Ollama.
Source repository
Open the original repository on GitHub.
9 counted GitHub visits