Skip to main content

OpenAgent Eval — pytest-level simplicity for AI evaluation

The open-source evaluation framework for RAG systems and AI Agents.

PyPI Version Python Versions License Downloads Code Style PRs Welcome GitHub Stars Forks Contributors Issues

Local-first. Framework-agnostic. Developer-friendly.

Getting Started · Documentation · Contributing


Why OpenAgent Eval?

Evaluating RAG systems shouldn't require a PhD or a cloud account. OpenAgent Eval brings pytest-level simplicity to AI evaluation — run from your terminal, get actionable insights, and ship with confidence.

  • Local-first — No cloud services, dashboards, or authentication required
  • Framework-agnostic — Works with LangChain, LlamaIndex, or any custom RAG pipeline
  • 18+ metrics — Retrieval, generation, faithfulness, relevancy, performance, and cost
  • Plugin-based — Extend with custom metrics, providers, and report generators
  • Production-ready — Corpus auditing, failure diagnosis, and synthetic test data generation

Installation

pip install openagent-eval

For development:

git clone https://github.com/OpenAgentHQ/openagent-eval.git
cd openagent-eval
uv sync

Try It in 60 Seconds — No API Key Needed

The built-in mock providers run a complete evaluation locally, without network calls or credentials. Copy and paste this block after installing openagent-eval:

cat > quickstart-dataset.json <<'JSON'
[
  {
    "question": "What is retrieval-augmented generation?",
    "ground_truth": "RAG combines retrieval with generation.",
    "ground_truth_contexts": ["RAG combines retrieval with generation."]
  }
]
JSON

cat > quickstart.yaml <<'YAML'
dataset:
  path: quickstart-dataset.json
llm:
  provider: mock
  model: mock-model
retriever:
  provider: mock
metrics:
  retrieval: [context_precision]
  generation: [exact_match]
  performance: [latency]
  cost: [token_count]
report:
  output: terminal
YAML

oaeval run quickstart.yaml

This uses deterministic offline stand-ins so you can verify the full dataset → retrieval → generation → metrics → report flow before configuring a real model or vector store.


Quick Start

1. Initialize Configuration

oaeval init --interactive

oaeval init --interactive wizard demo

The wizard walks you through your dataset path, LLM provider and model, retriever, metric preset, and report format, then writes a ready-to-run config.yaml.

2. Validate Configuration

oaeval validate config.yaml

3. Run Evaluation

oaeval run config.yaml

4. View Results

oaeval report latest

Contributing & Community

OpenAgent Eval is community-built and welcomes contributors of every experience level. If you've used the tool, you already know something worth sharing — a bug, a rough edge in the docs, or a metric you wish existed.

Ways to help:

  • Code — pick up a good first issue or something labeled help wanted, fix a bug, or add a metric or provider.
  • Docs — clarify a guide, fix a typo, or expand the documentation.
  • Bug reports — hit something unexpected? Open an issue with steps to reproduce.
  • Tutorials & examples — show how you use OpenAgent Eval by adding to examples/.

Getting started:

  1. Fork the repository and create a feature branch (git checkout -b feature/your-change)
  2. Make your change and add tests where it makes sense
  3. Run the checks (uv run pytest and uv run ruff check .)
  4. Open a pull request

New to the project? CONTRIBUTING.md walks through setup, the development workflow, and coding conventions in detail.

Where to connect:


Features

Feature Description
CLI + SDK Use via command line or import as a Python library
Beautiful Reports Terminal, Markdown, HTML, and JSON output formats
Failure Analysis Identify why evaluations fail, not just that they failed
Corpus Health Auditor Detect contradictions, staleness, and duplicates before evaluation
LLM-as-Judge Metrics NLI-based scoring for faithfulness and relevancy
Component Diagnosis Blame attribution — retrieval vs generation vs chunking
Synthetic Test Data Auto-generate test cases from your knowledge base

Evaluation Metrics

Retrieval Metrics
  • Context Precision & Recall
  • Precision@K & Recall@K
  • Hit Rate
  • Mean Reciprocal Rank (MRR)
  • Normalized Discounted Cumulative Gain (NDCG)
Generation Metrics
  • Faithfulness (NLI-based)
  • Answer Relevancy (NLI-based)
  • Hallucination Detection
  • Semantic Similarity
  • Exact Match & F1 Score
  • BLEU & ROUGE
  • BERTScore
  • LLM-as-Judge (custom criteria)
Performance & Cost
  • Latency tracking (embedding, retrieval, LLM stages)
  • Token counting (prompt, completion, total)

Supported Providers

LLM Providers: OpenAI · Anthropic · Google Gemini · Groq · OpenRouter · Ollama

Retriever Providers: Chroma · Qdrant · Pinecone · Weaviate · FAISS · pgvector · Elasticsearch · BM25


CLI Reference

Command Description
oaeval init Create configuration file (interactive wizard)
oaeval run <config> Run evaluation pipeline
oaeval report <id> View evaluation reports
oaeval compare <a> <b> Compare two experiments
oaeval list List previous evaluations
oaeval validate <config> Validate configuration
oaeval doctor Check environment and dependencies
oaeval audit --corpus <path> Audit corpus health
oaeval diagnose --report <id> Diagnose failures and attribute blame
oaeval synth --corpus <path> Generate synthetic test cases

SDK Usage

from openagent_eval.core import Engine
from openagent_eval.config import load_config

config = load_config("config.yaml")
engine = Engine(config)
report = await engine.run(dataset)

print(report.summary)

Project Structure

openagent-eval/
├── openagent_eval/
│   ├── cli/              # CLI commands (Typer)
│   ├── config/           # Configuration system (Pydantic)
│   ├── core/             # Core orchestration engine
│   ├── metrics/          # 18+ evaluation metrics
│   ├── providers/        # LLM & Retriever adapters
│   ├── corpus/           # Corpus Health Auditor
│   ├── diagnosis/        # Component Diagnosis
│   ├── synthesis/        # Synthetic Test Data
│   ├── reports/          # Report generators
│   └── plugins/          # Plugin system
├── tests/                # Test suite
├── docs/                 # Documentation
└── examples/             # Tutorials and examples

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.


Built with care by the OpenAgentHQ community.

Metadata

Release files for openagent-eval 0.4.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openagent-eval 0.4.11
File Size Uploaded Provenance Actions
openagent_eval-0.4.11.tar.gz 188.1 kB With provenance Details for openagent_eval-0.4.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openagent-eval 0.4.11
File Interpreter ABI Platform Actions
openagent_eval-0.4.11-py3-none-any.whl Python 3 none any Details for openagent_eval-0.4.11-py3-none-any.whl

Total release size: 463.7 kB

Release files / openagent_eval-0.4.11.tar.gz

Download URL openagent_eval-0.4.11.tar.gz
Size 188.1 kB
Tags Source
SHA-256 checksum
How to use checksums
29846f0e497f508e17321dbee544c4e5fe77fa417aff5f860731b5f1749c5df9
BLAKE2b-256 checksum
How to use checksums
4b19c34e22f69145b564e9a272dcd667cfdbf29283c4870b608dfb63c35c5338
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Release files / openagent_eval-0.4.11-py3-none-any.whl

Download URL openagent_eval-0.4.11-py3-none-any.whl
Size 275.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e11d9b4842db9c8e418670815677708b27fdcb03200135cb90050dc49b11c2e9
BLAKE2b-256 checksum
How to use checksums
37e56749ff4138ec4dc0b02fb5a9c7399dacb400b568973550e356ccb0360b72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Security for openagent-eval 0.4.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openagent_eval-0.4.11.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page