Skip to main content
This recipe’s ExternalApplication helper requires scale-gp==0.1.0a59; see Quick Start. Set SGP_API_KEY and SGP_ACCOUNT_ID. For a private deployment, also set SGP_CLIENT_BASE_URL to its API base URL; otherwise SGPClient() uses the production API. Set SGP_APPLICATION_SPEC_ID and SGP_APPLICATION_VARIANT_ID to an existing application specification and its OFFLINE variant, which receives the locally generated outputs in this recipe.
Set up the SGP Client for communication with the API:
Build and initialize a multiturn dataset with predefined messages:
Define the multiturn application with a simulated conversation for each dataset prompt, then initialize it. Each dataset prompt needs a matching entry in conversation_data; otherwise the callback raises an error.
Prepare questions for evaluating the multiturn conversation:
Configure and initiate the evaluation process: