How openagenthq/openagent-eval works
OpenAgent Eval is a local-first framework and CLI/SDK for evaluating RAG systems and AI agents. Its primary workflow loads configuration and a dataset, retrieves context, generates answers, computes metrics, and saves or renders reports. Separate capabilities audit corpus health, diagnose failures, synthesize test data, extend the framework with plugins, and gate evaluations in pytest/CI. The map uses the supplied excerpts and SOURCE INDEX references; several feature links are documented by the README because their implementation files were not sampled.
Main entry points: main.py CLI Commands · engine.py Evaluation Engine · pipeline.py Evaluation Pipeline · manager.py Report Manager
Components 19
User Interface
- CLI Commands
openagent_eval/cli/main.py - Config Loader
openagent_eval/config/loader.py
Evaluation Runtime
- Dataset Loaders
openagent_eval/datasets - Evaluation Engine
openagent_eval/core/engine.py - Evaluation Pipeline
openagent_eval/core/pipeline.py - Report Formats
openagent_eval/reports - Report Manager
openagent_eval/reports/manager.py
Providers and Metrics
- Retriever Providers
openagent_eval/providers/retrievers - LLM Providers
openagent_eval/providers/llm - Metric Implementations
openagent_eval/metrics
Quality Insights
- Corpus Audit Command
openagent_eval/cli/commands/audit.py - Corpus Auditor
openagent_eval/corpus/auditor.py - Audit Checks
openagent_eval/corpus - Failure Diagnosis
openagent_eval/diagnosis - Synthetic Data
openagent_eval/synthesis/generator.py
Extensions and CI
- Plugin System
openagent_eval/plugins - Pytest CI Plugin
openagent_eval/cicd/plugin.py - Metric Thresholds
openagent_eval/cicd/thresholds.py
Other components
- Developer
Connections 23
- Developer → CLI Commands: runs commands
- Developer → Evaluation Engine: uses SDK
- CLI Commands → Config Loader: loads config
- CLI Commands → Dataset Loaders: loads dataset
- CLI Commands → Evaluation Engine: starts evaluation
- Evaluation Engine → Evaluation Pipeline: constructs and runs
openagent_eval/core/engine.py - Evaluation Engine → Retriever Providers: builds provider
openagent_eval/core/engine.py - Evaluation Engine → LLM Providers: builds provider
openagent_eval/core/engine.py - Evaluation Pipeline → Retriever Providers: retrieves context
- Evaluation Pipeline → LLM Providers: generates answers
- Evaluation Pipeline → Metric Implementations: computes scores
openagent_eval/core/pipeline.py - Evaluation Engine → Report Manager: returns evaluation report
openagent_eval/core/engine.py - CLI Commands → Report Manager: loads and lists reports
- Report Manager → Report Formats: renders report formats
openagent_eval/cli/utils/helpers.py - CLI Commands → Corpus Audit Command: routes audit command
openagent_eval/cli/main.py - Corpus Audit Command → Corpus Auditor: runs audit
openagent_eval/cli/commands/audit.py - Corpus Auditor → Audit Checks: runs health checks
openagent_eval/corpus/auditor.py - CLI Commands → Failure Diagnosis: offers diagnosis
- CLI Commands → Synthetic Data: offers synthesis
- Plugin System → Metric Implementations: extends metrics
- Plugin System → Retriever Providers: extends providers
- Pytest CI Plugin → Evaluation Engine: runs evaluation
openagent_eval/cicd/plugin.py - Pytest CI Plugin → Metric Thresholds: checks thresholds
openagent_eval/cicd/plugin.py