Testing in the Playground
Testing a prompt in the playground
Use the Playground to test prompt variations quickly.- Load a previous prompt into the Playground.
- Apply different variables to the prompt.
- Run the prompt.
- Examine the results to validate the performance of the prompt.
Testing a prompt over a dataset
Test a prompt over a golden dataset to run the prompt on N examples at the same time.- Create a dataset. In each example, put the prompt variables in the inputs and the ideal LLM answer in the outputs.
- Run the prompt over the dataset in the Playground.
- Compare the generated answers with the golden answers.
Testing prompt variations side-by-side
The Playground can compare multiple prompt variants side by side.- Click + Compare to add a new variant.
- Run the variants with Span Replay or over a Dataset.

Testing multiple prompts simultaneously

