Skip to main content
Save and load EvaluationScenario, TestSet, and EvaluationTestResult.

Client

To track all our evaluation result we use the trusttest.client. Currently, we support two client types:
  • file-system: Save the results in the local filesystem.
  • neuraltrust: Save the results in the remote NeuralTrust server.
To define the client:
For the neuraltrust client, target_id is required so saved scenarios, test sets, and runs are scoped to the right NeuralTrust target. You can pass it directly or load it from NEURALTRUST_TARGET_ID.

Save a scenario results

First we need to define our scenario, run the evaluation and get the results.
Then we can save the evaluation scenario with just one line:
To save the scenario TestSet:
Finally, to save the EvaluationTestResult:
Got to your NeuralTrust dashboard to see the results. Or if you are using the file-system client, you can see the results in the trusttest_db folder.

Load a scenario results

We can also load any scenario, test set or evaluation test result from the client. And re-run the evaluation, clone it, etc.

Complete example