Skip to main content

Overview

ValiqorEvalClient runs quality evaluations on your AI application’s inputs and outputs. It supports both synchronous and asynchronous evaluation, heuristic and LLM-based metrics, trace-based evaluation, and result analytics. Access it via the unified client:
Or use it standalone:
Supports context manager protocol: with ValiqorEvalClient(...) as ec:

Constructor


Core Methods

evaluate()

Run a synchronous evaluation on a dataset. Auto-polls if the backend returns an async response.
Returns: EvaluationResult

evaluate_trace()

Evaluate a trace dict (not a trace_id). The client parses messages and spans from the trace to build the evaluation dataset.

evaluate_async()

Start an asynchronous evaluation. Always returns a JobHandle regardless of dataset size.
Returns: JobHandle

Result Retrieval

get_run()

Retrieve an evaluation result by run ID.

get_run_result()

Alias for get_run(). Fetch a completed evaluation result.

get_run_metrics()

Get per-metric scores for a run.

get_run_items()

Get paginated per-item evaluation details.

get_item_detail()

Get full detail for a single evaluated item including per-metric scores and explanations.

Analytics

Get evaluation score trends over time for a project.

compare_runs()

Compare scores across multiple evaluation runs.

Project & Metric Management

list_projects()

create_project()

list_metric_templates()

List all available metric templates.

list_project_metrics()

List metrics configured for a project.

add_project_metric()

Add a metric to a project’s configuration.

get_project_stats()


Job Management

get_job_status()

Check the status of an async evaluation job.

cancel_job()

Cancel a running async job.

Available Metrics

Heuristic Metrics

LLM-Based Metrics