Skip to content

Add mode-aware structured evaluation - #442

Merged
DhavalRepo18 merged 1 commit into
mainfrom
opencode_agent
Jul 9, 2026
Merged

DhavalRepo18 merged 1 commit into
mainfrom
opencode_agent

Conversation

@ChathurangiShyalika

Copy link
Copy Markdown
Collaborator

This PR extends static_json evaluation for mode-selection scenarios.

Changes:

  • Detect ground truth objects with one of response, clarification, or abstain.
  • Score whether the model returns exactly one top-level mode key.
  • Check whether the returned mode key matches ground truth.
  • Extract required terms from ground truth answers and check term coverage.
  • Add aggregate mode metrics to reports.
  • Add tests for clarification, abstain, response, and noisy fenced JSON outputs.

Files changed:

  • src/evaluation/scorers/static_json.py
  • src/evaluation/report.py
  • src/evaluation/tests/test_static_json_scorer.py

Signed-off-by: Chathurangi Shyalika <chathurangishyalika@Chathurangis-MacBook-Pro.local>
@DhavalRepo18
DhavalRepo18 merged commit 88972b7 into main Jul 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants