create_evaluation_job
async
¶
create_evaluation_job(
job_name: EvaluationJobName,
role_arn: RoleArn,
evaluation_config: EvaluationConfig,
inference_config: EvaluationInferenceConfig,
output_data_config: EvaluationOutputDataConfig,
*,
config_overrides: Optional[AsyncBedrockClientConfig] = None,
job_description: Optional[EvaluationJobDescription] = None,
client_request_token: Optional[IdempotencyToken] = None,
customer_encryption_key_id: Optional[KmsKeyId] = None,
job_tags: Optional[TagList] = None,
application_type: Optional[ApplicationType] = None,
) -> CreateEvaluationJobResponse
Creates an evaluation job.
Parameters:
-
job_name(EvaluationJobName) –A name for the evaluation job. Names must unique with your Amazon Web Services account, and your account's Amazon Web Services region.
-
job_description(Optional[EvaluationJobDescription], default:None) –A description of the evaluation job.
-
client_request_token(Optional[IdempotencyToken], default:None) –A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
-
role_arn(RoleArn) –The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. To learn more about the required permissions, see Required permissions for model evaluations.
-
customer_encryption_key_id(Optional[KmsKeyId], default:None) –Specify your customer managed encryption key Amazon Resource Name (ARN) that will be used to encrypt your evaluation job.
-
job_tags(Optional[TagList], default:None) –Tags to attach to the model evaluation job.
-
application_type(Optional[ApplicationType], default:None) –Specifies whether the evaluation job is for evaluating a model or evaluating a knowledge base (retrieval and response generation).
-
evaluation_config(EvaluationConfig) –Contains the configuration details of either an automated or human-based evaluation job.
-
inference_config(EvaluationInferenceConfig) –Contains the configuration details of the inference model for the evaluation job.
For model evaluation jobs, automated jobs support a single model or inference profile, and jobs that use human workers support two models or inference profiles.
-
output_data_config(EvaluationOutputDataConfig) –Contains the configuration details of the Amazon S3 bucket for storing the results of the evaluation job.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
ConflictException–Error occurred because of a conflict while performing an operation.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ServiceQuotaExceededException–The number of requests exceeds the service quota. Resubmit your request later.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/async_bedrock.py
4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 | |