Why use Remote Dataset Runs?
- Full flexibility to use your own application logic
- Use custom scoring functions to evaluate the outputs
- Run multiple experiments on the same dataset in parallel
- Easy to integrate with your existing evaluation infrastructure
Setup & Run via SDK
1) Instrument your application
First we create our application runner helper function. This function will be called for every dataset item in the next step. If you use ABV for production observability, you do not need to change your application code.For a dataset run, it is important that your application creates ABV traces for each execution so they can be linked to the dataset item. Please refer to the integrations page for details on how to instrument the framework you are using.
Python SDK
Install packagesapp.py
JS/TS SDK
Please make sure you have the JS/TS SDK set up for tracing of your application. If you use ABV for observability, this is the same setup. Install packages.env file in your project root and a package like dotenv to load the variables.
.env
instrumentation.ts file that initializes the OpenTelemetry NodeSDK and registers the ABVSpanProcessor.
instrumentation.ts
instrumentation.ts file to use dotenv package to load the variables.
Additional parameters are provided to get trace visible in the UI immediately.
instrumentation.ts
instrumentation.ts file at the top of your application.
index.ts
app.ts
2) Run experiment on dataset
When running an experiment on a dataset, the application that shall be tested is executed for each item in the dataset. The execution trace is then linked to the dataset item. This allows you to compare different runs of the same application on the same dataset. Each experiment is identified by arun_name.
Python SDK
You may then execute that LLM-app for each dataset item to create a dataset run: execute_dataset.pyJS/TS SDK
3) Optionally: Run Evals in ABV
In the code above, we show how to add scores to the dataset run from your experiment code. Alternatively, you can run evals in ABV. This is useful if you want to use the LLM-as-a-Judge feature to evaluate the outputs of the dataset runs. Set up LLM-as-a-judge4) Compare dataset runs
After each experiment run on a dataset, you can check the aggregated score in the dataset runs table and compare results side-by-side.Optional: Trigger Remote Dataset Runs via UI
When setting up Remote Dataset Runs via the SDK, it can be useful to expose a trigger in the ABV UI that helps you trigger the experiment runs. You need to set up a webhook to receive the trigger request from ABV.1) Navigate to the dataset
- Navigate to
Your Project>Datasets - Click on the dataset you want to set up a remote experiment trigger for
2) Open the setup page
Click onStart Experiment to open the setup page
Click on ⚡ below Custom Experiment
3) Configure the webhook
Enter the URL of your external evaluation service that will receive the webhook when experiments are triggered. Specify a default config that will be sent to your webhook. Users can modify this when triggering experiments.4) Trigger experiments
Once configured, team members can trigger remote experiments via theRun button under the Custom Experiment option. ABV will send the dataset metadata (ID and name) along with any custom configuration to your webhook.
Typical workflow: Your webhook receives the request, fetches the dataset from ABV, runs your application against the dataset items, evaluates the results, and ingests the scores back into ABV as a new Dataset Run.