evaluation client that lets you:
- Manage datasets - Create datasets and add test items
- Run test suites - Execute tasks against datasets with automatic tracing
- Apply evaluators - Score outputs using built-in or custom evaluators
- Fetch results - Retrieve detailed run results programmatically
Netra.evaluation to manage datasets, run test suites, fetch results, and programmatically evaluate your AI applications.
Getting Started
Theevaluation client is available on the main Netra entry point after initialization.
create_dataset
Create an empty dataset that can hold test items for evaluation runs.Parameters
Response: CreateDatasetResponse
TurnType
TurnType
add_dataset_item
Add a single test item to an existing dataset.Parameters
DatasetItem
Response: AddDatasetItemResponse
get_all_datasets
Fetch all datasets, optionally filtered by a specific tag.Parameters
Response: GetAllDatasetsResponse
CreateDatasetResponse
get_dataset
Retrieve a dataset and all its items by ID.Parameters
Response: GetDatasetItemsResponse
DatasetRecord
run_test_suite
Execute a test suite against a dataset, running your task function on each item and optionally applying evaluators.Parameters
Response
Item Result
get_run_results
Fetch detailed results for a completed test run by its run ID. Use this afterrun_test_suite to retrieve evaluation scores, item-level outcomes, and other run metadata from the backend.
Parameters
Response
Returns the JSON response from the backend containing the full run results, including evaluation scores and item-level details. ReturnsNone if the run_id is empty or the request fails.
The top-level response wraps the run data:
RunResult
TestRunSummary
Example Response
Example Response
When to Use Which API
Dataset Management
create_dataset / add_dataset_item / get_all_datasets / get_datasetBuild and manage test datasets programmatically. Use for CI/CD pipelines or when generating test cases from production data.Test Execution
run_test_suiteExecute your AI task against a dataset with automatic tracing and evaluation. Use for regression testing and model comparisons.Results Retrieval
get_run_resultsFetch detailed results for a completed run, including evaluation scores and item-level outcomes. Use for post-run analysis and CI/CD assertions.Advanced Workflows
create_runCreate runs without immediate execution. Use when you need custom orchestration or want to manage run lifecycle separately.Evaluators
Evaluator IDs or ConfigsPass evaluator IDs to
run_test_suite to automatically score outputs. Configure custom evaluators in the Netra dashboard.Complete Example
Next Steps
- Dashboard Query - Query dashboard metrics
- Usage Utilities - Query traces and spans
- Evaluators - Configure custom evaluators
- Test Runs - View and analyze test run results
