Class: Openlayer::Models::InferencePipelines::DataStreamParams::Config::LlmData
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Openlayer::Models::InferencePipelines::DataStreamParams::Config::LlmData
- Defined in:
- lib/openlayer/models/inference_pipelines/data_stream_params.rb
Defined Under Namespace
Classes: Prompt
Instance Attribute Summary collapse
-
#context_column_name ⇒ String?
Name of the column with the context retrieved.
-
#cost_column_name ⇒ String?
Name of the column with the cost associated with each row.
-
#ground_truth_column_name ⇒ String?
Name of the column with the ground truths.
-
#inference_id_column_name ⇒ String?
Name of the column with the inference ids.
-
#input_variable_names ⇒ Array<String>?
Array of input variable names.
-
#latency_column_name ⇒ String?
Name of the column with the latencies.
-
#metadata ⇒ Object?
Object with metadata.
-
#num_of_token_column_name ⇒ String?
Name of the column with the total number of tokens.
-
#output_column_name ⇒ String
Name of the column with the model outputs.
-
#prompt ⇒ Array<Openlayer::Models::InferencePipelines::DataStreamParams::Config::LlmData::Prompt>?
Prompt for the LLM.
-
#question_column_name ⇒ String?
Name of the column with the questions.
-
#session_id_column_name ⇒ String?
Name of the column with the session id.
-
#timestamp_column_name ⇒ String?
Name of the column with the timestamps.
-
#user_id_column_name ⇒ String?
Name of the column with the user id.
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_name ⇒ String?
Name of the column with the context retrieved. Applies to RAG use cases. Providing the context enables RAG-specific metrics.
61 |
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 61 optional :context_column_name, String, api_name: :contextColumnName |
#cost_column_name ⇒ String?
Name of the column with the cost associated with each row.
67 |
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 67 optional :cost_column_name, String, api_name: :costColumnName |
#ground_truth_column_name ⇒ String?
Name of the column with the ground truths.
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_name ⇒ String?
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.
81 |
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 81 optional :inference_id_column_name, String, api_name: :inferenceIdColumnName |
#input_variable_names ⇒ Array<String>?
Array of input variable names. Each input variable should be a dataset column.
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_name ⇒ String?
Name of the column with the latencies.
95 |
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 95 optional :latency_column_name, String, api_name: :latencyColumnName |
#metadata ⇒ Object?
Object with metadata.
101 |
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 101 optional :metadata, Openlayer::Internal::Type::Unknown |
#num_of_token_column_name ⇒ String?
Name of the column with the total number of tokens.
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_name ⇒ String
Name of the column with the model outputs.
54 |
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 54 required :output_column_name, String, api_name: :outputColumnName |
#prompt ⇒ Array<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_name ⇒ String?
Name of the column with the questions. Applies to RAG use cases. Providing the question enables RAG-specific metrics.
121 |
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 121 optional :question_column_name, String, api_name: :questionColumnName |
#session_id_column_name ⇒ String?
Name of the column with the session id.
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_name ⇒ String?
Name of the column with the timestamps. Timestamps must be in UNIX sec format. If not provided, the upload timestamp is used.
134 |
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 134 optional :timestamp_column_name, String, api_name: :timestampColumnName |
#user_id_column_name ⇒ String?
Name of the column with the user id.
140 |
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 140 optional :user_id_column_name, String, api_name: :userIdColumnName, nil?: true |