Skip to main content
In this guide we will see how to create a dataset from a prompt and evaluate it using trusttest.

Dataset Creation

The first step is to create a dataset using the SinglePromptDatasetBuilder. This builder allows you to generate a dataset based on a prompt and examples.
The SinglePromptDatasetBuilder takes several parameters:
  • instructions: The prompt that will be used to generate the dataset
  • examples: A list of example items that will be used to guide the generation
  • language: The language of the generated items
  • num_items: The number of items to generate

Configure the Probe

Once we have our dataset builder, we can create a probe to evaluate our target.

Configure the Evaluation Scenario

Next, we’ll set up an evaluation scenario to test our target.

Run the Evaluation

Finally, we can run the evaluation and display the results.

Complete Example