Online runners

Online evals score what your system already did in production. Nothing is re-run and there are no fixtures. You collect recent production runs as cases and judge them.

Set it up

Add an online section to your dataset, with a runner and the judges you want to use:

View on GitHubevals/triage/dataset.yml
name: triage
runtime: python
online:
  runner: ./runners/online.py:OnlineTriageRunner
  judges:
    - name: triage_llm_judge
      path: ./judges/triage_llm_judge.py:TriageLLMJudge

The runner's collect_cases returns what happened in a time window, as cases with their run_results already filled in. In the Sentry triage example, the agent saves each conversation to a local folder, standing in for production traces:

View on GitHubevals/triage/runners/online.py
from eac import Case, OnlineRunner, Window


class OnlineTriageRunner(OnlineRunner):

    def collect_cases(self, window: Window) -> list[Case]:
        conversations = recent_conversations(window.since, window.until)
        sampled = [c for c in conversations if window.samples(c["conversation_id"])]

        cases = []
        for c in sampled[: window.limit]:
            cases.append(
                Case(
                    name=c["conversation_id"],
                    input={"alert": c["alert"]},
                    run_results=c["answer"],
                    conversation_id=c["conversation_id"],  # lets judges fetch the agent trace
                )
            )
        return cases

The judge is the same one the offline cases use. It reads the agent's trace rather than an expected output, so it works on production runs too. See Judges.

Run it

eac online run --judge triage_llm_judge --since 24h

Production runs don't have an expected output, so judges that compare against one should return None. Online runs report average scores and never fail.

--args reach the runner as self.args, like offline. To use a judge in several datasets, point each dataset.yml at the same code.

To judge only a share of production, see Sampling.