Class AutoraterConfig.Builder
- Enclosing class:
- AutoraterConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AutoraterConfig.BuilderautoraterModel(String autoraterModel) Setter for autoraterModel.abstract AutoraterConfigbuild()Clears the value of autoraterModel field.Clears the value of flipEnabled field.Clears the value of generationConfig field.Clears the value of samplingCount field.abstract AutoraterConfig.BuilderflipEnabled(boolean flipEnabled) Setter for flipEnabled.abstract AutoraterConfig.BuildergenerationConfig(GenerationConfig generationConfig) Setter for generationConfig.generationConfig(GenerationConfig.Builder generationConfigBuilder) Setter for generationConfig builder.abstract AutoraterConfig.BuildersamplingCount(Integer samplingCount) Setter for samplingCount.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
samplingCount
Setter for samplingCount.samplingCount: Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
-
clearSamplingCount
Clears the value of samplingCount field. -
autoraterModel
Setter for autoraterModel.autoraterModel: The fully qualified name of the publisher model or tuned autorater endpoint to use.
Publisher model format: `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
-
clearAutoraterModel
Clears the value of autoraterModel field. -
generationConfig
Setter for generationConfig.generationConfig: Configuration options for model generation and outputs.
-
generationConfig
@CanIgnoreReturnValue public AutoraterConfig.Builder generationConfig(GenerationConfig.Builder generationConfigBuilder) Setter for generationConfig builder.generationConfig: Configuration options for model generation and outputs.
-
clearGenerationConfig
Clears the value of generationConfig field. -
flipEnabled
Setter for flipEnabled.flipEnabled: Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
-
clearFlipEnabled
Clears the value of flipEnabled field. -
build
-