import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const evaluationConfig = await client.evaluationConfigs.create({
account_id: 'account_id',
question_set_id: 'question_set_id',
});
console.log(evaluationConfig.id);
{
"evaluation_type": "studio",
"question_set_id": "<string>",
"studio_project_id": "<string>",
"auto_evaluation_model": "gpt-4-32k-0613",
"auto_evaluation_parameters": {
"temperature": 1,
"batch_size": 13
},
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user"
}
Creates a evaluation config
This API can be used to create a evaluation config. To use this API, review the request schema and pass in all fields that are required to create a evaluation config.
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const evaluationConfig = await client.evaluationConfigs.create({
account_id: 'account_id',
question_set_id: 'question_set_id',
});
console.log(evaluationConfig.id);
{
"evaluation_type": "studio",
"question_set_id": "<string>",
"studio_project_id": "<string>",
"auto_evaluation_model": "gpt-4-32k-0613",
"auto_evaluation_parameters": {
"temperature": 1,
"batch_size": 13
},
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user"
}
Successful Response
The response is of type object
.