Class: OpenAI::Models::EvalCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::EvalCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/openai/models/eval_create_params.rb
Overview
Defined Under Namespace
Modules: DataSourceConfig, TestingCriterion
Instance Attribute Summary collapse
-
#data_source_config ⇒ OpenAI::Models::EvalCreateParams::DataSourceConfig::Custom, ...
The configuration for the data source used for the evaluation runs.
-
#metadata ⇒ Hash{Symbol=>String}?
Set of 16 key-value pairs that can be attached to an object.
-
#name ⇒ String?
The name of the evaluation.
-
#testing_criteria ⇒ Array<OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel, OpenAI::Models::Graders::StringCheckGrader, OpenAI::Models::EvalCreateParams::TestingCriterion::TextSimilarity, OpenAI::Models::EvalCreateParams::TestingCriterion::Python, OpenAI::Models::EvalCreateParams::TestingCriterion::ScoreModel>
A list of graders for all eval runs in this group.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata: nil, type: :stored_completions) ⇒ Object
constructor
Deprecated in favor of LogsDataSourceConfig.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(metadata: nil, type: :stored_completions) ⇒ Object
Deprecated in favor of LogsDataSourceConfig.
|
# File 'lib/openai/models/eval_create_params.rb', line 44
|
Instance Attribute Details
#data_source_config ⇒ OpenAI::Models::EvalCreateParams::DataSourceConfig::Custom, ...
The configuration for the data source used for the evaluation runs. Dictates the schema of the data used in the evaluation.
15 |
# File 'lib/openai/models/eval_create_params.rb', line 15 required :data_source_config, union: -> { OpenAI::EvalCreateParams::DataSourceConfig } |
#metadata ⇒ Hash{Symbol=>String}?
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
36 |
# File 'lib/openai/models/eval_create_params.rb', line 36 optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true |
#name ⇒ String?
The name of the evaluation.
42 |
# File 'lib/openai/models/eval_create_params.rb', line 42 optional :name, String |
#testing_criteria ⇒ Array<OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel, OpenAI::Models::Graders::StringCheckGrader, OpenAI::Models::EvalCreateParams::TestingCriterion::TextSimilarity, OpenAI::Models::EvalCreateParams::TestingCriterion::Python, OpenAI::Models::EvalCreateParams::TestingCriterion::ScoreModel>
A list of graders for all eval runs in this group. Graders can reference variables in the data source using double curly braces notation, like ‘OpenAI::Models::EvalCreateParams.{item{item.variable_name}`. To reference the model’s output, use the ‘sample` namespace (ie, `OpenAI::Models::EvalCreateParams.{sample{sample.output_text}`).
24 25 |
# File 'lib/openai/models/eval_create_params.rb', line 24 required :testing_criteria, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::EvalCreateParams::TestingCriterion] } |
Class Method Details
.variants ⇒ Array(OpenAI::Models::EvalCreateParams::DataSourceConfig::Custom, OpenAI::Models::EvalCreateParams::DataSourceConfig::Logs, OpenAI::Models::EvalCreateParams::DataSourceConfig::StoredCompletions)
|
# File 'lib/openai/models/eval_create_params.rb', line 160
|