Skip to main content
Import and configure the evaluator of your choice.
example.py

create_config methods

The SDK provides several methods to create a configuration object:
Each method takes in a list of configuration options.

Options

Our evaluators are validated against a particular provider and model during development. Evaluators default to that same provider and model at runtime – for example, Grade Level Appropriateness will always use Google Gemini out of the box, because it was validated against Google Gemini during development.As a result, each evaluator requires specific API keys when being configured (e.g., google_llm_provider_config, openai_llm_provider_config, etc.).We recommend using the validated provider and model, but the SDK does allow you to override that default in your per-instance settings or per-call settings. Please note that your mileage may vary if you use a different model.

Logging

Customize how your evaluator logs information.

Log level

Control logging verbosity:

Custom logger

You can configure your evaluator with a custom logger:

Per-instance settings

Override the default for every call on a particular evaluator instance using default_evaluation_settings. Per-call settings will override per-instance settings for a single run.

Per-call settings

Override models, temperatures, or other configurable evaluator settings for a single run using evaluation_settings:
When omitted, the evaluator uses a deep copy of its default settings.

Quickstart

Install the SDK and run your first evaluator.

Outputs

Understand evaluator output fields and types.

Error handling

Handle configuration, validation, and API errors.