Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.galtea.ai/llms.txt

Use this file to discover all available pages before exploring further.

The Test Service in the Galtea SDK allows you to manage tests for evaluating your products. This Service is exposed by the galtea.tests object.
Remember that we will be using the galtea object. More information here.

Quick Example

First, initialize the Galtea SDK:
galtea = Galtea(api_key="YOUR_API_KEY")
Create a test:
test = galtea.tests.create(
    name=test_name,
    type="ACCURACY",
    product_id=product_id,
    ground_truth_file_path="path/to/knowledge.md",
    language="english",
    max_test_cases=5,
)
List tests for a product:
tests = galtea.tests.list(product_id=product_id, limit=10)
Get a test by ID:
test = galtea.tests.get(test_id=test_id)

Service Methods

Test

A set of test cases for evaluating product performance