create_evaluation_job
¶
create_evaluation_job(
job_name: EvaluationJobName,
role_arn: RoleArn,
evaluation_config: EvaluationConfig,
inference_config: EvaluationInferenceConfig,
output_data_config: EvaluationOutputDataConfig,
*,
config_overrides: Optional[BedrockClientConfig] = 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/bedrock.py
4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 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 | |