Class: Openlayer::Models::InferencePipelines::DataStreamParams::Config::LlmData

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/inference_pipelines/data_stream_params.rb

Defined Under Namespace

Classes: Prompt

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

This class inherits a constructor from Openlayer::Internal::Type::BaseModel

Instance Attribute Details

#context_column_nameString?

Name of the column with the context retrieved. Applies to RAG use cases. Providing the context enables RAG-specific metrics.

Returns:

  • (String, nil)


61
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 61

optional :context_column_name, String, api_name: :contextColumnName

#cost_column_nameString?

Name of the column with the cost associated with each row.

Returns:

  • (String, nil)


67
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 67

optional :cost_column_name, String, api_name: :costColumnName

#ground_truth_column_nameString?

Name of the column with the ground truths.

Returns:

  • (String, nil)


73
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 73

optional :ground_truth_column_name, String, api_name: :groundTruthColumnName

#inference_id_column_nameString?

Name of the column with the inference ids. This is useful if you want to update rows at a later point in time. If not provided, a unique id is generated by Openlayer.

Returns:

  • (String, nil)


81
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 81

optional :inference_id_column_name, String, api_name: :inferenceIdColumnName

#input_variable_namesArray<String>?

Array of input variable names. Each input variable should be a dataset column.

Returns:

  • (Array<String>, nil)


87
88
89
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 87

optional :input_variable_names,
Openlayer::Internal::Type::ArrayOf[String],
api_name: :inputVariableNames

#latency_column_nameString?

Name of the column with the latencies.

Returns:

  • (String, nil)


95
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 95

optional :latency_column_name, String, api_name: :latencyColumnName

#metadataObject?

Object with metadata.

Returns:

  • (Object, nil)


101
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 101

optional :metadata, Openlayer::Internal::Type::Unknown

#num_of_token_column_nameString?

Name of the column with the total number of tokens.

Returns:

  • (String, nil)


107
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 107

optional :num_of_token_column_name, String, api_name: :numOfTokenColumnName, nil?: true

#output_column_nameString

Name of the column with the model outputs.

Returns:

  • (String)


54
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 54

required :output_column_name, String, api_name: :outputColumnName

#promptArray<Openlayer::Models::InferencePipelines::DataStreamParams::Config::LlmData::Prompt>?

Prompt for the LLM.



113
114
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 113

optional :prompt,
-> { Openlayer::Internal::Type::ArrayOf[Openlayer::InferencePipelines::DataStreamParams::Config::LlmData::Prompt] }

#question_column_nameString?

Name of the column with the questions. Applies to RAG use cases. Providing the question enables RAG-specific metrics.

Returns:

  • (String, nil)


121
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 121

optional :question_column_name, String, api_name: :questionColumnName

#session_id_column_nameString?

Name of the column with the session id.

Returns:

  • (String, nil)


127
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 127

optional :session_id_column_name, String, api_name: :sessionIdColumnName, nil?: true

#timestamp_column_nameString?

Name of the column with the timestamps. Timestamps must be in UNIX sec format. If not provided, the upload timestamp is used.

Returns:

  • (String, nil)


134
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 134

optional :timestamp_column_name, String, api_name: :timestampColumnName

#user_id_column_nameString?

Name of the column with the user id.

Returns:

  • (String, nil)


140
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 140

optional :user_id_column_name, String, api_name: :userIdColumnName, nil?: true