Skip to content

feat: add the quality, latency, and cost evaluation harness - #16

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/11-evaluation
Sep 3, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/11-evaluation

Conversation

@Yash-Chindam

@Yash-Chindam Yash-Chindam commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Implements section 16 (Evaluation) of the design spec: dataset-driven grading, structured-output validity, and a report that always pairs quality with latency and GPU cost.
  • Adds execute(), the transport runner that drives committed EvaluationCases through a caller-supplied callable and times each one, so build_report() can be fed real outcomes instead of only hand-built ones.
  • Adds reproducible k6 steady and burst load workload definitions under benchmarks/workloads.
  • Documents the harness in the README.

Test plan

  • ruff format --check .
  • ruff check .
  • mypy
  • pytest tests/unit tests/integration --cov=llm_router --cov-report=term-missing (97% coverage, 90% required)

Yash-Chindam and others added 3 commits September 3, 2026 21:38
Grades committed datasets with task-appropriate scoring and structured
output validity, reports quality with latency percentiles, throughput,
and GPU seconds per successful request, and rejects any variant that buys
latency with quality. Adds reproducible k6 steady and burst workloads.
execute() drives each committed EvaluationCase through a caller-supplied
transport and measures latency the same way for every harness run, so
build_report() can be fed real outcomes instead of hand-built ones. This
is the piece section 16 needed to actually exercise a dataset against a
model instead of only scoring pre-collected outcomes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation area/api area/tests labels Sep 3, 2026
@github-actions
github-actions Bot merged commit faf75b7 into main Sep 3, 2026
6 checks passed
@github-actions
github-actions Bot deleted the feat/11-evaluation branch September 3, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api area/tests documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant