Interface EvaluationDataset.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EvaluationDataset.Builder,
,EvaluationDataset> SdkBuilder<EvaluationDataset.Builder,
,EvaluationDataset> SdkPojo
- Enclosing class:
EvaluationDataset
@Mutable
@NotThreadSafe
public static interface EvaluationDataset.Builder
extends SdkPojo, CopyableBuilder<EvaluationDataset.Builder,EvaluationDataset>
-
Method Summary
Modifier and TypeMethodDescriptiondefault EvaluationDataset.Builder
datasetLocation
(Consumer<EvaluationDatasetLocation.Builder> datasetLocation) For custom prompt datasets, you must specify the location in Amazon S3 where the prompt dataset is saved.datasetLocation
(EvaluationDatasetLocation datasetLocation) For custom prompt datasets, you must specify the location in Amazon S3 where the prompt dataset is saved.Used to specify supported built-in prompt datasets.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
Used to specify supported built-in prompt datasets. Valid values are
Builtin.Bold
,Builtin.BoolQ
,Builtin.NaturalQuestions
,Builtin.Gigaword
,Builtin.RealToxicityPrompts
,Builtin.TriviaQA
,Builtin.T-Rex
,Builtin.WomensEcommerceClothingReviews
andBuiltin.Wikitext2
.- Parameters:
name
- Used to specify supported built-in prompt datasets. Valid values areBuiltin.Bold
,Builtin.BoolQ
,Builtin.NaturalQuestions
,Builtin.Gigaword
,Builtin.RealToxicityPrompts
,Builtin.TriviaQA
,Builtin.T-Rex
,Builtin.WomensEcommerceClothingReviews
andBuiltin.Wikitext2
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetLocation
For custom prompt datasets, you must specify the location in Amazon S3 where the prompt dataset is saved.
- Parameters:
datasetLocation
- For custom prompt datasets, you must specify the location in Amazon S3 where the prompt dataset is saved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetLocation
default EvaluationDataset.Builder datasetLocation(Consumer<EvaluationDatasetLocation.Builder> datasetLocation) For custom prompt datasets, you must specify the location in Amazon S3 where the prompt dataset is saved.
This is a convenience method that creates an instance of theEvaluationDatasetLocation.Builder
avoiding the need to create one manually viaEvaluationDatasetLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todatasetLocation(EvaluationDatasetLocation)
.- Parameters:
datasetLocation
- a consumer that will call methods onEvaluationDatasetLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-