Interface EvaluationDataset.Builder

  • 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 and Builtin.Wikitext2.

      Parameters:
      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 and Builtin.Wikitext2.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • datasetLocation

      EvaluationDataset.Builder datasetLocation(EvaluationDatasetLocation 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 the EvaluationDatasetLocation.Builder avoiding the need to create one manually via EvaluationDatasetLocation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to datasetLocation(EvaluationDatasetLocation).

      Parameters:
      datasetLocation - a consumer that will call methods on EvaluationDatasetLocation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: