@@ -95,8 +95,12 @@ func (r InferencePipelineDataStreamParams) MarshalJSON() (data []byte, err error
95
95
// Configuration for the data stream. Depends on your **Openlayer project task
96
96
// type**.
97
97
type InferencePipelineDataStreamParamsConfig struct {
98
- // Name of the column with the total number of tokens.
99
- NumOfTokenColumnName param.Field [string ] `json:"numOfTokenColumnName"`
98
+ CategoricalFeatureNames param.Field [interface {}] `json:"categoricalFeatureNames,required"`
99
+ ClassNames param.Field [interface {}] `json:"classNames,required"`
100
+ FeatureNames param.Field [interface {}] `json:"featureNames,required"`
101
+ InputVariableNames param.Field [interface {}] `json:"inputVariableNames,required"`
102
+ Metadata param.Field [interface {}] `json:"metadata,required"`
103
+ Prompt param.Field [interface {}] `json:"prompt,required"`
100
104
// Name of the column with the context retrieved. Applies to RAG use cases.
101
105
// Providing the context enables RAG-specific metrics.
102
106
ContextColumnName param.Field [string ] `json:"contextColumnName"`
@@ -107,35 +111,31 @@ type InferencePipelineDataStreamParamsConfig struct {
107
111
// Name of the column with the inference ids. This is useful if you want to update
108
112
// rows at a later point in time. If not provided, a unique id is generated by
109
113
// Openlayer.
110
- InferenceIDColumnName param.Field [string ] `json:"inferenceIdColumnName"`
111
- InputVariableNames param.Field [interface {}] `json:"inputVariableNames,required"`
112
- // Name of the column with the latencies.
113
- LatencyColumnName param.Field [string ] `json:"latencyColumnName"`
114
- Metadata param.Field [interface {}] `json:"metadata,required"`
115
- // Name of the column with the model outputs.
116
- OutputColumnName param.Field [string ] `json:"outputColumnName"`
117
- Prompt param.Field [interface {}] `json:"prompt,required"`
118
- // Name of the column with the questions. Applies to RAG use cases. Providing the
119
- // question enables RAG-specific metrics.
120
- QuestionColumnName param.Field [string ] `json:"questionColumnName"`
121
- // Name of the column with the timestamps. Timestamps must be in UNIX sec format.
122
- // If not provided, the upload timestamp is used.
123
- TimestampColumnName param.Field [string ] `json:"timestampColumnName"`
124
- CategoricalFeatureNames param.Field [interface {}] `json:"categoricalFeatureNames,required"`
125
- ClassNames param.Field [interface {}] `json:"classNames,required"`
126
- FeatureNames param.Field [interface {}] `json:"featureNames,required"`
114
+ InferenceIDColumnName param.Field [string ] `json:"inferenceIdColumnName"`
127
115
// Name of the column with the labels. The data in this column must be
128
116
// **zero-indexed integers**, matching the list provided in `classNames`.
129
117
LabelColumnName param.Field [string ] `json:"labelColumnName"`
118
+ // Name of the column with the latencies.
119
+ LatencyColumnName param.Field [string ] `json:"latencyColumnName"`
120
+ // Name of the column with the total number of tokens.
121
+ NumOfTokenColumnName param.Field [string ] `json:"numOfTokenColumnName"`
122
+ // Name of the column with the model outputs.
123
+ OutputColumnName param.Field [string ] `json:"outputColumnName"`
130
124
// Name of the column with the model's predictions as **zero-indexed integers**.
131
125
PredictionsColumnName param.Field [string ] `json:"predictionsColumnName"`
132
126
// Name of the column with the model's predictions as **lists of class
133
127
// probabilities**.
134
128
PredictionScoresColumnName param.Field [string ] `json:"predictionScoresColumnName"`
129
+ // Name of the column with the questions. Applies to RAG use cases. Providing the
130
+ // question enables RAG-specific metrics.
131
+ QuestionColumnName param.Field [string ] `json:"questionColumnName"`
135
132
// Name of the column with the targets (ground truth values).
136
133
TargetColumnName param.Field [string ] `json:"targetColumnName"`
137
134
// Name of the column with the text data.
138
135
TextColumnName param.Field [string ] `json:"textColumnName"`
136
+ // Name of the column with the timestamps. Timestamps must be in UNIX sec format.
137
+ // If not provided, the upload timestamp is used.
138
+ TimestampColumnName param.Field [string ] `json:"timestampColumnName"`
139
139
}
140
140
141
141
func (r InferencePipelineDataStreamParamsConfig ) MarshalJSON () (data []byte , err error ) {
0 commit comments