rapidata 2.40.5__py3-none-any.whl → 2.40.7__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.
- rapidata/__init__.py +1 -1
- rapidata/rapidata_client/api/rapidata_api_client.py +3 -3
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +3 -3
- rapidata/rapidata_client/order/_rapidata_order_builder.py +4 -2
- {rapidata-2.40.5.dist-info → rapidata-2.40.7.dist-info}/METADATA +1 -1
- {rapidata-2.40.5.dist-info → rapidata-2.40.7.dist-info}/RECORD +8 -8
- {rapidata-2.40.5.dist-info → rapidata-2.40.7.dist-info}/LICENSE +0 -0
- {rapidata-2.40.5.dist-info → rapidata-2.40.7.dist-info}/WHEEL +0 -0
rapidata/__init__.py
CHANGED
|
@@ -154,7 +154,7 @@ class RapidataApiClient(ApiClient):
|
|
|
154
154
|
|
|
155
155
|
# Create a span in the current SDK trace that links to the backend
|
|
156
156
|
with tracer.start_span(
|
|
157
|
-
f"
|
|
157
|
+
f"{str(method).upper()} {url}",
|
|
158
158
|
links=[link_to_backend],
|
|
159
159
|
) as sdk_request_span:
|
|
160
160
|
# Set attributes on the SDK span
|
|
@@ -171,7 +171,7 @@ class RapidataApiClient(ApiClient):
|
|
|
171
171
|
# Now create the initial span for the backend trace that will be sent
|
|
172
172
|
# This span will be the starting point for the backend trace
|
|
173
173
|
with tracer.start_span(
|
|
174
|
-
f"
|
|
174
|
+
f"{str(method).upper()} {url}",
|
|
175
175
|
context=trace.set_span_in_context(
|
|
176
176
|
trace.NonRecordingSpan(backend_span_context)
|
|
177
177
|
),
|
|
@@ -194,7 +194,7 @@ class RapidataApiClient(ApiClient):
|
|
|
194
194
|
"00-"
|
|
195
195
|
+ format_trace_id(backend_trace_id)
|
|
196
196
|
+ "-"
|
|
197
|
-
+ format_span_id(
|
|
197
|
+
+ format_span_id(backend_initial_span.get_span_context().span_id)
|
|
198
198
|
+ "-"
|
|
199
199
|
+ f"{backend_span_context.trace_flags:02x}"
|
|
200
200
|
)
|
|
@@ -31,9 +31,9 @@ class RapidataBenchmarkManager:
|
|
|
31
31
|
self,
|
|
32
32
|
name: str,
|
|
33
33
|
identifiers: Optional[list[str]] = None,
|
|
34
|
-
prompts: Optional[list[str | None]] = None,
|
|
35
|
-
prompt_assets: Optional[list[str | None]] = None,
|
|
36
|
-
tags: Optional[list[list[str] | None]] = None,
|
|
34
|
+
prompts: Optional[list[str | None] | list[str]] = None,
|
|
35
|
+
prompt_assets: Optional[list[str | None] | list[str]] = None,
|
|
36
|
+
tags: Optional[list[list[str] | None] | list[list[str]]] = None,
|
|
37
37
|
) -> RapidataBenchmark:
|
|
38
38
|
"""
|
|
39
39
|
Creates a new benchmark with the given name, identifiers, prompts, and media assets.
|
|
@@ -38,7 +38,7 @@ from rapidata.rapidata_client.referee import Referee
|
|
|
38
38
|
from rapidata.rapidata_client.referee._naive_referee import NaiveReferee
|
|
39
39
|
from rapidata.rapidata_client.selection._base_selection import RapidataSelection
|
|
40
40
|
from rapidata.rapidata_client.settings import RapidataSetting
|
|
41
|
-
from rapidata.rapidata_client.workflow import Workflow
|
|
41
|
+
from rapidata.rapidata_client.workflow import Workflow, FreeTextWorkflow
|
|
42
42
|
from rapidata.service.openapi_service import OpenAPIService
|
|
43
43
|
from rapidata.rapidata_client.api.rapidata_api_client import (
|
|
44
44
|
suppress_rapidata_error_logging,
|
|
@@ -203,7 +203,9 @@ class RapidataOrderBuilder:
|
|
|
203
203
|
Returns:
|
|
204
204
|
RapidataOrder: The created RapidataOrder instance.
|
|
205
205
|
"""
|
|
206
|
-
if rapidata_config.order.autoValidationSetCreation
|
|
206
|
+
if rapidata_config.order.autoValidationSetCreation and not isinstance(
|
|
207
|
+
self.__workflow, FreeTextWorkflow
|
|
208
|
+
):
|
|
207
209
|
new_validation_set = self._set_validation_set_id()
|
|
208
210
|
else:
|
|
209
211
|
new_validation_set = False
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
rapidata/__init__.py,sha256=
|
|
1
|
+
rapidata/__init__.py,sha256=9xOlmFyO0zXXrwZOsHrSOJxH6KcHCMBVdl1xgv9DA4A,917
|
|
2
2
|
rapidata/api_client/__init__.py,sha256=utY2iWepKJQO_iGz6aIg_qSoqoDkV9pBMAA58pIFE4M,36016
|
|
3
3
|
rapidata/api_client/api/__init__.py,sha256=07qqwzQiBYt5V2BtnzbXhZL2cmVHATyZmCSGshIXLck,1603
|
|
4
4
|
rapidata/api_client/api/benchmark_api.py,sha256=Mlx2qDDJcgPjWvaBnps9dxvVd0re1knG0SyoLUiHKSc,119756
|
|
@@ -571,7 +571,7 @@ rapidata/api_client/rest.py,sha256=rtIMcgINZOUaDFaJIinJkXRSddNJmXvMRMfgO2Ezk2o,1
|
|
|
571
571
|
rapidata/api_client_README.md,sha256=FDf3Z-KzOPBIZGidToHfas8kWtVUYU-PPhhe6w2XmdE,60627
|
|
572
572
|
rapidata/rapidata_client/__init__.py,sha256=vOYH-N4yd5FyHtRq-VLiYCD5n8eRyAXbAlYIr4P_W9E,1176
|
|
573
573
|
rapidata/rapidata_client/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
574
|
-
rapidata/rapidata_client/api/rapidata_api_client.py,sha256=
|
|
574
|
+
rapidata/rapidata_client/api/rapidata_api_client.py,sha256=9385bND7sDuXfmq0AFgea_RrtuT73NA2CWG_9aIoGok,8945
|
|
575
575
|
rapidata/rapidata_client/benchmark/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
576
576
|
rapidata/rapidata_client/benchmark/_detail_mapper.py,sha256=HmzJwR2dojs0c2PaEJ5lwSPtjaqeoPXI7RQk5kwSB9A,944
|
|
577
577
|
rapidata/rapidata_client/benchmark/leaderboard/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -579,7 +579,7 @@ rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py,sha256=BP
|
|
|
579
579
|
rapidata/rapidata_client/benchmark/participant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
580
580
|
rapidata/rapidata_client/benchmark/participant/_participant.py,sha256=lusHE96yTBzfLLmG7M-BBbI-cJQR_kUUST1wx2xwxP8,5066
|
|
581
581
|
rapidata/rapidata_client/benchmark/rapidata_benchmark.py,sha256=muINayPnoEY9ZtPLFxvEHd0lVqu1eyXHzXCqJ6eQ5Zs,21093
|
|
582
|
-
rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py,sha256=
|
|
582
|
+
rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py,sha256=5f7tLU39wyOt8rc-3MEqVdc6ANmP2j6hfzAupTCbHD0,8870
|
|
583
583
|
rapidata/rapidata_client/config/__init__.py,sha256=AdL9mKlOa_xm3spFKPBBdTYzhioQh7-UvXd6t84wlDk,238
|
|
584
584
|
rapidata/rapidata_client/config/logger.py,sha256=nQl9w6wLdvKGJFqtEQWoUBAlDtvYmo3w4ekIx4sNynI,5518
|
|
585
585
|
rapidata/rapidata_client/config/logging_config.py,sha256=ePCh7X6v0Yzkgq1MhFNsHwLdcPEI4mYCCvBDxmWT7sU,2167
|
|
@@ -631,7 +631,7 @@ rapidata/rapidata_client/filter/rapidata_filters.py,sha256=B8ptQsaAn1e14Grv8xBYQ
|
|
|
631
631
|
rapidata/rapidata_client/filter/response_count_filter.py,sha256=i2u2YQD3_RLQRZyqAceAGLQS3es97Q2n8KTlgfDYMko,2332
|
|
632
632
|
rapidata/rapidata_client/filter/user_score_filter.py,sha256=4B3Zzp7aosDFmte3nLPTlXMN4zatT6Wcq5QLIoXqhgI,1910
|
|
633
633
|
rapidata/rapidata_client/order/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
634
|
-
rapidata/rapidata_client/order/_rapidata_order_builder.py,sha256=
|
|
634
|
+
rapidata/rapidata_client/order/_rapidata_order_builder.py,sha256=Yo7It_vy_AVEKS7w1DppW8vWUBIqsmQLSmnjOWruG5E,17214
|
|
635
635
|
rapidata/rapidata_client/order/dataset/_progress_tracker.py,sha256=2e9aVMwpdBSO9P3LYn5lygNbtIGzOaJD3b9J7jYaxko,3570
|
|
636
636
|
rapidata/rapidata_client/order/dataset/_rapidata_dataset.py,sha256=ONH56htEvoVZvkSItuTi3_88kaDWohmYYABSoAPEn4Q,10724
|
|
637
637
|
rapidata/rapidata_client/order/rapidata_order.py,sha256=FvZi3t4dARRNsKWvYiNxVvM50AzPwQYR3AzI4utD6OI,14497
|
|
@@ -690,7 +690,7 @@ rapidata/service/credential_manager.py,sha256=T3yL4tXVnibRytxjQkOC-ex3kFGQR5KcKU
|
|
|
690
690
|
rapidata/service/local_file_service.py,sha256=0Q4LdoEtPFKzgXK2oZ1cQ-X7FipakscjGnnBH8dRFRQ,855
|
|
691
691
|
rapidata/service/openapi_service.py,sha256=k3V4eMNcAjBcxEv17lDivK8LV5TEjRTL9B_5KBlhcas,5482
|
|
692
692
|
rapidata/types/__init__.py,sha256=gSGrmWV5gEA6pPfAR5vwSy_DvibO5IjCZDiB7LtlMOQ,6134
|
|
693
|
-
rapidata-2.40.
|
|
694
|
-
rapidata-2.40.
|
|
695
|
-
rapidata-2.40.
|
|
696
|
-
rapidata-2.40.
|
|
693
|
+
rapidata-2.40.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
694
|
+
rapidata-2.40.7.dist-info/METADATA,sha256=p7AlDc3w8TifQ_pz2eHoxmyZYnCg-vRnv0REt2oqle0,1406
|
|
695
|
+
rapidata-2.40.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
696
|
+
rapidata-2.40.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|