Skip to main content
While Galtea can automatically generate tests from a knowledge file, you can also create custom Tests by providing your own set of Test Cases.

Creating Tests with the SDK

Tests can be generated automatically by Galtea providing a knowledge file via the SDK or the dashboard.
The Galtea SDK provides methods to create both Quality Tests and Red Teaming Tests.
If you have a prepared test file in CSV format, you can upload it directly.
# Upload a pre-existing test file to the Galtea Platform
test = galtea.tests.create(
    name="financial-qa-test-" + run_identifier,
    type="QUALITY",
    product_id=product_id,
    test_file_path="path/to/quality_test.csv",
)
The test file must follow the structure specified for:If the file is not correctly formatted, test cases will not be created automatically, but you can still add them manually.
New Test Type: Use type="SCENARIOS" to create conversation simulation tests that enable multi-turn dialogue evaluation with synthetic users. See the Conversation Simulator Tutorial for complete examples.

Next Steps