Skip to content

docs(agent): add a section on how to select num_trials - #746

Open
omkargaikwad23 wants to merge 2 commits into
feat/agent-run-stats-viewer-metricsfrom
feat/agent-num-trials-docs
Open

omkargaikwad23 wants to merge 2 commits into
feat/agent-run-stats-viewer-metricsfrom
feat/agent-num-trials-docs

Conversation

@omkargaikwad23

Copy link
Copy Markdown
Collaborator

Stacked on #745.

What

docs/agentic-evals.md gets a section "How to select num_trials", after "Stats across trials". The section has:

  • The cost of a job with N trials.
  • A table with the value to use for each goal: 3 for triage, 5 or more to compare two setups, and 11 to confirm that one scenario is flaky.
  • The rule for a difference of one trial between two jobs.
  • A table with the confidence and the Wilson interval for 1, 3, 5, 11, and 15 trials that all pass.

docs/configs/run-config.md and the "Stats across trials" section link to the new section.

Why

A user who sets num_trials does not know which value to use. A higher value costs more calls and more time, and a low value gives a wide interval. The multi-run design names this section as a deliverable.

Testing

Docs only. The numbers in the second table and in the examples are the output of runstats.confidence and runstats.wilson_interval.

The section gives the value of num_trials for each goal, the cost of a
job with N trials, and the confidence and the Wilson interval for 1 to
15 trials that all pass. The run config doc and the "Stats across
trials" section link to it.
@omkargaikwad23
omkargaikwad23 marked this pull request as ready for review November 26, 2026 15:32
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.

1 participant