import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const publishEvaluationDatasetDraftResponse =
await client.evaluationDatasets.evaluationDatasetVersions.publish(
'evaluation_dataset_id',
'evaluation_dataset_version_id',
);
console.log(publishEvaluationDatasetDraftResponse.autogenerated_draft_test_cases);{
"success": true,
"autogenerated_draft_test_cases": [
{
"autogenerated_draft_test_case_id": "<string>",
"success": true,
"failed_chunks": [
{
"chunk_text": "<string>",
"artifact_id": "<string>",
"artifact_name": "<string>",
"artifact_content_modification_identifier": "<string>"
}
]
}
]
}import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const publishEvaluationDatasetDraftResponse =
await client.evaluationDatasets.evaluationDatasetVersions.publish(
'evaluation_dataset_id',
'evaluation_dataset_version_id',
);
console.log(publishEvaluationDatasetDraftResponse.autogenerated_draft_test_cases);{
"success": true,
"autogenerated_draft_test_cases": [
{
"autogenerated_draft_test_case_id": "<string>",
"success": true,
"failed_chunks": [
{
"chunk_text": "<string>",
"artifact_id": "<string>",
"artifact_name": "<string>",
"artifact_content_modification_identifier": "<string>"
}
]
}
]
}Force approve an evaluation dataset
Successful Response
Whether or not the evaluation dataset was successfully published
List of responses for each of the input draft test cases.
Show child attributes
Draft test_case_id that has chunk_ids missing
Whether or not the test case was successfully approved
Show child attributes
Text of chunk_id that is missing
Artifact ID of the missing chunk
Artifact Name of the missing chunk
Artifact Content Modification Identifier of the missing chunk