We can use brackets to run our prompt on multiple test cases, all in one go! For example, if we have a set of test cases like this:
{{topic}} |
---|
song |
dance |
then the prompt will run on both test cases, like this:
Write me a poem about song.
Write me a poem about dance.
Try it yourself. In the Prompt Editor, add a variable called "action"within curly brackets and hit "Run cases" in the Test cases section. This will execute the prompt on our whole set of compliance test cases.
Ready to deepen your understanding? Click "Next" to continue.
Waiting...
{{action}} | Correct Answer | Model Response |
---|---|---|
false | ||
false | ||
true | ||
true |