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
4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 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 | |