Running an evaluation

Start an evaluation run in Cloudera Agent Studio that scores the traces of an agent with one or more evaluators.

An evaluation run applies evaluators to traces and returns a score or a label, with an explanation, for each trace. You start a run from the New run page, which you open from the Evaluations page.

On the New run page, you select the following settings:

Table 1. Settings on the New run page
Section What you select
Environment Authoring (agents in your authoring workspace) or Deployed (production agents).
Agent The agent whose traces are scored. For a deployed agent, each entry shows the agent name and the version.
Source Traces, or Test set. Test set is available only for authoring agents.
Evaluators The deterministic evaluators and the LLM-as-a-Judge evaluators that score the traces.
LLM-as-a-Judge configuration The model that the LLM-as-a-Judge evaluators use.
Traces How many traces of a deployed agent to score, and from which time window.
  • Make sure that your user has a role that can run evaluations for the environment of the agent. Builders run authoring evaluations on agents that they own. Observers run production evaluations. Admins run authoring evaluations on all agents, but cannot run production evaluations. If your role cannot run evaluations for an environment, the option for that environment is unavailable. See User roles and capabilities.
  • Make sure that the agent has traces in the environment that you want to evaluate. See Managing Observability.
  • To score an authoring agent, start an authoring session with the agent. If you have no authoring session, the Agent section shows the message Start an authoring session to evaluate your agent. and the Open authoring link.
  • To use an LLM-as-a-Judge evaluator, make sure that a judge model is available through the deployment or through a registered LLM endpoint. See Managing LLM endpoints.
  • To score a test set, create the test set and allow the agent to use it. See Creating a test set.
To run an evaluation:
  1. Launch the Cloudera Agent Studio console.
  2. In the left navigation pane, click Evaluations.
    The Runs tab opens. The tab shows the Runs, Running, Failed, and Baselines counters, and the table of runs. A new instance shows the message No evaluation runs recorded yet.
  3. Click New run.
    The New run page opens.
  4. In the Environment section, click Authoring or Deployed.
    The page opens with Authoring selected.
  5. In the Agent section, click the Agent list, and then click the agent that you want to evaluate.
    • For Authoring, the list shows the agents in your authoring workspace. To evaluate a published agent, copy the agent to your drafts in the agent catalog by choosing Edit from its Actions menu, and then start an authoring session with the agent.
    • For Deployed, the list shows the deployed agents, for example blob-company | v1.0.0. To clear the selection, click Clear at the top of the list.
  6. In Source, select the traces to score.
    • For a deployed agent, Traces is the only available source. The Test set option shows the message Not available for deployed agents.
    • For an authoring agent, click Traces to score traces from the agent, or click Test set to replay a test set on the agent. If you click Test set, go to step 9.
    For a deployed agent, Agent Studio shows the message Checking for deployed traces in the last 7 days… while it looks for traces. If the time window has no traces, a warning states that no deployed traces are found for the agent, and Start run stays unavailable. Widen the time window in step 11, or invoke the agent so that it produces traces.
  7. In the Evaluators section, select the evaluators to apply.
    Each evaluator returns a score or a label, with an explanation. The evaluators are in two groups.
    Table 2. Platform evaluators on the New run page
    Group Evaluator Description Selected by default
    Platform · Deterministic Error Rate Measure span and tool error signals Yes
    Loop Detection Detect repeated tool-call loops Yes
    Task Completion Whether the run finished without error and returned a final response Yes
    Tool Call Count Count tool calls Yes
    Platform · LLM-as-a-Judge Answer Relevancy Whether the response is on-topic and responsive No
    Faithfulness Groundedness of the final response in trace context No
    Instruction Following Whether explicit format and policy constraints were followed No
    Reasoning Quality Soundness, coherence, and completeness of reasoning No
    Tool Calling Accuracy Whether tool calls match user intent and tool schema No
    Toxicity Whether the final response is free of toxic or unsafe content No
    The description of each LLM-as-a-Judge evaluator ends with Needs judge model. If custom evaluators are published, they also appear in this section. To clear an evaluator, clear its check box.
    If no judge model access is configured for the deployment, the Evaluators section shows the message LLM evaluators disabled. In this case, you can still select the deterministic evaluators.
  8. If you selected an LLM-as-a-Judge evaluator, configure the LLM-as-a-Judge configuration section.
    1. In Model source, click the list, and then click the model for the judge.
      The list shows the discovered Cloudera AI models, the registered LLM endpoints, and the deployment model grant. Each entry has the format <endpoint> · <model>, for example azure · gpt-51. Entries from the AI Gateway are listed under a heading that has the format AI Gateway · <name>.
    2. Optional: If the Provider list or the Model field appears, set the value.
      • Provider: Click OpenAI-compatible or Anthropic. The field appears for the deployment model grant and for an AI Gateway endpoint.
      • Model: Enter the model ID. For the deployment model grant, the value overrides the model of the grant. For the selected endpoint, the value is the model ID of the endpoint.
    3. Click Test.
      A success icon or an error icon appears next to the button, and a line of text shows the model, the provider, and the latency in milliseconds, or the error.
  9. For an authoring agent with the Test set source, configure the test set.
    1. In Test set, click the test set.
      If the agent has no test sets, the page displays the message No test sets for this agent. Import a test set on the Test sets tab, and allow the agent to use it.
    2. In Version, click the version of the test set.
    3. In Execution, click Reuse prior traces or Re-run every case.
      • Reuse prior traces scores the traces of a prior run. You can change the evaluators without calling the agent. In Prior run, click the run to reuse. The default is the newest run with full trace coverage. This option is unavailable if no prior run exists.
      • Re-run every case replays every test case on the agent. In Agent model, click the registered LLM endpoint that runs each test case. The Permission list shows Auto and is unavailable.
  10. For an authoring agent with the Traces source, in the Traces section, select the traces to score.
    The table lists the authoring traces of the agent with the columns Started, Input, Output, Status, Session, and Trace ID.
    1. Optional: To narrow the list, set Time window to Last 24 hours, Last 7 days, or Last 30 days, and set Status to All statuses, OK, In progress, or Error.
    2. Select the check box of each trace to score. To select every loaded trace that matches the filters, click Select all loaded matching. To clear the selection, click Clear selection.
    3. Optional: To load more traces, click Load more.
    If the table is empty, test the agent in the authoring harness before you start a trace evaluation.
  11. For a deployed agent, in the Traces section, set how many traces to score.
    The description of the section shows the number of traces in the time window, and the number of traces that the run scores.
    1. In Sample by, click Sample rate or Fixed count.
    2. Set the value.
      • Sample rate (%): Enter a percentage from 0.1 to 100. The default is 10. The server rounds down when it applies the rate.
      • Trace count: Enter a whole number from 1 to 500. The default is 10. The run scores up to the number of traces that are available in the time window.
    3. In Time window, click Last 24 hours, Last 7 days, or Last 30 days. The default is Last 7 days.
  12. Click Start run.
    The button label changes to Starting… while the request runs. To leave the page without starting a run, click Cancel, or click the Evaluations link at the top of the page.
    If a required setting is missing, or if the start fails, a Select at least one evaluator, Select at least one authoring trace, or Judge model access is required for the selected evaluators message is displayed.
    When the request succeeds, the message Evaluation run started appears, and the Runs tab opens.
To cancel a run:
  1. Launch the Cloudera Agent Studio console.
  2. In the left navigation pane, click Evaluations.
    The Runs tab opens.
  3. Optional: To find the run, enter text in Search runs, or filter the table by All, Deployed, or Authoring, by Agent, and by Status.
  4. In the row of a run that has the status Queued or Running, open the actions menu of the row, and then click Cancel run.
    You can also open the scorecard of the run, and then click Cancel run.
    The dialog Cancel this run? opens and displays the message Waiting runs will not start; a running run stops.
  5. In the dialog, click Cancel run.
    To keep the run, click Keep run.
    The message Run cancelled. appears. If the run finished before you cancelled it, the message This run already finished. appears. If you do not have access to cancel the run, the message states that you can reach out to the person who started the run or to your Administrator.

The run appears in the table on the Runs tab. The Status column shows Queued while the run waits to start, Running while Agent Studio scores the traces, and then Success or Failed. To update the table, click Refresh. You can filter the table by Success, Running, Queued, or Failed.

If the run starts with a combination of settings that the server rejects, Agent Studio displays a message that describes the cause.

A run that you cancel displays the message This run was cancelled.

Each trace in a run opens in MLflow.