Builder

class Builder

Properties

Link copied to clipboard

The prompt for a custom metric that instructs the evaluator model how to rate the model or RAG source under evaluation.

Link copied to clipboard
var name: String?

The name for a custom metric. Names must be unique in your Amazon Web Services region.

Link copied to clipboard

Defines the rating scale to be used for a custom metric. We recommend that you always define a ratings scale when creating a custom metric. If you don't define a scale, Amazon Bedrock won't be able to visually display the results of the evaluation in the console or calculate average values of numerical scores. For more information on specifying a rating scale, see Specifying an output schema (rating scale).