Skip to main content

Before you begin

In order to evaluate, you must first have your ground truth dataset defined. To create your dataset, see Creating evaluation dataset.
Note:
  • Starting from version 1.12.0, this command now works with SaaS and on-premises offerings of watsonx Orchestrate. You can now run your evaluations in remote instances, instead of just using the watsonx Orchestrate Developer Edition.
  • If you’re using Inference Frameworks Manager (IFM) in an on-premises environment, you likely need to set the MODEL_OVERRIDE environment variable to enable the evaluation feature. For more information, see Evaluations on CPD.

Evaluating

The evaluate command lets you test and benchmark your agents using ground truth datasets. These datasets can be created automatically (with the generate or record commands) or prepared manually. The evaluation process measures your agent’s performance against the expected outcomes defined in these datasets.
  • The system simulates user interactions described in your datasets.
  • The agent’s responses are compared step-by-step with the ground truth dataset.
  • Any mistakes or deviations from the expected trajectory are logged.
  • At the end, a summary table of metrics is displayed and saved as a CSV.

Prerequisites

  1. You must import all agents and tools before running the evaluation.
  2. Ensure that you have set up the environment properly. For more information, see Configuring your environments.
  3. Configure a .env file to provide authentication details to the evaluation framework. Most of the commands support a --env (-e) command, so you can pass your .env file. See an example of a .env file:
    .env
    In on-premises environments you can also use the following environment variables:
    .env
    For more information, see the on-premises ADK examples.

Model used for evaluation

New in 2.20.0
By default, the evaluate command uses a gpt-oss-120b model to simulate users and to judge results. The provider and default model depend on your environment: To use a different model, set the EVAL_MODEL environment variable:
.env
The model_proxy provider is no longer selected automatically. If you previously relied on WO_INSTANCE and WO_API_KEY to choose it, the command now uses the gateway provider.

Agentops evaluation

New in 2.1.0
The evaluate command supports evaluation with Langfuse.
  1. To enable it, you must set the following environment variable:
    Other evaluation commands might not work properly with this environment variable set to FALSE. For example, if you use the analyze command, the outputs will not be automatically created.To safely disable this behavior, and make other evaluation commands work normally, you must set the environment variable value to TRUE:
  2. Before you run the evaluation, you must start the watsonx Orchestrate Developer Edition server with Langfuse:
    BASH
    After the server starts, you can access your local Langfuse dashboard at http://localhost:3010. Your Langfuse username and password will appear in the terminal. Use these credentials to log in to the dashboard. To learn more about the watsonx Orchestrate Developer Edition, see Installing watsonx Orchestrate Developer Edition. To learn more about Langfuse, see Monitoring your LLMs with Langfuse.
You can proceed to run the evaluate command. The results of the evaluation will appear in the Langfuse dashboard.

evaluate

To evaluate your agent, use:
BASH
You can also run evaluation using a YAML config file, giving you full control over all parameters.
BASH
Sample config file:
  • Evaluations can be repeated multiple times to assess performance robustness. This is configured by setting the n_runs parameter in the YAML configuration file. If n_runs is not specified, the evaluation defaults to a single run.
  • Tool call arguments are automatically normalized during evaluation. This ensures that minor differences in formatting — such as capitalization, key order, value types, or list order — no longer result in mismatches.
For SaaS and On-premises only:
On tenant_name, use the name of the environment that you used when you added the environment with the orchestrate env add command.
string
Path to the configuration file with details about the datasets and the output directory.
list[string]
Comma-separated list of test files or directories containing ground truth datasets.
string
Directory where evaluation results will be saved.
string
Path to the .env file that overrides the default environment.
The following fields can be used in your config.yaml file for the evaluate command.

Required Fields

List[str]
Paths to test files/directories to evaluate
str
Directory where evaluation results will be stored

Optional Fields

Authentication & Provider

AuthConfig
Authentication configuration
  • url (str) - Service URL
  • tenant_name (str) - Tenant/environment name (default: “local”)
  • token (str) - Authentication token
ProviderConfig
LLM provider configuration
  • provider (str) - Provider type: “gateway” or “watsonx” (default: “gateway”)
  • model_id (str) - Model ID to use
  • embedding_model_id (str) - Embedding model
  • vendor (str) - Vendor name (default: “ibm”)
  • referenceless_eval (bool) - Enable referenceless evaluation (default: false)
  • provider_params (dict) - Additional provider parameters

LLM User Simulation

EvaluationConfig
New in 2.20.0
Evaluation (judge) model configuration
  • provider_config (ProviderConfig) - Provider and model used to evaluate results. By default, this matches the model selected in Model used for evaluation.
LLMUserConfig
User simulator configuration. By default, the evaluate command uses version: v2 with enable_structured_output: true.
  • model_id (str) - Model for user simulation
  • provider_config (ProviderConfig) - Provider and model used for user simulation
  • prompt_config (str) - Path to prompt template
  • user_response_style (List[str]) - User response style guidelines
  • personas (List[str]) - User personas to simulate
  • enable_structured_output (bool) - Enable structured output (default: false)
  • version (str) - Version: “v1” or “v2” (default: “v1”; the evaluate command sets “v2” unless you override it)

Evaluation Configuration

int
Maximum conversation turns (default: 20)
int
Number of evaluation runs (default: 1)
int
Number of parallel workers (default: 2)
bool
Skip legacy evaluation (default: false). The evaluate command no longer sets this field.
bool
Skip existing results (default: false)
bool
Run in annotation mode (default: false)
str
Model for evaluation

Metrics & Operators

List[str]
Metrics to compute. The evaluate command computes the following metrics by default: JourneySuccessMetric, JourneyCompletion, ToolCalling, OrchestrateAgentRoutingAccuracy, StepMetrics, AgentResponseTime, KnowledgeBaseAnswerRelevancy, DocumentRetrievalQuality, KnowledgeBaseFaithfulness, RetrievalConfidence, and ToolParameterF1.
dict
Configuration for each metric operator. By default, JourneySuccessMetric and JourneyCompletion run with is_strict: false.
CustomMetricsConfig
Custom metrics configuration
  • paths (List[str]) - Paths to custom metric modules
  • llmaaj_config (ProviderConfig) - LLM-as-a-judge configuration

Text Matching & Validation

float
Similarity threshold (default: 0.8)
bool
Enable fuzzy matching (default: false)
bool
Strict validation mode (default: true)
Enable recursive search (default: false)
TextMatchConfig
Text matching configuration
  • semantic_template_path (str) - Semantic matching template
  • keyword_template_path (str) - Keyword matching template

Other Options

str
Version of the WXO lite SDK
List[str]
Tags for filtering/organizing tests
List[str]
Keywords to identify errors
bool
Enable verbose logging (default: true)
bool
Enable manual user input (default: false)
str
Collection name (default: “default-collection”)
bool
Enable Langfuse integration (default: false)
ExtractorsConfig
Extractors configuration
  • paths (List[str]) - Paths to extractor modules
After any evaluation run, a results/config.yml file is generated, capturing all used parameters. This can serve as a template for future runs. If you enabled the Agentops evaluation, the results will guide you to your Langfuse dashboard:
And the results will appear in your Langfuse dashboard: Example langfuse dashboard

Understanding the Summary Metrics Table

At the end of the evaluation, you will see a summary similar to the following one: Summary metrics table This table is also saved as a CSV file at results/summary_metrics.csv.

Metrics explained

Agent with Knowledge Summary Metrics Agent Metrics
If the value is equal to 1.0 or True, the table omits the result.

Per-Dataset Detailed Results

In the results/messages directory, you will find detailed analysis files for each dataset. For single-run evaluations, the following files are generated:
  • <DATASET>.messages.json: Raw messages exchanged during simulation.
  • <DATASET>.messages.analyze.json: Annotated analysis, including mistakes and step-by-step comparison to ground truth.
  • <DATASET>.metrics.json: Metrics summary for that specific test case.
For multi-run evaluations (when the n_runs parameter is set to more than 1), separate files are generated for each run using a run-indexed naming pattern:
  • <DATASET>.run<runN>.messages.json
  • <DATASET>.run<runN>.messages.analyze.json
  • <DATASET>.run<runN>.metrics.json
Here, <runN> represents the run number (for example, run1, run2, and so on).
  • Always verify that your API credentials are set before running evaluate.
  • Review per-dataset result files for deep insight into agent performance and error patterns.
  • Tune config parameters as needed for different evaluation scenarios.
  • Use summary metrics for quick benchmarking, but always check details for full understanding.
Note:You evaluate an external agent’s performance the same way as a native agent. When you review the final summary table from the evaluate command, focus only on the Text Match and Journey Success columns. Native tool calls aren’t involved, so no other columns apply.