openlayer 0.4.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/README.md +1 -1
- data/lib/openlayer/client.rb +4 -0
- data/lib/openlayer/internal/transport/base_client.rb +7 -1
- data/lib/openlayer/internal/transport/pooled_net_requester.rb +38 -26
- data/lib/openlayer/internal/util.rb +3 -2
- data/lib/openlayer/models/inference_pipeline_retrieve_response.rb +507 -1
- data/lib/openlayer/models/inference_pipeline_update_response.rb +507 -1
- data/lib/openlayer/models/projects/inference_pipeline_create_params.rb +609 -1
- data/lib/openlayer/models/projects/inference_pipeline_create_response.rb +507 -1
- data/lib/openlayer/models/projects/inference_pipeline_list_response.rb +507 -1
- data/lib/openlayer/models/projects/test_create_params.rb +49 -1
- data/lib/openlayer/models/projects/test_create_response.rb +49 -1
- data/lib/openlayer/models/projects/test_list_response.rb +49 -1
- data/lib/openlayer/models/test_evaluate_params.rb +50 -0
- data/lib/openlayer/models/test_evaluate_response.rb +75 -0
- data/lib/openlayer/models.rb +2 -0
- data/lib/openlayer/resources/projects/inference_pipelines.rb +3 -1
- data/lib/openlayer/resources/projects/tests.rb +9 -1
- data/lib/openlayer/resources/tests.rb +50 -0
- data/lib/openlayer/version.rb +1 -1
- data/lib/openlayer.rb +5 -0
- data/manifest.yaml +2 -0
- data/rbi/openlayer/client.rbi +3 -0
- data/rbi/openlayer/internal/transport/base_client.rbi +5 -0
- data/rbi/openlayer/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/openlayer/internal/type/base_model.rbi +8 -4
- data/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi +948 -0
- data/rbi/openlayer/models/inference_pipeline_update_response.rbi +948 -0
- data/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi +1095 -0
- data/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi +952 -0
- data/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi +952 -0
- data/rbi/openlayer/models/projects/test_create_params.rbi +40 -0
- data/rbi/openlayer/models/projects/test_create_response.rbi +40 -0
- data/rbi/openlayer/models/projects/test_list_response.rbi +40 -0
- data/rbi/openlayer/models/test_evaluate_params.rbi +75 -0
- data/rbi/openlayer/models/test_evaluate_response.rbi +121 -0
- data/rbi/openlayer/models.rbi +2 -0
- data/rbi/openlayer/resources/projects/inference_pipelines.rbi +12 -0
- data/rbi/openlayer/resources/projects/tests.rbi +16 -0
- data/rbi/openlayer/resources/tests.rbi +42 -0
- data/sig/openlayer/client.rbs +2 -0
- data/sig/openlayer/internal/transport/base_client.rbs +2 -0
- data/sig/openlayer/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/openlayer/models/inference_pipeline_retrieve_response.rbs +473 -0
- data/sig/openlayer/models/inference_pipeline_update_response.rbs +473 -0
- data/sig/openlayer/models/projects/inference_pipeline_create_params.rbs +493 -0
- data/sig/openlayer/models/projects/inference_pipeline_create_response.rbs +473 -0
- data/sig/openlayer/models/projects/inference_pipeline_list_response.rbs +473 -0
- data/sig/openlayer/models/projects/test_create_params.rbs +20 -0
- data/sig/openlayer/models/projects/test_create_response.rbs +20 -0
- data/sig/openlayer/models/projects/test_list_response.rbs +20 -0
- data/sig/openlayer/models/test_evaluate_params.rbs +45 -0
- data/sig/openlayer/models/test_evaluate_response.rbs +63 -0
- data/sig/openlayer/models.rbs +2 -0
- data/sig/openlayer/resources/projects/inference_pipelines.rbs +1 -0
- data/sig/openlayer/resources/projects/tests.rbs +4 -0
- data/sig/openlayer/resources/tests.rbs +16 -0
- metadata +11 -2
|
@@ -20,6 +20,14 @@ module Openlayer
|
|
|
20
20
|
# @return [String]
|
|
21
21
|
required :name, String
|
|
22
22
|
|
|
23
|
+
# @!attribute data_backend
|
|
24
|
+
#
|
|
25
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::BackendType, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5, nil]
|
|
26
|
+
optional :data_backend,
|
|
27
|
+
union: -> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend },
|
|
28
|
+
api_name: :dataBackend,
|
|
29
|
+
nil?: true
|
|
30
|
+
|
|
23
31
|
# @!attribute project
|
|
24
32
|
#
|
|
25
33
|
# @return [Openlayer::Models::Projects::InferencePipelineCreateParams::Project, nil]
|
|
@@ -30,17 +38,617 @@ module Openlayer
|
|
|
30
38
|
# @return [Openlayer::Models::Projects::InferencePipelineCreateParams::Workspace, nil]
|
|
31
39
|
optional :workspace, -> { Openlayer::Projects::InferencePipelineCreateParams::Workspace }, nil?: true
|
|
32
40
|
|
|
33
|
-
# @!method initialize(description:, name:, project: nil, workspace: nil, request_options: {})
|
|
41
|
+
# @!method initialize(description:, name:, data_backend: nil, project: nil, workspace: nil, request_options: {})
|
|
34
42
|
# @param description [String, nil] The inference pipeline description.
|
|
35
43
|
#
|
|
36
44
|
# @param name [String] The inference pipeline name.
|
|
37
45
|
#
|
|
46
|
+
# @param data_backend [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::BackendType, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5, nil]
|
|
47
|
+
#
|
|
38
48
|
# @param project [Openlayer::Models::Projects::InferencePipelineCreateParams::Project, nil]
|
|
39
49
|
#
|
|
40
50
|
# @param workspace [Openlayer::Models::Projects::InferencePipelineCreateParams::Workspace, nil]
|
|
41
51
|
#
|
|
42
52
|
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
|
43
53
|
|
|
54
|
+
module DataBackend
|
|
55
|
+
extend Openlayer::Internal::Type::Union
|
|
56
|
+
|
|
57
|
+
variant -> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0 }
|
|
58
|
+
|
|
59
|
+
variant -> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend::BackendType }
|
|
60
|
+
|
|
61
|
+
variant -> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2 }
|
|
62
|
+
|
|
63
|
+
variant -> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3 }
|
|
64
|
+
|
|
65
|
+
variant -> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4 }
|
|
66
|
+
|
|
67
|
+
variant -> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5 }
|
|
68
|
+
|
|
69
|
+
class UnionMember0 < Openlayer::Internal::Type::BaseModel
|
|
70
|
+
# @!attribute backend_type
|
|
71
|
+
#
|
|
72
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0::BackendType]
|
|
73
|
+
required :backend_type,
|
|
74
|
+
enum: -> {
|
|
75
|
+
Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0::BackendType
|
|
76
|
+
},
|
|
77
|
+
api_name: :backendType
|
|
78
|
+
|
|
79
|
+
# @!attribute bigquery_connection_id
|
|
80
|
+
#
|
|
81
|
+
# @return [String, nil]
|
|
82
|
+
required :bigquery_connection_id, String, api_name: :bigqueryConnectionId, nil?: true
|
|
83
|
+
|
|
84
|
+
# @!attribute dataset_id
|
|
85
|
+
#
|
|
86
|
+
# @return [String]
|
|
87
|
+
required :dataset_id, String, api_name: :datasetId
|
|
88
|
+
|
|
89
|
+
# @!attribute project_id
|
|
90
|
+
#
|
|
91
|
+
# @return [String]
|
|
92
|
+
required :project_id, String, api_name: :projectId
|
|
93
|
+
|
|
94
|
+
# @!attribute table_id
|
|
95
|
+
#
|
|
96
|
+
# @return [String, nil]
|
|
97
|
+
required :table_id, String, api_name: :tableId, nil?: true
|
|
98
|
+
|
|
99
|
+
# @!attribute partition_type
|
|
100
|
+
#
|
|
101
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0::PartitionType, nil]
|
|
102
|
+
optional :partition_type,
|
|
103
|
+
enum: -> {
|
|
104
|
+
Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0::PartitionType
|
|
105
|
+
},
|
|
106
|
+
api_name: :partitionType,
|
|
107
|
+
nil?: true
|
|
108
|
+
|
|
109
|
+
request_only do
|
|
110
|
+
# @!attribute config
|
|
111
|
+
#
|
|
112
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0::Config]
|
|
113
|
+
required :config,
|
|
114
|
+
-> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0::Config }
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# @!method initialize(backend_type:, bigquery_connection_id:, config:, dataset_id:, project_id:, table_id:, partition_type: nil)
|
|
118
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0::BackendType]
|
|
119
|
+
# @param bigquery_connection_id [String, nil]
|
|
120
|
+
# @param config [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0::Config]
|
|
121
|
+
# @param dataset_id [String]
|
|
122
|
+
# @param project_id [String]
|
|
123
|
+
# @param table_id [String, nil]
|
|
124
|
+
# @param partition_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0::PartitionType, nil]
|
|
125
|
+
|
|
126
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0#backend_type
|
|
127
|
+
module BackendType
|
|
128
|
+
extend Openlayer::Internal::Type::Enum
|
|
129
|
+
|
|
130
|
+
BIGQUERY = :bigquery
|
|
131
|
+
|
|
132
|
+
# @!method self.values
|
|
133
|
+
# @return [Array<Symbol>]
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0#config
|
|
137
|
+
class Config < Openlayer::Internal::Type::BaseModel
|
|
138
|
+
# @!attribute ground_truth_column_name
|
|
139
|
+
# Name of the column with the ground truths.
|
|
140
|
+
#
|
|
141
|
+
# @return [String, nil]
|
|
142
|
+
optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
|
|
143
|
+
|
|
144
|
+
# @!attribute human_feedback_column_name
|
|
145
|
+
# Name of the column with human feedback.
|
|
146
|
+
#
|
|
147
|
+
# @return [String, nil]
|
|
148
|
+
optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
|
|
149
|
+
|
|
150
|
+
# @!attribute latency_column_name
|
|
151
|
+
# Name of the column with the latencies.
|
|
152
|
+
#
|
|
153
|
+
# @return [String, nil]
|
|
154
|
+
optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
|
|
155
|
+
|
|
156
|
+
# @!attribute timestamp_column_name
|
|
157
|
+
# Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
158
|
+
# If not provided, the upload timestamp is used.
|
|
159
|
+
#
|
|
160
|
+
# @return [String, nil]
|
|
161
|
+
optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
|
|
162
|
+
|
|
163
|
+
request_only do
|
|
164
|
+
# @!attribute inference_id_column_name
|
|
165
|
+
# Name of the column with the inference ids. This is useful if you want to update
|
|
166
|
+
# rows at a later point in time. If not provided, a unique id is generated by
|
|
167
|
+
# Openlayer.
|
|
168
|
+
#
|
|
169
|
+
# @return [String, nil]
|
|
170
|
+
optional :inference_id_column_name, String, api_name: :inferenceIdColumnName, nil?: true
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, inference_id_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
|
|
174
|
+
# Some parameter documentations has been truncated, see
|
|
175
|
+
# {Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0::Config}
|
|
176
|
+
# for more details.
|
|
177
|
+
#
|
|
178
|
+
# @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
|
|
179
|
+
#
|
|
180
|
+
# @param human_feedback_column_name [String, nil] Name of the column with human feedback.
|
|
181
|
+
#
|
|
182
|
+
# @param inference_id_column_name [String, nil] Name of the column with the inference ids. This is useful if you want to update
|
|
183
|
+
#
|
|
184
|
+
# @param latency_column_name [String, nil] Name of the column with the latencies.
|
|
185
|
+
#
|
|
186
|
+
# @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0#partition_type
|
|
190
|
+
module PartitionType
|
|
191
|
+
extend Openlayer::Internal::Type::Enum
|
|
192
|
+
|
|
193
|
+
DAY = :DAY
|
|
194
|
+
MONTH = :MONTH
|
|
195
|
+
YEAR = :YEAR
|
|
196
|
+
|
|
197
|
+
# @!method self.values
|
|
198
|
+
# @return [Array<Symbol>]
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
class BackendType < Openlayer::Internal::Type::BaseModel
|
|
203
|
+
# @!attribute backend_type
|
|
204
|
+
#
|
|
205
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::BackendType::BackendType]
|
|
206
|
+
required :backend_type,
|
|
207
|
+
enum: -> {
|
|
208
|
+
Openlayer::Projects::InferencePipelineCreateParams::DataBackend::BackendType::BackendType
|
|
209
|
+
},
|
|
210
|
+
api_name: :backendType
|
|
211
|
+
|
|
212
|
+
# @!method initialize(backend_type:)
|
|
213
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::BackendType::BackendType]
|
|
214
|
+
|
|
215
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::BackendType#backend_type
|
|
216
|
+
module BackendType
|
|
217
|
+
extend Openlayer::Internal::Type::Enum
|
|
218
|
+
|
|
219
|
+
DEFAULT = :default
|
|
220
|
+
|
|
221
|
+
# @!method self.values
|
|
222
|
+
# @return [Array<Symbol>]
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
class UnionMember2 < Openlayer::Internal::Type::BaseModel
|
|
227
|
+
# @!attribute backend_type
|
|
228
|
+
#
|
|
229
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2::BackendType]
|
|
230
|
+
required :backend_type,
|
|
231
|
+
enum: -> {
|
|
232
|
+
Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2::BackendType
|
|
233
|
+
},
|
|
234
|
+
api_name: :backendType
|
|
235
|
+
|
|
236
|
+
# @!attribute database
|
|
237
|
+
#
|
|
238
|
+
# @return [String]
|
|
239
|
+
required :database, String
|
|
240
|
+
|
|
241
|
+
# @!attribute schema
|
|
242
|
+
#
|
|
243
|
+
# @return [String]
|
|
244
|
+
required :schema, String
|
|
245
|
+
|
|
246
|
+
# @!attribute snowflake_connection_id
|
|
247
|
+
#
|
|
248
|
+
# @return [String, nil]
|
|
249
|
+
required :snowflake_connection_id, String, api_name: :snowflakeConnectionId, nil?: true
|
|
250
|
+
|
|
251
|
+
# @!attribute table
|
|
252
|
+
#
|
|
253
|
+
# @return [String, nil]
|
|
254
|
+
required :table, String, nil?: true
|
|
255
|
+
|
|
256
|
+
request_only do
|
|
257
|
+
# @!attribute config
|
|
258
|
+
#
|
|
259
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2::Config]
|
|
260
|
+
required :config,
|
|
261
|
+
-> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2::Config }
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# @!method initialize(backend_type:, config:, database:, schema:, snowflake_connection_id:, table:)
|
|
265
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2::BackendType]
|
|
266
|
+
# @param config [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2::Config]
|
|
267
|
+
# @param database [String]
|
|
268
|
+
# @param schema [String]
|
|
269
|
+
# @param snowflake_connection_id [String, nil]
|
|
270
|
+
# @param table [String, nil]
|
|
271
|
+
|
|
272
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2#backend_type
|
|
273
|
+
module BackendType
|
|
274
|
+
extend Openlayer::Internal::Type::Enum
|
|
275
|
+
|
|
276
|
+
SNOWFLAKE = :snowflake
|
|
277
|
+
|
|
278
|
+
# @!method self.values
|
|
279
|
+
# @return [Array<Symbol>]
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2#config
|
|
283
|
+
class Config < Openlayer::Internal::Type::BaseModel
|
|
284
|
+
# @!attribute ground_truth_column_name
|
|
285
|
+
# Name of the column with the ground truths.
|
|
286
|
+
#
|
|
287
|
+
# @return [String, nil]
|
|
288
|
+
optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
|
|
289
|
+
|
|
290
|
+
# @!attribute human_feedback_column_name
|
|
291
|
+
# Name of the column with human feedback.
|
|
292
|
+
#
|
|
293
|
+
# @return [String, nil]
|
|
294
|
+
optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
|
|
295
|
+
|
|
296
|
+
# @!attribute latency_column_name
|
|
297
|
+
# Name of the column with the latencies.
|
|
298
|
+
#
|
|
299
|
+
# @return [String, nil]
|
|
300
|
+
optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
|
|
301
|
+
|
|
302
|
+
# @!attribute timestamp_column_name
|
|
303
|
+
# Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
304
|
+
# If not provided, the upload timestamp is used.
|
|
305
|
+
#
|
|
306
|
+
# @return [String, nil]
|
|
307
|
+
optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
|
|
308
|
+
|
|
309
|
+
request_only do
|
|
310
|
+
# @!attribute inference_id_column_name
|
|
311
|
+
# Name of the column with the inference ids. This is useful if you want to update
|
|
312
|
+
# rows at a later point in time. If not provided, a unique id is generated by
|
|
313
|
+
# Openlayer.
|
|
314
|
+
#
|
|
315
|
+
# @return [String, nil]
|
|
316
|
+
optional :inference_id_column_name, String, api_name: :inferenceIdColumnName, nil?: true
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, inference_id_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
|
|
320
|
+
# Some parameter documentations has been truncated, see
|
|
321
|
+
# {Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2::Config}
|
|
322
|
+
# for more details.
|
|
323
|
+
#
|
|
324
|
+
# @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
|
|
325
|
+
#
|
|
326
|
+
# @param human_feedback_column_name [String, nil] Name of the column with human feedback.
|
|
327
|
+
#
|
|
328
|
+
# @param inference_id_column_name [String, nil] Name of the column with the inference ids. This is useful if you want to update
|
|
329
|
+
#
|
|
330
|
+
# @param latency_column_name [String, nil] Name of the column with the latencies.
|
|
331
|
+
#
|
|
332
|
+
# @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
class UnionMember3 < Openlayer::Internal::Type::BaseModel
|
|
337
|
+
# @!attribute backend_type
|
|
338
|
+
#
|
|
339
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3::BackendType]
|
|
340
|
+
required :backend_type,
|
|
341
|
+
enum: -> {
|
|
342
|
+
Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3::BackendType
|
|
343
|
+
},
|
|
344
|
+
api_name: :backendType
|
|
345
|
+
|
|
346
|
+
# @!attribute databricks_dtl_connection_id
|
|
347
|
+
#
|
|
348
|
+
# @return [String, nil]
|
|
349
|
+
required :databricks_dtl_connection_id, String, api_name: :databricksDtlConnectionId, nil?: true
|
|
350
|
+
|
|
351
|
+
# @!attribute table_id
|
|
352
|
+
#
|
|
353
|
+
# @return [String, nil]
|
|
354
|
+
required :table_id, String, api_name: :tableId, nil?: true
|
|
355
|
+
|
|
356
|
+
request_only do
|
|
357
|
+
# @!attribute config
|
|
358
|
+
#
|
|
359
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3::Config]
|
|
360
|
+
required :config,
|
|
361
|
+
-> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3::Config }
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# @!method initialize(backend_type:, config:, databricks_dtl_connection_id:, table_id:)
|
|
365
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3::BackendType]
|
|
366
|
+
# @param config [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3::Config]
|
|
367
|
+
# @param databricks_dtl_connection_id [String, nil]
|
|
368
|
+
# @param table_id [String, nil]
|
|
369
|
+
|
|
370
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3#backend_type
|
|
371
|
+
module BackendType
|
|
372
|
+
extend Openlayer::Internal::Type::Enum
|
|
373
|
+
|
|
374
|
+
DATABRICKS_DTL = :databricks_dtl
|
|
375
|
+
|
|
376
|
+
# @!method self.values
|
|
377
|
+
# @return [Array<Symbol>]
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3#config
|
|
381
|
+
class Config < Openlayer::Internal::Type::BaseModel
|
|
382
|
+
# @!attribute ground_truth_column_name
|
|
383
|
+
# Name of the column with the ground truths.
|
|
384
|
+
#
|
|
385
|
+
# @return [String, nil]
|
|
386
|
+
optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
|
|
387
|
+
|
|
388
|
+
# @!attribute human_feedback_column_name
|
|
389
|
+
# Name of the column with human feedback.
|
|
390
|
+
#
|
|
391
|
+
# @return [String, nil]
|
|
392
|
+
optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
|
|
393
|
+
|
|
394
|
+
# @!attribute latency_column_name
|
|
395
|
+
# Name of the column with the latencies.
|
|
396
|
+
#
|
|
397
|
+
# @return [String, nil]
|
|
398
|
+
optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
|
|
399
|
+
|
|
400
|
+
# @!attribute timestamp_column_name
|
|
401
|
+
# Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
402
|
+
# If not provided, the upload timestamp is used.
|
|
403
|
+
#
|
|
404
|
+
# @return [String, nil]
|
|
405
|
+
optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
|
|
406
|
+
|
|
407
|
+
request_only do
|
|
408
|
+
# @!attribute inference_id_column_name
|
|
409
|
+
# Name of the column with the inference ids. This is useful if you want to update
|
|
410
|
+
# rows at a later point in time. If not provided, a unique id is generated by
|
|
411
|
+
# Openlayer.
|
|
412
|
+
#
|
|
413
|
+
# @return [String, nil]
|
|
414
|
+
optional :inference_id_column_name, String, api_name: :inferenceIdColumnName, nil?: true
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
# @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, inference_id_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
|
|
418
|
+
# Some parameter documentations has been truncated, see
|
|
419
|
+
# {Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3::Config}
|
|
420
|
+
# for more details.
|
|
421
|
+
#
|
|
422
|
+
# @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
|
|
423
|
+
#
|
|
424
|
+
# @param human_feedback_column_name [String, nil] Name of the column with human feedback.
|
|
425
|
+
#
|
|
426
|
+
# @param inference_id_column_name [String, nil] Name of the column with the inference ids. This is useful if you want to update
|
|
427
|
+
#
|
|
428
|
+
# @param latency_column_name [String, nil] Name of the column with the latencies.
|
|
429
|
+
#
|
|
430
|
+
# @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
|
|
431
|
+
end
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
class UnionMember4 < Openlayer::Internal::Type::BaseModel
|
|
435
|
+
# @!attribute backend_type
|
|
436
|
+
#
|
|
437
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4::BackendType]
|
|
438
|
+
required :backend_type,
|
|
439
|
+
enum: -> {
|
|
440
|
+
Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4::BackendType
|
|
441
|
+
},
|
|
442
|
+
api_name: :backendType
|
|
443
|
+
|
|
444
|
+
# @!attribute redshift_connection_id
|
|
445
|
+
#
|
|
446
|
+
# @return [String, nil]
|
|
447
|
+
required :redshift_connection_id, String, api_name: :redshiftConnectionId, nil?: true
|
|
448
|
+
|
|
449
|
+
# @!attribute schema_name
|
|
450
|
+
#
|
|
451
|
+
# @return [String]
|
|
452
|
+
required :schema_name, String, api_name: :schemaName
|
|
453
|
+
|
|
454
|
+
# @!attribute table_name
|
|
455
|
+
#
|
|
456
|
+
# @return [String]
|
|
457
|
+
required :table_name, String, api_name: :tableName
|
|
458
|
+
|
|
459
|
+
request_only do
|
|
460
|
+
# @!attribute config
|
|
461
|
+
#
|
|
462
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4::Config]
|
|
463
|
+
required :config,
|
|
464
|
+
-> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4::Config }
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
# @!method initialize(backend_type:, config:, redshift_connection_id:, schema_name:, table_name:)
|
|
468
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4::BackendType]
|
|
469
|
+
# @param config [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4::Config]
|
|
470
|
+
# @param redshift_connection_id [String, nil]
|
|
471
|
+
# @param schema_name [String]
|
|
472
|
+
# @param table_name [String]
|
|
473
|
+
|
|
474
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4#backend_type
|
|
475
|
+
module BackendType
|
|
476
|
+
extend Openlayer::Internal::Type::Enum
|
|
477
|
+
|
|
478
|
+
REDSHIFT = :redshift
|
|
479
|
+
|
|
480
|
+
# @!method self.values
|
|
481
|
+
# @return [Array<Symbol>]
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4#config
|
|
485
|
+
class Config < Openlayer::Internal::Type::BaseModel
|
|
486
|
+
# @!attribute ground_truth_column_name
|
|
487
|
+
# Name of the column with the ground truths.
|
|
488
|
+
#
|
|
489
|
+
# @return [String, nil]
|
|
490
|
+
optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
|
|
491
|
+
|
|
492
|
+
# @!attribute human_feedback_column_name
|
|
493
|
+
# Name of the column with human feedback.
|
|
494
|
+
#
|
|
495
|
+
# @return [String, nil]
|
|
496
|
+
optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
|
|
497
|
+
|
|
498
|
+
# @!attribute latency_column_name
|
|
499
|
+
# Name of the column with the latencies.
|
|
500
|
+
#
|
|
501
|
+
# @return [String, nil]
|
|
502
|
+
optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
|
|
503
|
+
|
|
504
|
+
# @!attribute timestamp_column_name
|
|
505
|
+
# Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
506
|
+
# If not provided, the upload timestamp is used.
|
|
507
|
+
#
|
|
508
|
+
# @return [String, nil]
|
|
509
|
+
optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
|
|
510
|
+
|
|
511
|
+
request_only do
|
|
512
|
+
# @!attribute inference_id_column_name
|
|
513
|
+
# Name of the column with the inference ids. This is useful if you want to update
|
|
514
|
+
# rows at a later point in time. If not provided, a unique id is generated by
|
|
515
|
+
# Openlayer.
|
|
516
|
+
#
|
|
517
|
+
# @return [String, nil]
|
|
518
|
+
optional :inference_id_column_name, String, api_name: :inferenceIdColumnName, nil?: true
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
# @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, inference_id_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
|
|
522
|
+
# Some parameter documentations has been truncated, see
|
|
523
|
+
# {Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4::Config}
|
|
524
|
+
# for more details.
|
|
525
|
+
#
|
|
526
|
+
# @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
|
|
527
|
+
#
|
|
528
|
+
# @param human_feedback_column_name [String, nil] Name of the column with human feedback.
|
|
529
|
+
#
|
|
530
|
+
# @param inference_id_column_name [String, nil] Name of the column with the inference ids. This is useful if you want to update
|
|
531
|
+
#
|
|
532
|
+
# @param latency_column_name [String, nil] Name of the column with the latencies.
|
|
533
|
+
#
|
|
534
|
+
# @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
|
|
535
|
+
end
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
class UnionMember5 < Openlayer::Internal::Type::BaseModel
|
|
539
|
+
# @!attribute backend_type
|
|
540
|
+
#
|
|
541
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5::BackendType]
|
|
542
|
+
required :backend_type,
|
|
543
|
+
enum: -> {
|
|
544
|
+
Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5::BackendType
|
|
545
|
+
},
|
|
546
|
+
api_name: :backendType
|
|
547
|
+
|
|
548
|
+
# @!attribute database
|
|
549
|
+
#
|
|
550
|
+
# @return [String]
|
|
551
|
+
required :database, String
|
|
552
|
+
|
|
553
|
+
# @!attribute postgres_connection_id
|
|
554
|
+
#
|
|
555
|
+
# @return [String, nil]
|
|
556
|
+
required :postgres_connection_id, String, api_name: :postgresConnectionId, nil?: true
|
|
557
|
+
|
|
558
|
+
# @!attribute schema
|
|
559
|
+
#
|
|
560
|
+
# @return [String]
|
|
561
|
+
required :schema, String
|
|
562
|
+
|
|
563
|
+
# @!attribute table
|
|
564
|
+
#
|
|
565
|
+
# @return [String, nil]
|
|
566
|
+
required :table, String, nil?: true
|
|
567
|
+
|
|
568
|
+
request_only do
|
|
569
|
+
# @!attribute config
|
|
570
|
+
#
|
|
571
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5::Config]
|
|
572
|
+
required :config,
|
|
573
|
+
-> { Openlayer::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5::Config }
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
# @!method initialize(backend_type:, config:, database:, postgres_connection_id:, schema:, table:)
|
|
577
|
+
# @param backend_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5::BackendType]
|
|
578
|
+
# @param config [Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5::Config]
|
|
579
|
+
# @param database [String]
|
|
580
|
+
# @param postgres_connection_id [String, nil]
|
|
581
|
+
# @param schema [String]
|
|
582
|
+
# @param table [String, nil]
|
|
583
|
+
|
|
584
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5#backend_type
|
|
585
|
+
module BackendType
|
|
586
|
+
extend Openlayer::Internal::Type::Enum
|
|
587
|
+
|
|
588
|
+
POSTGRES = :postgres
|
|
589
|
+
|
|
590
|
+
# @!method self.values
|
|
591
|
+
# @return [Array<Symbol>]
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5#config
|
|
595
|
+
class Config < Openlayer::Internal::Type::BaseModel
|
|
596
|
+
# @!attribute ground_truth_column_name
|
|
597
|
+
# Name of the column with the ground truths.
|
|
598
|
+
#
|
|
599
|
+
# @return [String, nil]
|
|
600
|
+
optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
|
|
601
|
+
|
|
602
|
+
# @!attribute human_feedback_column_name
|
|
603
|
+
# Name of the column with human feedback.
|
|
604
|
+
#
|
|
605
|
+
# @return [String, nil]
|
|
606
|
+
optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
|
|
607
|
+
|
|
608
|
+
# @!attribute latency_column_name
|
|
609
|
+
# Name of the column with the latencies.
|
|
610
|
+
#
|
|
611
|
+
# @return [String, nil]
|
|
612
|
+
optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
|
|
613
|
+
|
|
614
|
+
# @!attribute timestamp_column_name
|
|
615
|
+
# Name of the column with the timestamps. Timestamps must be in UNIX sec format.
|
|
616
|
+
# If not provided, the upload timestamp is used.
|
|
617
|
+
#
|
|
618
|
+
# @return [String, nil]
|
|
619
|
+
optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
|
|
620
|
+
|
|
621
|
+
request_only do
|
|
622
|
+
# @!attribute inference_id_column_name
|
|
623
|
+
# Name of the column with the inference ids. This is useful if you want to update
|
|
624
|
+
# rows at a later point in time. If not provided, a unique id is generated by
|
|
625
|
+
# Openlayer.
|
|
626
|
+
#
|
|
627
|
+
# @return [String, nil]
|
|
628
|
+
optional :inference_id_column_name, String, api_name: :inferenceIdColumnName, nil?: true
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
# @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, inference_id_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
|
|
632
|
+
# Some parameter documentations has been truncated, see
|
|
633
|
+
# {Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5::Config}
|
|
634
|
+
# for more details.
|
|
635
|
+
#
|
|
636
|
+
# @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
|
|
637
|
+
#
|
|
638
|
+
# @param human_feedback_column_name [String, nil] Name of the column with human feedback.
|
|
639
|
+
#
|
|
640
|
+
# @param inference_id_column_name [String, nil] Name of the column with the inference ids. This is useful if you want to update
|
|
641
|
+
#
|
|
642
|
+
# @param latency_column_name [String, nil] Name of the column with the latencies.
|
|
643
|
+
#
|
|
644
|
+
# @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
|
|
645
|
+
end
|
|
646
|
+
end
|
|
647
|
+
|
|
648
|
+
# @!method self.variants
|
|
649
|
+
# @return [Array(Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember0, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::BackendType, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember2, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember3, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember4, Openlayer::Models::Projects::InferencePipelineCreateParams::DataBackend::UnionMember5)]
|
|
650
|
+
end
|
|
651
|
+
|
|
44
652
|
class Project < Openlayer::Internal::Type::BaseModel
|
|
45
653
|
# @!attribute name
|
|
46
654
|
# The project name.
|