Skip to content

Testing, Monitoring, and Performance

Use the debugger to diagnose individual paths, evaluation sets to compare answer quality, and monitoring to track operational behavior. Source-controlled regression tests complement these workflows through ATLAS.

Prepare an evaluation set

Open Monitoring and Evaluation > Manage Evaluations, then create a set with a name, code, description, and target agent team.

Configuration Purpose
Sequential Run questions in their defined order when later questions depend on earlier context.
Random Vary question order for independent scenarios.
Document Tool Evaluation Include retrieval-related quality metrics.
Questions Add inputs and expected answers manually, from Debug Chat, or through CSV. CSV columns are Questions and Expected Answers.
Metrics Define scoring conditions and thresholds.

From the set's Actions menu, select Initiate Evaluation Run and choose the agent-team version. In View Run Results, use Response Performance for expected/actual answers and traces. Correctness includes model scoring and a human-score column. Expected answers must be verified against source data.

Measure quality and resource use

Metric Interpretation
Correctness How well responses meet the expected answer; evaluation uses a 0–1 score.
Groundedness Whether an answer is supported by retrieved evidence.
Answer relevance Whether the response addresses the request.
Context relevance Whether retrieval supplied useful evidence.
P50 / P99 latency Typical and tail response time.
Input / output / total tokens Model context and response consumption.

Run Aggregate AI Agent Usage and Metrics under Tools > Scheduled Processes to populate aggregated dashboards. Aggregation can lag behind execution; dashboard values are not a real-time trace.

Diagnose a session

Select an agent, then a session, and review its timeline. Check tool calls, node durations, statuses, and the first failed or incorrect step. Compare session and turn counts with error counts and rates.

End-user runs can expose operational metrics without disclosing conversational inputs and outputs; debug runs provide more detailed inspection. A missing payload in an end-user trace does not by itself indicate an execution failure. Use permitted session/trace identifiers to locate the run and respect monitoring-access controls.

Improve performance without losing quality

Establish correctness first, then optimize latency and token use. Trace the largest bottleneck and change one factor at a time:

  • Remove duplicate prompt instructions and unnecessary conversation history.
  • Return only required business-object fields and relevant document passages.
  • Reuse user-session context instead of fetching it on every turn.
  • Use a capable lighter model for simple tasks; reserve deeper reasoning for difficult steps.
  • Move fixed transformations and validation to Code or Logic nodes.
  • Parallelize independent reads and analysis; serialize conflicting writes.
  • Add summarization only when it meaningfully reduces long-running context.

Rerun the same evaluation cases after each change. Retain the improvement only when answer quality remains acceptable. Team and tool counts are design heuristics, not universal platform limits.