OpenAI Evals

Stale
GitHub Python NOASSERTION

Description

OpenAI's framework for evaluating LLMs and LLM systems, providing an open-source registry of benchmarks and tools for systematic model assessment.

Key Features

  • Open-source registry of evals for testing different dimensions of LLM performance
  • Custom eval creation using basic and model-graded templates without writing code
  • Private evals support for evaluating LLM patterns in your workflow without exposing data
  • Completion Function Protocol for advanced use cases like prompt chains and tool-using agents
  • Snowflake integration for logging eval results to a database
  • Configurable and runnable directly in the OpenAI Dashboard

Use Cases

💡 Evaluate and benchmark different LLM model versions for your use case
💡 Build custom evals to test specific LLM capabilities you care about
💡 Red-team and safety testing of LLM systems
💡 Track model performance improvements across iterations
💡 Contribute evaluation benchmarks to the OpenAI community

Strengths & Limitations

Strengths

  • High community interest (19.4k stars)
  • Established track record (3 years in production)

⚠️ Limitations

  • No clear open-source license

Quick Start

1. Install: pip install evals
2. Set API key: export OPENAI_API_KEY=your_key
3. Download evals: git lfs fetch --all && git lfs pull
4. Run: oaieval <eval_name> --api_base <api_base>
5. Or create custom evals: pip install -e . and follow docs/build-eval.md

Related Projects

UQLM

1.2k · Python
Active A+

CVS Health's open-source uncertainty quantification library for language models, providing UQ-based hallucination detection with confidence scoring and mitigation tools to identify and reduce unreliable LLM outputs.

hallucination-detectionuncertainty-quantificationllm-evaluation +2
  • · Five categories of uncertainty quantification scorers: Black-Box (consistency), White-Box (token probability), LLM-as-a-Judge, Ensemble, and Long-Text
  • · Black-Box scorers measure response consistency through multiple generations and comparisons, compatible with any LLM, off-the-shelf
  • · White-Box scorers leverage token probabilities for uncertainty estimation, single-generation scoring with minimal latency and cost

Guardrails AI

7.3k · Python
Active A+

Guardrails AI adds programmable guardrails to large language models, ensuring reliability and safety through input/output validation, structured data extraction, and custom validators.

guardrailsllm-safetyvalidation +2
  • · Input/Output Guards — detect, quantify, and mitigate specific risk types in LLM applications
  • · Guardrails Hub pre-built validators — RegexMatch, CompetitorCheck, ToxicLanguage and more out of the box
  • · Pydantic structured output — enforce LLM output format via function calling or prompt optimization

Garak

9.1k · Python
Active A

NVIDIA's open-source LLM vulnerability scanner that automatically detects security issues in language models including safety vulnerabilities, hallucination tendencies, jailbreak risks, and prompt injection attacks.

llm-securityvulnerability-scannerllm-evaluation +2
  • · Automated LLM vulnerability scanning for hallucination, data leakage, prompt injection, and jailbreak detection
  • · Static, dynamic, and adaptive probe combinations for comprehensive security assessment
  • · Broad LLM support: Hugging Face, OpenAI, AWS Bedrock, Replicate, llama.cpp, and REST-accessible models

OpenCompass

7.4k · Python
Active A

OpenCompass is a comprehensive LLM evaluation platform supporting a wide range of models including Llama, Mistral, GPT-4, Qwen, GLM, and Claude across 100+ benchmark datasets.

llm-evaluationbenchmarkevaluation-platform +1
  • · Comprehensive benchmarking across 100+ datasets covering knowledge, reasoning, math, code and more
  • · Compatible with major LLMs — Llama, Mistral, GPT-4, Qwen, GLM, Claude, etc.
  • · CascadeEvaluator for sequential multi-evaluator pipelines on complex assessment scenarios