Tests
Overview
In H2O Eval Studio, a test is a collection of documents (that is, a corpus) along with prompts that are relevant to the corpus, ground truth, constraints, and other parameters that are used to evaluate a RAG or LLM model. This page describes how to import a Test Suite (a collection of Tests) or add a test and new test cases manually.
Import Test Suite
The following steps describe how to import a Test Suite in H2O EvalStudio.
In the main navigation, click Tests.
Click the Import Test Suite button.
Enter a name prefix for the tests in the Test Suite.
Enter a description of the tests in the Test Suite.
Enter the Test Suite JSON or URL. The following is an example of how the Test Suite JSON should be formatted:
{
"name": "Sample Test Suite",
"description": "This is a sample test suite.",
"tests": [
{
"documents": [
],
"test_cases": [
{
"prompt": "Sample prompt 1.",
"categories": [
"privacy", "security"
],
"constraints": [
],
"expected_output": "Expected output for sample prompt 1."
},
{
"prompt": "Sample prompt 2.",
"categories": [
"privacy", "security"
],
"constraints": [
],
"expected_output": "Expected output for sample prompt 2."
},
{
"prompt": "Sample prompt 3.",
"categories": [
"privacy", "security"
],
"constraints": [
],
"expected_output": "Expected output for sample prompt 3."
}
]
}
]
}Click the Import button.
Add new test
The following steps describe how to add a new test manually:
Click Test in the main navigation.
Click the New Test button.
Enter a name for the test.
Enter a description of the test.
Select one or more documents to associate with the test.
Click the Create button.
Add new test case
The following steps describe how to add a new test case to a test.
In the main navigation, click Tests.
In the list of tests on the Tests page, click the name of the test you want to add a test case to.
On the Test cases page, click the New test case button.
Enter a prompt.
Enter the expected answer to the prompt entered in the preceding step.
(Optional) Enter terms or phrases that the answer to the prompt is expected to have. Click the Add button after entering each term or phrase.
Click the Create button.
- Submit and view feedback for this page
- Send feedback about H2O Eval Studio to cloud-feedback@h2o.ai