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
4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 | |