Class EvaluationModelConfig

    • Method Detail

      • bedrockModel

        public final EvaluationBedrockModel bedrockModel()

        Defines the Amazon Bedrock model or inference profile and inference parameters you want used.

        Returns:
        Defines the Amazon Bedrock model or inference profile and inference parameters you want used.
      • precomputedInferenceSource

        public final EvaluationPrecomputedInferenceSource precomputedInferenceSource()

        Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.

        Returns:
        Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromBedrockModel

        public static EvaluationModelConfig fromBedrockModel​(EvaluationBedrockModel bedrockModel)
        Create an instance of this class with bedrockModel() initialized to the given value.

        Defines the Amazon Bedrock model or inference profile and inference parameters you want used.

        Parameters:
        bedrockModel - Defines the Amazon Bedrock model or inference profile and inference parameters you want used.
      • fromBedrockModel

        public static EvaluationModelConfig fromBedrockModel​(Consumer<EvaluationBedrockModel.Builder> bedrockModel)
        Create an instance of this class with bedrockModel() initialized to the given value.

        Defines the Amazon Bedrock model or inference profile and inference parameters you want used.

        Parameters:
        bedrockModel - Defines the Amazon Bedrock model or inference profile and inference parameters you want used.
      • fromPrecomputedInferenceSource

        public static EvaluationModelConfig fromPrecomputedInferenceSource​(EvaluationPrecomputedInferenceSource precomputedInferenceSource)
        Create an instance of this class with precomputedInferenceSource() initialized to the given value.

        Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.

        Parameters:
        precomputedInferenceSource - Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.
      • fromPrecomputedInferenceSource

        public static EvaluationModelConfig fromPrecomputedInferenceSource​(Consumer<EvaluationPrecomputedInferenceSource.Builder> precomputedInferenceSource)
        Create an instance of this class with precomputedInferenceSource() initialized to the given value.

        Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.

        Parameters:
        precomputedInferenceSource - Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.