Tutorials & Guides
Test generation with Prompt
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 datasetexamples
: A list of example items that will be used to guide the generationlanguage
: The language of the generated itemsnum_items
: The number of items to generate
Configure the Probe
Once we have our dataset builder, we can create a probe to evaluate our model.
Configure the Evaluation Scenario
Next, we’ll set up an evaluation scenario to test our model.
Run the Evaluation
Finally, we can run the evaluation and display the results.