rapidata 2.3.2__py3-none-any.whl → 2.4.0__py3-none-any.whl

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.

Potentially problematic release.


This version of rapidata might be problematic. Click here for more details.

@@ -1,4 +1,3 @@
1
- from rapidata.rapidata_client.validation._validation_set_builder import ValidationSetBuilder
2
1
  from rapidata.rapidata_client.validation.rapidata_validation_set import RapidataValidationSet
3
2
  from rapidata.service.openapi_service import OpenAPIService
4
3
  from rapidata.rapidata_client.assets.data_type_enum import RapidataDataTypes
@@ -17,8 +16,6 @@ from rapidata.rapidata_client.validation.rapids.box import Box
17
16
 
18
17
  from rapidata.api_client.models.query_validation_set_model import QueryValidationSetModel
19
18
 
20
- from typing import Sequence
21
-
22
19
 
23
20
  class ValidationSetManager:
24
21
  """
@@ -39,7 +36,8 @@ class ValidationSetManager:
39
36
  truths: list[list[str]],
40
37
  data_type: str = RapidataDataTypes.MEDIA,
41
38
  contexts: list[str] | None = None,
42
- print_confirmation: bool = True
39
+ print_confirmation: bool = True,
40
+ explanations: list[str | None] | None = None,
43
41
  ) -> RapidataValidationSet:
44
42
  """Create a classification validation set.
45
43
 
@@ -58,6 +56,7 @@ class ValidationSetManager:
58
56
  If provided has to be the same length as datapoints and will be shown in addition to the instruction and answer options. (Therefore will be different for each datapoint)
59
57
  Will be match up with the datapoints using the list index.
60
58
  print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
59
+ explanations (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
61
60
  """
62
61
 
63
62
  if len(datapoints) != len(truths):
@@ -68,8 +67,11 @@ class ValidationSetManager:
68
67
 
69
68
  if contexts and len(contexts) != len(datapoints):
70
69
  raise ValueError("The number of contexts and datapoints must be equal")
71
-
72
- rapids = []
70
+
71
+ if(explanations and len(explanations) != len(datapoints)):
72
+ raise ValueError("The numeber of reasons and datapoints must be equal, the index must align, but can be padded with None")
73
+
74
+ rapids: list[Rapid] = []
73
75
  for i in range(len(datapoints)):
74
76
  rapids.append(
75
77
  self.rapid.classification_rapid(
@@ -78,16 +80,13 @@ class ValidationSetManager:
78
80
  datapoint=datapoints[i],
79
81
  truths=truths[i],
80
82
  data_type=data_type,
81
- metadata=[PromptMetadata(contexts[i])] if contexts else []
83
+ metadata=[PromptMetadata(contexts[i])] if contexts else [],
84
+ explanation=explanations[i] if explanations != None else None
82
85
  )
83
86
  )
84
87
 
85
- validation_set_builder = ValidationSetBuilder(name, self.__openapi_service)
86
- for rapid in rapids:
87
- validation_set_builder._add_rapid(rapid)
88
+ return self._submit(name=name, data_type=data_type, rapids=rapids, print_confirmation=print_confirmation)
88
89
 
89
- return validation_set_builder._submit(print_confirmation)
90
-
91
90
  def create_compare_set(self,
92
91
  name: str,
93
92
  instruction: str,
@@ -95,7 +94,8 @@ class ValidationSetManager:
95
94
  truths: list[str],
96
95
  data_type: str = RapidataDataTypes.MEDIA,
97
96
  contexts: list[str] | None = None,
98
- print_confirmation: bool = True
97
+ print_confirmation: bool = True,
98
+ explanation: list[str | None] | None = None,
99
99
  ) -> RapidataValidationSet:
100
100
  """Create a comparison validation set.
101
101
 
@@ -114,6 +114,7 @@ class ValidationSetManager:
114
114
  If provided has to be the same length as datapoints and will be shown in addition to the instruction and truth. (Therefore will be different for each datapoint)
115
115
  Will be match up with the datapoints using the list index.
116
116
  print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
117
+ explanation (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
117
118
  """
118
119
 
119
120
  if len(datapoints) != len(truths):
@@ -124,8 +125,11 @@ class ValidationSetManager:
124
125
 
125
126
  if contexts and len(contexts) != len(datapoints):
126
127
  raise ValueError("The number of contexts and datapoints must be equal")
127
-
128
- rapids = []
128
+
129
+ if(explanation and len(explanation) != len(datapoints)):
130
+ raise ValueError("The numeber of reasons and datapoints must be equal, the index must align, but can be padded with None")
131
+
132
+ rapids: list[Rapid] = []
129
133
  for i in range(len(datapoints)):
130
134
  rapids.append(
131
135
  self.rapid.compare_rapid(
@@ -133,16 +137,13 @@ class ValidationSetManager:
133
137
  truth=truths[i],
134
138
  datapoint=datapoints[i],
135
139
  data_type=data_type,
136
- metadata=[PromptMetadata(contexts[i])] if contexts else []
140
+ metadata=[PromptMetadata(contexts[i])] if contexts else [],
141
+ explanation=explanation[i] if explanation != None else None
137
142
  )
138
143
  )
139
-
140
- validation_set_builder = ValidationSetBuilder(name, self.__openapi_service)
141
- for rapid in rapids:
142
- validation_set_builder._add_rapid(rapid)
143
-
144
- return validation_set_builder._submit(print_confirmation)
145
-
144
+
145
+ return self._submit(name=name, data_type=data_type, rapids=rapids, print_confirmation=print_confirmation)
146
+
146
147
  def create_select_words_set(self,
147
148
  name: str,
148
149
  instruction: str,
@@ -151,7 +152,8 @@ class ValidationSetManager:
151
152
  sentences: list[str],
152
153
  required_precision: float = 1.0,
153
154
  required_completeness: float = 1.0,
154
- print_confirmation: bool = True
155
+ print_confirmation: bool = True,
156
+ explanation: list[str | None] | None = None,
155
157
  ) -> RapidataValidationSet:
156
158
  """Create a select words validation set.
157
159
 
@@ -169,6 +171,7 @@ class ValidationSetManager:
169
171
  required_precision (float, optional): The required precision for the labeler to get the rapid correct (minimum ratio of the words selected that need to be correct). Defaults to 1.0 (no wrong word can be selected).
170
172
  required_completeness (float, optional): The required completeness for the labeler to get the rapid correct (miminum ratio of total correct words selected). Defaults to 1.0 (all correct words need to be selected).
171
173
  print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
174
+ explanation (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
172
175
  """
173
176
 
174
177
  if not all([isinstance(truth, (list, tuple)) for truth in truths]):
@@ -176,8 +179,11 @@ class ValidationSetManager:
176
179
 
177
180
  if len(datapoints) != len(truths) or len(datapoints) != len(sentences):
178
181
  raise ValueError("The number of datapoints, truths, and sentences must be equal")
179
-
180
- rapids = []
182
+
183
+ if(explanation and len(explanation) != len(datapoints)):
184
+ raise ValueError("The numeber of reasons and datapoints must be equal, the index must align, but can be padded with None")
185
+
186
+ rapids: list[Rapid] = []
181
187
  for i in range(len(datapoints)):
182
188
  rapids.append(
183
189
  self.rapid.select_words_rapid(
@@ -186,23 +192,21 @@ class ValidationSetManager:
186
192
  datapoint=datapoints[i],
187
193
  sentence=sentences[i],
188
194
  required_precision=required_precision,
189
- required_completeness=required_completeness
195
+ required_completeness=required_completeness,
196
+ explanation=explanation[i] if explanation != None else None
190
197
  )
191
198
  )
192
199
 
193
- validation_set_builder = ValidationSetBuilder(name, self.__openapi_service)
194
- for rapid in rapids:
195
- validation_set_builder._add_rapid(rapid)
200
+ return self._submit(name=name, data_type=RapidataDataTypes.MEDIA, rapids=rapids, print_confirmation=print_confirmation)
196
201
 
197
- return validation_set_builder._submit(print_confirmation)
198
-
199
202
  def create_locate_set(self,
200
203
  name: str,
201
204
  instruction: str,
202
205
  truths: list[list[Box]],
203
206
  datapoints: list[str],
204
207
  contexts: list[str] | None = None,
205
- print_confirmation: bool = True
208
+ print_confirmation: bool = True,
209
+ explanation: list[str | None] | None = None,
206
210
  ) -> RapidataValidationSet:
207
211
  """Create a locate validation set.
208
212
 
@@ -216,6 +220,7 @@ class ValidationSetManager:
216
220
  datapoints (list[str]): The datapoints that will be used for validation.
217
221
  contexts (list[str], optional): The contexts for each datapoint. Defaults to None.
218
222
  print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
223
+ explanation (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
219
224
  """
220
225
 
221
226
  if len(datapoints) != len(truths):
@@ -226,23 +231,25 @@ class ValidationSetManager:
226
231
 
227
232
  if contexts and len(contexts) != len(datapoints):
228
233
  raise ValueError("The number of contexts and datapoints must be equal")
229
-
234
+
235
+ if(explanation and len(explanation) != len(datapoints)):
236
+ raise ValueError("The numeber of reasons and datapoints must be equal, the index must align, but can be padded with None")
237
+
230
238
  rapids = []
239
+ rapids: list[Rapid] = []
231
240
  for i in range(len(datapoints)):
232
241
  rapids.append(
233
242
  self.rapid.locate_rapid(
234
243
  instruction=instruction,
235
244
  truths=truths[i],
236
245
  datapoint=datapoints[i],
237
- metadata=[PromptMetadata(contexts[i])] if contexts else []
246
+ metadata=[PromptMetadata(contexts[i])] if contexts else [],
247
+ explanation=explanation[i] if explanation != None else None
248
+
238
249
  )
239
250
  )
240
-
241
- validation_set_builder = ValidationSetBuilder(name, self.__openapi_service)
242
- for rapid in rapids:
243
- validation_set_builder._add_rapid(rapid)
244
-
245
- return validation_set_builder._submit(print_confirmation)
251
+
252
+ return self._submit(name=name, data_type=RapidataDataTypes.MEDIA, rapids=rapids, print_confirmation=print_confirmation)
246
253
 
247
254
  def create_draw_set(self,
248
255
  name: str,
@@ -250,7 +257,8 @@ class ValidationSetManager:
250
257
  truths: list[list[Box]],
251
258
  datapoints: list[str],
252
259
  contexts: list[str] | None = None,
253
- print_confirmation: bool = True
260
+ print_confirmation: bool = True,
261
+ explanation: list[str | None] | None = None,
254
262
  ) -> RapidataValidationSet:
255
263
  """Create a draw validation set.
256
264
 
@@ -264,6 +272,7 @@ class ValidationSetManager:
264
272
  datapoints (list[str]): The datapoints that will be used for validation.
265
273
  contexts (list[str], optional): The contexts for each datapoint. Defaults to None.
266
274
  print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
275
+ explanation (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
267
276
  """
268
277
 
269
278
  if len(datapoints) != len(truths):
@@ -274,24 +283,24 @@ class ValidationSetManager:
274
283
 
275
284
  if contexts and len(contexts) != len(datapoints):
276
285
  raise ValueError("The number of contexts and datapoints must be equal")
277
-
278
- rapids = []
286
+
287
+ if(explanation and len(explanation) != len(datapoints)):
288
+ raise ValueError("The numeber of reasons and datapoints must be equal, the index must align, but can be padded with None")
289
+
290
+ rapids: list[Rapid] = []
279
291
  for i in range(len(datapoints)):
280
292
  rapids.append(
281
293
  self.rapid.draw_rapid(
282
294
  instruction=instruction,
283
295
  truths=truths[i],
284
296
  datapoint=datapoints[i],
285
- metadata=[PromptMetadata(contexts[i])] if contexts else []
297
+ metadata=[PromptMetadata(contexts[i])] if contexts else [],
298
+ explanation=explanation[i] if explanation != None else None
299
+
286
300
  )
287
301
  )
288
302
 
289
- validation_set_builder = ValidationSetBuilder(name, self.__openapi_service)
290
- for rapid in rapids:
291
- validation_set_builder._add_rapid(rapid)
292
-
293
- return validation_set_builder._submit(print_confirmation)
294
-
303
+ return self._submit(name=name, data_type=RapidataDataTypes.MEDIA, rapids=rapids, print_confirmation=print_confirmation)
295
304
 
296
305
  def create_timestamp_set(self,
297
306
  name: str,
@@ -299,7 +308,8 @@ class ValidationSetManager:
299
308
  truths: list[list[tuple[int, int]]],
300
309
  datapoints: list[str],
301
310
  contexts: list[str] | None = None,
302
- print_confirmation: bool = True
311
+ print_confirmation: bool = True,
312
+ explanation: list[str | None] | None = None,
303
313
  ) -> RapidataValidationSet:
304
314
  """Create a timestamp validation set.
305
315
 
@@ -314,6 +324,7 @@ class ValidationSetManager:
314
324
  datapoints (list[str]): The datapoints that will be used for validation.
315
325
  contexts (list[str], optional): The contexts for each datapoint. Defaults to None.
316
326
  print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
327
+ explanation (list[str | None], optional): The explanations for each datapoint. Will be given to the annotators in case the answer is wrong. Defaults to None.
317
328
  """
318
329
 
319
330
  if len(datapoints) != len(truths):
@@ -324,42 +335,40 @@ class ValidationSetManager:
324
335
 
325
336
  if contexts and len(contexts) != len(datapoints):
326
337
  raise ValueError("The number of contexts and datapoints must be equal")
327
-
328
- rapids = []
338
+
339
+ if(explanation and len(explanation) != len(datapoints)):
340
+ raise ValueError("The numeber of reasons and datapoints must be equal, the index must align, but can be padded with None")
341
+
342
+
343
+ rapids: list[Rapid] = []
329
344
  for i in range(len(datapoints)):
330
345
  rapids.append(
331
346
  self.rapid.timestamp_rapid(
332
347
  instruction=instruction,
333
348
  truths=truths[i],
334
349
  datapoint=datapoints[i],
335
- metadata=[PromptMetadata(contexts[i])] if contexts else []
350
+ metadata=[PromptMetadata(contexts[i])] if contexts else [],
351
+ explanation=explanation[i] if explanation != None else None
336
352
  )
337
353
  )
338
354
 
339
- validation_set_builder = ValidationSetBuilder(name, self.__openapi_service)
340
- for rapid in rapids:
341
- validation_set_builder._add_rapid(rapid)
342
-
343
- return validation_set_builder._submit(print_confirmation)
355
+ return self._submit(name=name, data_type=RapidataDataTypes.MEDIA, rapids=rapids, print_confirmation=print_confirmation)
344
356
 
345
357
  def create_mixed_set(self,
346
358
  name: str,
347
- rapids: Sequence[Rapid],
359
+ data_type: str,
360
+ rapids: list[Rapid],
348
361
  print_confirmation: bool = True
349
362
  ) -> RapidataValidationSet:
350
363
  """Create a validation set with a list of rapids.
351
364
 
352
365
  Args:
353
366
  name (str): The name of the validation set. (will not be shown to the labeler)
354
- rapids (Sequence[Rapid]): The list of rapids to add to the validation set.
367
+ rapids (list[Rapid]): The list of rapids to add to the validation set.
355
368
  print_confirmation (bool, optional): Whether to print a confirmation message that validation set has been created. Defaults to True.
356
369
  """
357
370
 
358
- validation_set_builder = ValidationSetBuilder(name, self.__openapi_service)
359
- for rapid in rapids:
360
- validation_set_builder._add_rapid(rapid)
361
-
362
- return validation_set_builder._submit(print_confirmation)
371
+ return self._submit(name, data_type, rapids, print_confirmation)
363
372
 
364
373
  def get_validation_set_by_id(self, validation_set_id: str) -> RapidataValidationSet:
365
374
  """Get a validation set by ID.
@@ -375,8 +384,38 @@ class ValidationSetManager:
375
384
  except Exception:
376
385
  raise ValueError(f"ValidationSet with ID {validation_set_id} not found.")
377
386
 
378
- return RapidataValidationSet(validation_set_id, self.__openapi_service, validation_set.name)
379
-
387
+ return RapidataValidationSet(validation_set_id, validation_set.name)
388
+
389
+ def _submit(self, name: str, data_type: str, rapids: list[Rapid], print_confirmation: bool) -> RapidataValidationSet:
390
+ validation_set_id = (
391
+ self.__openapi_service.validation_api.validation_create_validation_set_post(
392
+ name=name
393
+ )
394
+ ).validation_set_id
395
+
396
+ if validation_set_id is None:
397
+ raise ValueError("Failed to create validation set")
398
+
399
+ if print_confirmation:
400
+ print(f"Validation set '{name}' created with ID {validation_set_id}")
401
+
402
+ for rapid in rapids:
403
+ if data_type == RapidataDataTypes.TEXT:
404
+ self.__openapi_service.validation_api.validation_add_validation_text_rapid_post(
405
+ add_validation_text_rapid_model=rapid.to_text_model(validation_set_id)
406
+ )
407
+ else:
408
+ model = rapid.to_media_model(validation_set_id)
409
+ self.__openapi_service.validation_api.validation_add_validation_rapid_post(
410
+ model=model[0], files=model[1]
411
+ )
412
+
413
+ return RapidataValidationSet(
414
+ name=name,
415
+ validation_set_id=validation_set_id,
416
+ )
417
+
418
+
380
419
  def find_validation_sets(self, name: str = "", amount: int = 1) -> list[RapidataValidationSet]:
381
420
  """Find validation sets by name.
382
421
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rapidata
3
- Version: 2.3.2
3
+ Version: 2.4.0
4
4
  Summary: Rapidata package containing the Rapidata Python Client to interact with the Rapidata Web API in an easy way.
5
5
  License: Apache-2.0
6
6
  Author: Rapidata AG
@@ -1,5 +1,5 @@
1
- rapidata/__init__.py,sha256=fQDxHG9k8jBQ0Tm5f2XoKZwcEUaAXbUltwsoEXTBXRA,611
2
- rapidata/api_client/__init__.py,sha256=sDQWfUMNIuHPtylab64lr3uy1uFfkd0toh5cS-q_Syc,25564
1
+ rapidata/__init__.py,sha256=c-NU7eUdITYn3ggvlfsIwaQ09qrGfEK0eDUsflwaXUY,607
2
+ rapidata/api_client/__init__.py,sha256=F17D4yiiAnNg36xyEevH7qUwG_fqBzzDjsH_yoTENoM,25690
3
3
  rapidata/api_client/api/__init__.py,sha256=h0wnYolEBVduAU_7YBLFnwHcwXgZg_krSgarsWxz4zs,1061
4
4
  rapidata/api_client/api/campaign_api.py,sha256=DxPFqt9F6c9OpXu_Uxhsrib2NVwnbcZFa3Vkrj7cIuA,40474
5
5
  rapidata/api_client/api/client_api.py,sha256=P--1kvxHhC3mu6VQMgf6DyRV2FyC64-eyHP1X60bBSM,42259
@@ -11,7 +11,7 @@ rapidata/api_client/api/identity_api.py,sha256=HohN5Kgynss527TI91vtpZ8mgxlcCTeH6
11
11
  rapidata/api_client/api/newsletter_api.py,sha256=9ZqGDB4_AEQZfRA61RRYkyQ06WjXH-aCwJUe60c2H4w,22575
12
12
  rapidata/api_client/api/order_api.py,sha256=hLLlXQrt3y5ni0NALNiDoLd6HxhZ7RuTjyBqmK-osMM,209636
13
13
  rapidata/api_client/api/pipeline_api.py,sha256=8NjyfLWaX7DtaF6jWDS2rzqsWigWWYgyeoDLwPH4S9w,71566
14
- rapidata/api_client/api/rapid_api.py,sha256=3ttNQerbjI7djWxJ21XEG6pOKeME2VxP7tJsYMSjE3M,54063
14
+ rapidata/api_client/api/rapid_api.py,sha256=6d8F5hzCF0SdEQvv5AZXsEZQKHBD9pdJhLxrrHZz2CU,64216
15
15
  rapidata/api_client/api/rapidata_identity_api_api.py,sha256=-kgoDuLdh-R4MQ7JPi3kQ0WDFKbmI0MkCjxwHXBmksA,9824
16
16
  rapidata/api_client/api/simple_workflow_api.py,sha256=BIc4Cx05cbd_5BV0Rsb44M3uMlQZ5IB_6iHyNbbAZiU,15440
17
17
  rapidata/api_client/api/user_info_api.py,sha256=FuuA95Beeky-rnqIoSUe2-WQ7oVTfq0RElX0jfKXT0w,10042
@@ -21,14 +21,14 @@ rapidata/api_client/api_client.py,sha256=EDhxAOUc5JFWvFsF1zc726Q7GoEFkuB8uor5SlG
21
21
  rapidata/api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
22
22
  rapidata/api_client/configuration.py,sha256=g472vHVPLBotq8EkfSXP4sbp7xnn-3sb8O8BBlRWK1I,15931
23
23
  rapidata/api_client/exceptions.py,sha256=eLLd1fxM0Ygf3IIG6aNx9hdy79drst5Cem0UjI_NamM,5978
24
- rapidata/api_client/models/__init__.py,sha256=TcL-cbiSphkq5r7nLNn3RohscjG2gshBeB6w4t-R-08,23962
24
+ rapidata/api_client/models/__init__.py,sha256=GBsOyo2YV1YtKD6d4c2HCgjcdoc5l1lwsjWIQenDiGk,24088
25
25
  rapidata/api_client/models/add_campaign_artifact_result.py,sha256=4IvFVS-tLlL6eHsWp-IZ_ul5T30-h3YEwd2B5ioBbgY,2582
26
26
  rapidata/api_client/models/add_campaign_model.py,sha256=fAjWj_ahlVrXZzRaiL3mrcqXYZd5I93R8scwo8-JpXw,6873
27
- rapidata/api_client/models/add_validation_rapid_model.py,sha256=-HRHMK-o6dgGjUqfsP_woZcFxfN7nuJ-L1CUaK9nihY,4918
27
+ rapidata/api_client/models/add_validation_rapid_model.py,sha256=YxKK5CsYj3R4K4gen7soL3eTWBYUEpqf5jVbyijLjVI,5248
28
28
  rapidata/api_client/models/add_validation_rapid_model_payload.py,sha256=TxiQCEfoEz2LvSCLyPEbqs1f9iKcGZ4p1zxG3FZoo1U,11825
29
29
  rapidata/api_client/models/add_validation_rapid_model_truth.py,sha256=_DTxr_08mHoz_dZtScLWwxw3iockbJ_UEI7JO0MQiuU,11743
30
30
  rapidata/api_client/models/add_validation_rapid_result.py,sha256=rNk2_4CERFNpCq4XExFEb6-9QVwGEJ62nTmpX4_kjXk,2563
31
- rapidata/api_client/models/add_validation_text_rapid_model.py,sha256=ch5IGME1BBVnNv4prgdpqBU9c4fURxabvO4uEugWv2U,5060
31
+ rapidata/api_client/models/add_validation_text_rapid_model.py,sha256=Tc8BxEj1SB0li7SaRGB6PfP35RKuDFfadNNnaC2Qmlo,5390
32
32
  rapidata/api_client/models/admin_order_model.py,sha256=-QBgxsw7MTOYEjwOnKSndJTCWpdx5Os--dY4e6JSW9E,3730
33
33
  rapidata/api_client/models/admin_order_model_paged_result.py,sha256=edgeuvJ8yDMjKDB8vYa2YdbO7brdcgj6AMXPQTLeRbc,3494
34
34
  rapidata/api_client/models/age_group.py,sha256=XZLFEKvPveCJOCN0byJ_p1rhbIEsAeETSpUX1gAfWMc,877
@@ -252,7 +252,7 @@ rapidata/api_client/models/public_text_metadata_input.py,sha256=n9-TY_32304RZ4N6
252
252
  rapidata/api_client/models/query_campaigns_model.py,sha256=QFN637qh7qG0QjuJfTpimR57ACtItxTKn18rbdE-BKM,4138
253
253
  rapidata/api_client/models/query_model.py,sha256=FP9dAgpgnlyxQfQhYWSvyTdRTjd9fDBdj8tdijLdw2g,4052
254
254
  rapidata/api_client/models/query_orders_model.py,sha256=eRLuM82LOiKNFywC7vfKlAUvCGolUfTU5w-GUO4TAdA,4126
255
- rapidata/api_client/models/query_validation_rapids_result.py,sha256=W8QikBXAPdgpHd2yEGJgx6frCXCglmhJ7micZ8DCfWQ,4964
255
+ rapidata/api_client/models/query_validation_rapids_result.py,sha256=iuAE5oNLw2eS6WDO9qjvYAtMhSty6Rn8DaSqScn15U8,5340
256
256
  rapidata/api_client/models/query_validation_rapids_result_asset.py,sha256=PuiKaLZqhcRSoTqtvK1CQa_gIN9FeDAfPSJaOqO-ke0,7269
257
257
  rapidata/api_client/models/query_validation_rapids_result_paged_result.py,sha256=Xe6rexVMSW9tWcO3w93tGmggpXN-lgPNqn9-lkWe_9o,3591
258
258
  rapidata/api_client/models/query_validation_rapids_result_payload.py,sha256=FELmkIBU6aHLv0a283-RdELd4AGZVLKL6SIwYhftm_4,11854
@@ -262,12 +262,14 @@ rapidata/api_client/models/query_workflows_model.py,sha256=Y3HuKLbtLlejEQsJyVZ-v
262
262
  rapidata/api_client/models/ranked_datapoint_model.py,sha256=c9Q5iqRPvNd-2x_1t9SRE7wI0optxB67Z-tE8V4D2lM,3087
263
263
  rapidata/api_client/models/rapid_answer.py,sha256=3C5-U_-PYl9yZADf6OIy3GUhY56DqdwPKN3cXD4XE2k,3380
264
264
  rapidata/api_client/models/rapid_answer_result.py,sha256=AV1q_EaD60n72CAW2S0fMUmK4ufFyhtEjIJK8zrUt-E,12350
265
+ rapidata/api_client/models/rapid_issue.py,sha256=EXUotHQM2g0M3P0kRsmhZ-WcvPDgKxx5COb30ZArdoc,895
265
266
  rapidata/api_client/models/rapid_result_model.py,sha256=JVUSCNErUbZimSIelKb7pgXjxdaHFX6ZjKahuRLbe7w,3048
266
267
  rapidata/api_client/models/rapid_result_model_result.py,sha256=cGkLszNGFP08CVsLJJkkYD9Zz2lt8GuIVfaKlwYFI7c,12397
267
268
  rapidata/api_client/models/rapid_skipped_model.py,sha256=3_YXlv4B8teo_xXWlXUMX2ybxgM29PWSw0JMha7qajY,2808
268
269
  rapidata/api_client/models/read_bridge_token_keys_result.py,sha256=98oxr4rkv-apl2cKNW2CvADVq-RszAAkgrIaQkxDVMs,5006
269
270
  rapidata/api_client/models/register_temporary_customer_model.py,sha256=E4GPQtiA8FKa7aDUgQmQqOQuKm-CpWBfcRKhKWkMTSg,2643
270
271
  rapidata/api_client/models/register_temporary_customer_result.py,sha256=uxMFNwPaQvMp0MziTBbllhFlCfaRlyx6gRAFJfRKl8o,4200
272
+ rapidata/api_client/models/report_model.py,sha256=bZA_Gr1EsiwLwOtNnuuPMJTsrSllvxSaLXwJSnR0E5Y,3335
271
273
  rapidata/api_client/models/request_password_reset_command.py,sha256=6bSYVzN3KNKd5u0Xl0vSjHRKI2uowIavU_wMbmLktvo,3174
272
274
  rapidata/api_client/models/root_filter.py,sha256=ee1rX_2CSUV7etI1sryrgZU1s85ifKVQ8PhpD6PMzRE,3363
273
275
  rapidata/api_client/models/scrub_payload.py,sha256=tX-QU_a8GUQWBPb1GofGLFupucZF5TY2LUpqdyfHDSI,2920
@@ -343,11 +345,11 @@ rapidata/api_client/models/workflow_split_model.py,sha256=zthOSaUl8dbLhLymLK_lrP
343
345
  rapidata/api_client/models/workflow_split_model_filter_configs_inner.py,sha256=1Fx9uZtztiiAdMXkj7YeCqt7o6VkG9lKf7D7UP_h088,7447
344
346
  rapidata/api_client/models/workflow_state.py,sha256=5LAK1se76RCoozeVB6oxMPb8p_5bhLZJqn7q5fFQWis,850
345
347
  rapidata/api_client/rest.py,sha256=zmCIFQC2l1t-KZcq-TgEm3vco3y_LK6vRm3Q07K-xRI,9423
346
- rapidata/api_client_README.md,sha256=ggzFrD19E_A4jX9Oz9VfKgmgyz6ywnnA7OwScumZcSU,38558
348
+ rapidata/api_client_README.md,sha256=TwdMWXKwwnzD5CyLjXOqAwKVyMxTJcKewudONv31p40,38830
347
349
  rapidata/rapidata_client/__init__.py,sha256=kkT6FMU4P8rTdYKTJgZNcyptr-Rq1iZmsyLIyRCwpYA,896
348
350
  rapidata/rapidata_client/assets/__init__.py,sha256=hKgrOSn8gJcBSULaf4auYhH1S1N5AfcwIhBSq1BOKwQ,323
349
351
  rapidata/rapidata_client/assets/_base_asset.py,sha256=B2YWH1NgaeYUYHDW3OPpHM_bqawHbH4EjnRCE2BYwiM,298
350
- rapidata/rapidata_client/assets/_media_asset.py,sha256=-b4x4q1fAN-pwd07R3QCa_Hl2hgYrTDzTEhUE6unBoU,5968
352
+ rapidata/rapidata_client/assets/_media_asset.py,sha256=dji8rM2W6TtzIPDiVVyaHfEDNTmu8uo3rsgrPUcbqDE,5949
351
353
  rapidata/rapidata_client/assets/_multi_asset.py,sha256=o4_-OvovADSVpl0tr6fPzRR_gHCcIQKfeZKcoFDFBLo,1667
352
354
  rapidata/rapidata_client/assets/_text_asset.py,sha256=itoe3vicn41LbdJ7UeydImORUo9iDL0SZu-ptOlbMRM,618
353
355
  rapidata/rapidata_client/assets/data_type_enum.py,sha256=ELC-ymeKnQlfNAzfqsI7MmUuRiGYamCHVcTc0qR6Fm4,185
@@ -390,7 +392,7 @@ rapidata/rapidata_client/selection/capped_selection.py,sha256=SwDpFd2GCDwxY6IP1B
390
392
  rapidata/rapidata_client/selection/conditional_validation_selection.py,sha256=L3Ixi-ZI86R6-ZiRc5WshRb9ucoF48hFDseEy-0-AZM,2074
391
393
  rapidata/rapidata_client/selection/demographic_selection.py,sha256=91M7CeQIcKRw9NrRVNiotxDCXxfUcEQUxpwW27mSsCM,1097
392
394
  rapidata/rapidata_client/selection/labeling_selection.py,sha256=v26QogjmraFfRoSIgWZl6NMIW_TqbGeuCI2p4HxCeOM,657
393
- rapidata/rapidata_client/selection/rapidata_selections.py,sha256=LN0vWNv1mcFZakzMU9n_vR6Mw0V2Jqe0h1200yP6RTE,962
395
+ rapidata/rapidata_client/selection/rapidata_selections.py,sha256=9nb0nS9WGSRpPpwYfLD5Xl77sa3ZHfcYEo0gpDHGg6s,1312
394
396
  rapidata/rapidata_client/selection/validation_selection.py,sha256=sedeIa8lpXVXKtFJA9IDeRvo9A1Ne4ZGcepaWDUGhCU,851
395
397
  rapidata/rapidata_client/settings/__init__.py,sha256=DTEAT_YykwodZJXqKYOtWRwimLCA-Jxo0F0d-H6A3vM,458
396
398
  rapidata/rapidata_client/settings/_rapidata_setting.py,sha256=MD5JhhogSLLrjFKjvL3JhMszOMCygyqLF-st0EwMSkw,352
@@ -404,14 +406,12 @@ rapidata/rapidata_client/settings/play_video_until_the_end.py,sha256=LLHx2_72k5Z
404
406
  rapidata/rapidata_client/settings/rapidata_settings.py,sha256=Kjxm4GStrpfLKylx84BiKdEQOjvNfO74DiSChmH63fg,1165
405
407
  rapidata/rapidata_client/settings/translation_behaviour.py,sha256=i9n_H0eKJyKW6m3MKH_Cm1XEKWVEWsAV_79xGmGIC-4,742
406
408
  rapidata/rapidata_client/validation/__init__.py,sha256=s5wHVtcJkncXSFuL9I0zNwccNOKpWAqxqUjkeohzi2E,24
407
- rapidata/rapidata_client/validation/_validation_rapid_parts.py,sha256=U2aHIuCni7FjofcyY-iTeGAOt2r0DztUtiH5Qk_xgpc,2529
408
- rapidata/rapidata_client/validation/_validation_set_builder.py,sha256=nOiGumrok_tt8DhmaOIM5fPwkvj_RsLPbbUPnz8Ap8M,18010
409
- rapidata/rapidata_client/validation/rapidata_validation_set.py,sha256=j0Ps1eakG1NV7KxFqahj6KeDOMT2Air2s82X8k_OW1k,11948
409
+ rapidata/rapidata_client/validation/rapidata_validation_set.py,sha256=c4ywPef1yGwx0D9wTzj7465p-VQa1V6WnHJUU5ReK7Q,646
410
410
  rapidata/rapidata_client/validation/rapids/__init__.py,sha256=WU5PPwtTJlte6U90MDakzx4I8Y0laj7siw9teeXj5R0,21
411
411
  rapidata/rapidata_client/validation/rapids/box.py,sha256=t3_Kn6doKXdnJdtbwefXnYKPiTKHneJl9E2inkDSqL8,589
412
- rapidata/rapidata_client/validation/rapids/rapids.py,sha256=rdkdN7Z7oJXJihi7tfs0vb7l5qQxL6gP_tNKuFpc26M,6680
413
- rapidata/rapidata_client/validation/rapids/rapids_manager.py,sha256=1h8GVdq6UG_aWsAHEFPnwmpTLaApsYoTeUER1hD8TsA,7802
414
- rapidata/rapidata_client/validation/validation_set_manager.py,sha256=fHfOu3GnrmWZ_0f2l6CjPtGEYt1xR1NZJbykJABpM9M,19897
412
+ rapidata/rapidata_client/validation/rapids/rapids.py,sha256=sZEzKj4FdVChm_rUwcmG_v7X-yO5Eh4q1g54T4c4puc,3507
413
+ rapidata/rapidata_client/validation/rapids/rapids_manager.py,sha256=rDmxYkv067O-S95TNc789FktfCPBCudyzBRLSArmfus,14236
414
+ rapidata/rapidata_client/validation/validation_set_manager.py,sha256=I2ICynEOjgmp5KDUceXCKGyKGSt21N_GTn1Mi4-6DTc,23295
415
415
  rapidata/rapidata_client/workflow/__init__.py,sha256=eFRx0fm280alXpds6hYcnxN_yERlabF9B5sTdPFsL1g,430
416
416
  rapidata/rapidata_client/workflow/_base_workflow.py,sha256=XyIZFKS_RxAuwIHS848S3AyLEHqd07oTD_5jm2oUbsw,762
417
417
  rapidata/rapidata_client/workflow/_classify_workflow.py,sha256=9bT54wxVJgxC-zLk6MVNbseFpzYrvFPjt7DHvxqYfnk,1736
@@ -427,7 +427,7 @@ rapidata/service/credential_manager.py,sha256=Of0BQs_V1T7rkrWX9groLX790nOknaARwn
427
427
  rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
428
428
  rapidata/service/openapi_service.py,sha256=Z4NrAuilLlIWBdGOv6otz36tHS_vvU36w5jmvOUTmqo,3198
429
429
  rapidata/service/token_manager.py,sha256=JZ5YbR5Di8dO3H4kK11d0kzWlrXxjgCmeNkHA4AapCM,6425
430
- rapidata-2.3.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
431
- rapidata-2.3.2.dist-info/METADATA,sha256=rIYc7aJzmeul3D99ZziRDN8FWHC5DafGGr2MpQOBlAk,1107
432
- rapidata-2.3.2.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
433
- rapidata-2.3.2.dist-info/RECORD,,
430
+ rapidata-2.4.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
431
+ rapidata-2.4.0.dist-info/METADATA,sha256=ZbXMkT2eRglrqdHTuUgOJlRhKOg8BneVJ2rPRs2-U6k,1107
432
+ rapidata-2.4.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
433
+ rapidata-2.4.0.dist-info/RECORD,,
@@ -1,61 +0,0 @@
1
- from dataclasses import dataclass
2
- from typing import Any
3
-
4
- from rapidata.api_client.models.attach_category_truth import AttachCategoryTruth
5
- from rapidata.api_client.models.bounding_box_payload import BoundingBoxPayload
6
- from rapidata.api_client.models.bounding_box_truth import BoundingBoxTruth
7
- from rapidata.api_client.models.classify_payload import ClassifyPayload
8
- from rapidata.api_client.models.compare_payload import ComparePayload
9
- from rapidata.api_client.models.compare_truth import CompareTruth
10
- from rapidata.api_client.models.empty_validation_truth import EmptyValidationTruth
11
- from rapidata.api_client.models.free_text_payload import FreeTextPayload
12
- from rapidata.api_client.models.line_payload import LinePayload
13
- from rapidata.api_client.models.line_truth import LineTruth
14
- from rapidata.api_client.models.locate_box_truth import LocateBoxTruth
15
- from rapidata.api_client.models.locate_payload import LocatePayload
16
- from rapidata.api_client.models.named_entity_payload import NamedEntityPayload
17
- from rapidata.api_client.models.named_entity_truth import NamedEntityTruth
18
- from rapidata.api_client.models.polygon_payload import PolygonPayload
19
- from rapidata.api_client.models.polygon_truth import PolygonTruth
20
- from rapidata.api_client.models.transcription_payload import TranscriptionPayload
21
- from rapidata.api_client.models.transcription_truth import TranscriptionTruth
22
- from rapidata.api_client.models.scrub_payload import ScrubPayload
23
- from rapidata.api_client.models.scrub_truth import ScrubTruth
24
-
25
- from rapidata.rapidata_client.assets._media_asset import MediaAsset
26
- from rapidata.rapidata_client.assets._multi_asset import MultiAsset
27
- from rapidata.rapidata_client.assets._text_asset import TextAsset
28
- from rapidata.rapidata_client.metadata._base_metadata import Metadata
29
- from typing import Sequence
30
-
31
-
32
- @dataclass
33
- class ValidatioRapidParts:
34
- instruction: str
35
- asset: MediaAsset | TextAsset | MultiAsset
36
- payload: (
37
- BoundingBoxPayload
38
- | ClassifyPayload
39
- | ComparePayload
40
- | FreeTextPayload
41
- | LinePayload
42
- | LocatePayload
43
- | NamedEntityPayload
44
- | PolygonPayload
45
- | TranscriptionPayload
46
- | ScrubPayload
47
- )
48
- truths: (
49
- AttachCategoryTruth
50
- | BoundingBoxTruth
51
- | CompareTruth
52
- | EmptyValidationTruth
53
- | LineTruth
54
- | LocateBoxTruth
55
- | NamedEntityTruth
56
- | PolygonTruth
57
- | TranscriptionTruth
58
- | ScrubTruth
59
- )
60
- metadata: Sequence[Metadata]
61
- randomCorrectProbability: float