feat(evaluation): add offline judge benchmark workflow#561
Merged
Conversation
- add per-llm-judge target overrides for multi-model judge panels\n- add a public offline benchmark example with labeled export fixtures and scoring glue\n- document single-run and A/B comparison workflows Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Deploying agentv with
|
| Latest commit: |
03d2073
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://6cea2290.agentv.pages.dev |
| Branch Preview URL: | https://feat-offline-judge-benchmark.agentv.pages.dev |
Use OpenRouter-backed Claude Haiku and Gemini Flash targets, drop the invalid Gemini Flash Lite example target, and trim the bundled benchmark fixture set to the three judges that are actually configured in the example.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Collaborator
Author
|
Nit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Teams want to use LLM judges to evaluate production agent behavior, but before trusting those judges they need a safe way to measure judge accuracy itself against human-labeled examples. This PR adds the missing benchmark workflow so teams can export sanitized production samples, run a three-model low-cost judge panel offline, compare judge decisions to domain-expert ground truth, and A/B test judge prompts or model mixes before relying on them in broader evaluation programs.
Summary
llm-judgetarget:overrides so one eval can run a three-model judge panelValidation
bun test packages/core/test/evaluation/evaluators.test.ts packages/core/test/evaluation/loaders/evaluator-parser.test.tsbun test packages/core/test/evaluation/orchestrator.test.ts packages/core/test/evaluation/validation/eval-schema-sync.test.tsbun run buildbunx biome check packages/core/src/evaluation/types.ts packages/core/src/evaluation/validation/eval-file.schema.ts packages/core/src/evaluation/loaders/evaluator-parser.ts packages/core/src/evaluation/registry/builtin-evaluators.ts packages/core/test/evaluation/evaluators.test.ts packages/core/test/evaluation/loaders/evaluator-parser.test.ts apps/web/src/content/docs/evaluators/llm-judges.mdx apps/web/src/content/docs/evaluation/examples.mdx examples/showcase/offline-judge-benchmark/scripts/replay-fixture-output.ts examples/showcase/offline-judge-benchmark/scripts/score-judge-benchmark.ts plugins/agentv-dev/skills/agentv-eval-builder/references/eval-schema.jsonbun examples/showcase/offline-judge-benchmark/scripts/replay-fixture-output.ts --prompt $'Task\n<<<AGENT_OUTPUT\nhello world\n>>>AGENT_OUTPUT' --output /tmp/offline-judge-replay.txtbun examples/showcase/offline-judge-benchmark/scripts/score-judge-benchmark.ts --results examples/showcase/offline-judge-benchmark/fixtures/setup-a.raw.jsonl --dataset examples/showcase/offline-judge-benchmark/fixtures/labeled-judge-export.jsonl --label judge-setup-a > /tmp/judge-setup-a.scored.jsonlbun examples/showcase/offline-judge-benchmark/scripts/score-judge-benchmark.ts --results examples/showcase/offline-judge-benchmark/fixtures/setup-b.raw.jsonl --dataset examples/showcase/offline-judge-benchmark/fixtures/labeled-judge-export.jsonl --label judge-setup-b > /tmp/judge-setup-b.scored.jsonlbun apps/cli/src/cli.ts compare /tmp/judge-setup-a.scored.jsonl /tmp/judge-setup-b.scored.jsonl(expected regression exit 1 with 0 wins / 2 losses / 3 ties)bun apps/cli/dist/cli.js compare /tmp/judge-setup-a.scored.jsonl /tmp/judge-setup-b.scored.jsonl --json(expected regression exit 1)bun examples/features/benchmark-tooling/scripts/benchmark-report.ts /tmp/judge-setup-a.scored.jsonl /tmp/judge-setup-b.scored.jsonl --jsonRisk
High — additive public YAML schema change (
llm-judge.target) plus new public benchmark workflow example/docs.Related