arize-phoenix 4.18.0__py3-none-any.whl → 4.20.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 arize-phoenix might be problematic. Click here for more details.
- {arize_phoenix-4.18.0.dist-info → arize_phoenix-4.20.0.dist-info}/METADATA +1 -1
- {arize_phoenix-4.18.0.dist-info → arize_phoenix-4.20.0.dist-info}/RECORD +19 -19
- phoenix/server/api/context.py +1 -1
- phoenix/server/api/dataloaders/annotation_summaries.py +10 -10
- phoenix/server/api/dataloaders/span_annotations.py +6 -9
- phoenix/server/api/mutations/dataset_mutations.py +35 -1
- phoenix/server/api/routers/v1/spans.py +3 -1
- phoenix/server/api/routers/v1/traces.py +3 -1
- phoenix/server/api/types/Project.py +4 -4
- phoenix/server/api/types/Span.py +14 -13
- phoenix/server/static/.vite/manifest.json +9 -9
- phoenix/server/static/assets/{components-B2sHrnz0.js → components-CAummAJx.js} +1 -1
- phoenix/server/static/assets/{index-BIFmgnip.js → index-Cg5hdf3g.js} +1 -1
- phoenix/server/static/assets/{pages-BTHjBGHq.js → pages-BU__X1UX.js} +47 -47
- phoenix/session/client.py +2 -2
- phoenix/version.py +1 -1
- {arize_phoenix-4.18.0.dist-info → arize_phoenix-4.20.0.dist-info}/WHEEL +0 -0
- {arize_phoenix-4.18.0.dist-info → arize_phoenix-4.20.0.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-4.18.0.dist-info → arize_phoenix-4.20.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -5,7 +5,7 @@ phoenix/exceptions.py,sha256=n2L2KKuecrdflB9MsCdAYCiSEvGJptIsfRkXMoJle7A,169
|
|
|
5
5
|
phoenix/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
6
6
|
phoenix/services.py,sha256=aTxhcOA1pZHB6U-B3TEcp6fqDF5oT0xCUvEUNMZVTUQ,5175
|
|
7
7
|
phoenix/settings.py,sha256=cO-qgis_S27nHirTobYI9hHPfZH18R--WMmxNdsVUwc,273
|
|
8
|
-
phoenix/version.py,sha256=
|
|
8
|
+
phoenix/version.py,sha256=5ec26x4UvCA89hZlcWfH3hpX6Ots_JFnmoRZriIx4eY,23
|
|
9
9
|
phoenix/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
phoenix/core/embedding_dimension.py,sha256=zKGbcvwOXgLf-yrJBpQyKtd-LEOPRKHnUToyAU8Owis,87
|
|
11
11
|
phoenix/core/model.py,sha256=km_a--PBHOuA337ClRw9xqhOHhrUT6Rl9pz_zV0JYkQ,4843
|
|
@@ -73,13 +73,13 @@ phoenix/server/telemetry.py,sha256=T_2OKrxNViAeaANlNspEekg_Y5uZIFWvKAnpz8Aoqvk,2
|
|
|
73
73
|
phoenix/server/thread_server.py,sha256=RwXQGP_QhGD7le6WB7xEygEEuwBl5Ck_Zo8xGIYGi9M,2135
|
|
74
74
|
phoenix/server/types.py,sha256=o3uwy8NvfLO-j86v2Dl3irko6er0hvB_x4Df3S1DveM,460
|
|
75
75
|
phoenix/server/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
76
|
-
phoenix/server/api/context.py,sha256=
|
|
76
|
+
phoenix/server/api/context.py,sha256=Fk0pwRAYxnG5gplRxdJOh4dzA_QwwU1mX_CVBdWtwGw,2940
|
|
77
77
|
phoenix/server/api/interceptor.py,sha256=ykDnoC_apUd-llVli3m1CW18kNSIgjz2qZ6m5JmPDu8,1294
|
|
78
78
|
phoenix/server/api/queries.py,sha256=eq2xHaQF-x4k6AGSY6b6mU2pie9bj-AJML6P2Mr0_DM,19886
|
|
79
79
|
phoenix/server/api/schema.py,sha256=BcxdqO5CSGqpKd-AAJHMjFlzaK9oJA8GJuxmMfcdjn4,434
|
|
80
80
|
phoenix/server/api/utils.py,sha256=Kl47G-1A7QKTDrc75BU2QK6HupsG6MWuXxy351FOfKQ,858
|
|
81
81
|
phoenix/server/api/dataloaders/__init__.py,sha256=aWL1--L5fOh6ouBS8VeJRJBtJogKTtRHySPpkr_AUGk,5506
|
|
82
|
-
phoenix/server/api/dataloaders/annotation_summaries.py,sha256=
|
|
82
|
+
phoenix/server/api/dataloaders/annotation_summaries.py,sha256=Wv8AORZoGd5TJ4Y-em8iqJu87AMpZP7lWOTr-SML-x8,5560
|
|
83
83
|
phoenix/server/api/dataloaders/average_experiment_run_latency.py,sha256=q091UmkXx37OBKh7L-GJ5LXHyRXfX2w4XTk1NMHtPpw,1827
|
|
84
84
|
phoenix/server/api/dataloaders/dataset_example_revisions.py,sha256=i0g8F4akEf3kQOzAvBjO27QwXNsq-kJEM8dtzduxQgY,3720
|
|
85
85
|
phoenix/server/api/dataloaders/dataset_example_spans.py,sha256=-TjdyyJv2c2JiN1OXu6MMmQ-BEKlHXucEDcuObeRVsU,1416
|
|
@@ -95,7 +95,7 @@ phoenix/server/api/dataloaders/latency_ms_quantile.py,sha256=5Y2OQ_GeH1My2573eOm
|
|
|
95
95
|
phoenix/server/api/dataloaders/min_start_or_max_end_times.py,sha256=k82jVllBWkGI6xu2MAltqxdIqyw3DqoVCQcKbi-JsmM,2834
|
|
96
96
|
phoenix/server/api/dataloaders/project_by_name.py,sha256=9p6DW_zXrsB9YGILFV0wkRwiapyHbZ1IgWK9HuHxl30,1105
|
|
97
97
|
phoenix/server/api/dataloaders/record_counts.py,sha256=64OsyiQRDZASlibpQAXtRkzyA_ch89A3TvhSUByxoTI,4215
|
|
98
|
-
phoenix/server/api/dataloaders/span_annotations.py,sha256=
|
|
98
|
+
phoenix/server/api/dataloaders/span_annotations.py,sha256=v3vGkLGTn-n4khxXZY2btgvfXitvytWgBahzrrWEz0I,1078
|
|
99
99
|
phoenix/server/api/dataloaders/span_dataset_examples.py,sha256=BtLZp11fyyeaWGGBPZj2StzFM0m5jxt52zB2nFMVybo,1306
|
|
100
100
|
phoenix/server/api/dataloaders/span_descendants.py,sha256=b7jGTn0Hi22gv2yskloLnf3BG3upS9z5hnKLMT9Sxac,2094
|
|
101
101
|
phoenix/server/api/dataloaders/span_evaluations.py,sha256=IfwXW23GQaWti8F49wSJocWf7Tklf2ZJ0F6aB4cSVHs,1248
|
|
@@ -137,7 +137,7 @@ phoenix/server/api/input_types/TraceAnnotationSort.py,sha256=BzwiUnMh2VsgQYnhDlb
|
|
|
137
137
|
phoenix/server/api/input_types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
138
138
|
phoenix/server/api/mutations/__init__.py,sha256=UKUAhD5NY-ZI7XONnRRkaHoFuuU3idmE4fk6Sjgy18M,776
|
|
139
139
|
phoenix/server/api/mutations/auth.py,sha256=vPRFoj7J6PV6QeODewG4K0PhoOebS5AfMRpbi_wuhyQ,311
|
|
140
|
-
phoenix/server/api/mutations/dataset_mutations.py,sha256=
|
|
140
|
+
phoenix/server/api/mutations/dataset_mutations.py,sha256=5i2_nT4AP36DDoHLLGwJeL7ahlAl9J8JvxiefVPjK9k,24706
|
|
141
141
|
phoenix/server/api/mutations/experiment_mutations.py,sha256=vV2lbJ7ccXZqe-LY7nXx6QxWqhKQE4UNZAFcML-KQ8I,3011
|
|
142
142
|
phoenix/server/api/mutations/export_events_mutations.py,sha256=t_wYBxaqvBJYRoHslh3Bmoxmwlzoy0u8SsBKWIKN5hE,4028
|
|
143
143
|
phoenix/server/api/mutations/project_mutations.py,sha256=d_xtYkYfZ5flpVgEkGknKB8rsEux-zZraczzqAs4e8A,2255
|
|
@@ -155,8 +155,8 @@ phoenix/server/api/routers/v1/experiment_evaluations.py,sha256=xoVhU71U3c1QJSXiK
|
|
|
155
155
|
phoenix/server/api/routers/v1/experiment_runs.py,sha256=7qvLYgqH58nxqhTnJ0hPf0PBfVmZnbxquodSnEGoQxk,6059
|
|
156
156
|
phoenix/server/api/routers/v1/experiments.py,sha256=AFJb8Pi6SDKbIbkDRWUtPjikZIoRhc7cFLWm40l3mPk,9817
|
|
157
157
|
phoenix/server/api/routers/v1/pydantic_compat.py,sha256=FeK8oe2brqu-djsoqRxiKL4tw5cHmi89OHVfCFxYsAo,2890
|
|
158
|
-
phoenix/server/api/routers/v1/spans.py,sha256
|
|
159
|
-
phoenix/server/api/routers/v1/traces.py,sha256=
|
|
158
|
+
phoenix/server/api/routers/v1/spans.py,sha256=4Cf1zYX7h0J4jT3iPpm9-1Jibc2gOV6qTsWpCcdRv-M,8547
|
|
159
|
+
phoenix/server/api/routers/v1/traces.py,sha256=PurZxyh_ECSSKkw2W7GIV6E1WykmLMGn-qQvP1Km9Os,7601
|
|
160
160
|
phoenix/server/api/routers/v1/utils.py,sha256=xvl2v-BKUkqmFVMmgmmWGFKuRBTrUdoiAeT3mCYEE68,3086
|
|
161
161
|
phoenix/server/api/types/Annotation.py,sha256=7Ym7iuVcbwHlw2yIRylz4nATAF_Cm-Z17qcjiooj1cc,751
|
|
162
162
|
phoenix/server/api/types/AnnotationSummary.py,sha256=8B2LIROqcrPOi8hvYygsblKvSEBfSrysnKOV7F36hgA,1518
|
|
@@ -197,13 +197,13 @@ phoenix/server/api/types/MimeType.py,sha256=Zpi6zCalkSFgsvhzvOs-O1gYA04usAi9H__Q
|
|
|
197
197
|
phoenix/server/api/types/Model.py,sha256=BRIzH5xSGiDrAUYvhwDpwxT6--ddS3Xr3vCvP8_vzdo,8051
|
|
198
198
|
phoenix/server/api/types/NumericRange.py,sha256=afEjgF97Go_OvmjMggbPBt-zGM8IONewAyEiKEHRds0,192
|
|
199
199
|
phoenix/server/api/types/PerformanceMetric.py,sha256=W92B7OghEOgzFvmY0LCqpgavHaQggTGshdgfD0yqHX4,350
|
|
200
|
-
phoenix/server/api/types/Project.py,sha256=
|
|
200
|
+
phoenix/server/api/types/Project.py,sha256=w9SMSBSZeir_biPtgsDa8B30ASyGQH1JoBvxIy-Oz-M,15418
|
|
201
201
|
phoenix/server/api/types/PromptResponse.py,sha256=Q8HKtpp8GpUOcxPCzZpkkokidDd6u0aZOv_SuPZZd5Q,630
|
|
202
202
|
phoenix/server/api/types/Retrieval.py,sha256=OhMK2ncjoyp5h1yjKhjlKpoTbQrMHuxmgSFw-AO1rWw,285
|
|
203
203
|
phoenix/server/api/types/ScalarDriftMetricEnum.py,sha256=IUAcRPpgL41WdoIgK6cNk2Te38SspXGyEs-S1fY23_A,232
|
|
204
204
|
phoenix/server/api/types/Segments.py,sha256=m2yoegrxA1Tn7ZAy1rMjjD1isc752MaAXMoffkBlvrM,2921
|
|
205
205
|
phoenix/server/api/types/SortDir.py,sha256=OUpXhlCzCxPoXSDkJJygEs9Rw9pMymfaZUG5zPTrw4Y,152
|
|
206
|
-
phoenix/server/api/types/Span.py,sha256=
|
|
206
|
+
phoenix/server/api/types/Span.py,sha256=Xnq8fgRQlW9whLoya8TPYHyWBhPtvJXCtCD8PBzeVSo,15267
|
|
207
207
|
phoenix/server/api/types/SpanAnnotation.py,sha256=6b5G-b_OoRvDL2ayWk7MkbqarLK-F-pQMx21CpUuNGY,1168
|
|
208
208
|
phoenix/server/api/types/TimeSeries.py,sha256=wjzuxHFqCey0O7Ys25qiXyuqXK8an-osyNWUE8A_8G4,5227
|
|
209
209
|
phoenix/server/api/types/Trace.py,sha256=-nh3A-S_BlQK1VSSOTWqM85l-WwJsRHifxeDi0sFWZE,3246
|
|
@@ -225,10 +225,10 @@ phoenix/server/static/apple-touch-icon-76x76.png,sha256=CT_xT12I0u2i0WU8JzBZBuOQ
|
|
|
225
225
|
phoenix/server/static/apple-touch-icon.png,sha256=fOfpjqGpWYbJ0eAurKsyoZP1EAs6ZVooBJ_SGk2ZkDs,3801
|
|
226
226
|
phoenix/server/static/favicon.ico,sha256=bY0vvCKRftemZfPShwZtE93DiiQdaYaozkPGwNFr6H8,34494
|
|
227
227
|
phoenix/server/static/modernizr.js,sha256=mvK-XtkNqjOral-QvzoqsyOMECXIMu5BQwSVN_wcU9c,2564
|
|
228
|
-
phoenix/server/static/.vite/manifest.json,sha256=
|
|
229
|
-
phoenix/server/static/assets/components-
|
|
230
|
-
phoenix/server/static/assets/index-
|
|
231
|
-
phoenix/server/static/assets/pages-
|
|
228
|
+
phoenix/server/static/.vite/manifest.json,sha256=iHg8InkOETcckHJQlUfToMmMPaocrvCM68tSU6BEU1Q,1929
|
|
229
|
+
phoenix/server/static/assets/components-CAummAJx.js,sha256=LvIzotUMWSCvu2IT9QHFGK_JJB_LYXyFJagHFyu6AVI,184229
|
|
230
|
+
phoenix/server/static/assets/index-Cg5hdf3g.js,sha256=-mDNUU79jpnfsiTaJztdQ_WVKySUcyRbbZyRCztZKJI,7362
|
|
231
|
+
phoenix/server/static/assets/pages-BU__X1UX.js,sha256=tNQZgWWC9ycS2CMKUm5qdRlnhpPfIECvuM8E5AUOAtY,445374
|
|
232
232
|
phoenix/server/static/assets/vendor-BMWfu6zp.js,sha256=AAVTM5SjGUI_CmAWFUFmhpp5VDhvCD-MrEoh-pXXADY,1355423
|
|
233
233
|
phoenix/server/static/assets/vendor-DxkFTwjz.css,sha256=nZrkr0u6NNElFGvpWHk9GTHeGoibCXCli1bE7mXZGZg,1816
|
|
234
234
|
phoenix/server/static/assets/vendor-arizeai-CkyzG9Wl.js,sha256=m1xvoung59IMplKeV-0XmsSPRwu1AJDRxwHbq6BN-oc,296355
|
|
@@ -238,7 +238,7 @@ phoenix/server/static/assets/vendor-three-DwGkEfCM.js,sha256=0D12ZgKzfKCTSdSTKJB
|
|
|
238
238
|
phoenix/server/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
239
239
|
phoenix/server/templates/index.html,sha256=gVpjB8pCMiubdMh2DA9mTCtV5AVTXJH_9u5PmG2t7Vk,4238
|
|
240
240
|
phoenix/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
241
|
-
phoenix/session/client.py,sha256=
|
|
241
|
+
phoenix/session/client.py,sha256=C-NpmDkcyGZHR0vv5gWtteUi01cIorjWnqie9WuZb9s,32663
|
|
242
242
|
phoenix/session/data_extractor.py,sha256=gkEM3WWZAlWGMfRgQopAQlid4cSi6GNco-sdrGir0qc,2788
|
|
243
243
|
phoenix/session/evaluation.py,sha256=aKeV8UVOyq3b7CYOwt3cWuLz0xzvMjX7vlEPILJ_fcs,5311
|
|
244
244
|
phoenix/session/session.py,sha256=l10fiotlO1b-SFehcm8N3aVupdFUYYLiLSBrOCJO9as,26911
|
|
@@ -279,8 +279,8 @@ phoenix/utilities/logging.py,sha256=lDXd6EGaamBNcQxL4vP1au9-i_SXe0OraUDiJOcszSw,
|
|
|
279
279
|
phoenix/utilities/project.py,sha256=8IJuMM4yUMoooPi37sictGj8Etu9rGmq6RFtc9848cQ,436
|
|
280
280
|
phoenix/utilities/re.py,sha256=PDve_OLjRTM8yQQJHC8-n3HdIONi7aNils3ZKRZ5uBM,2045
|
|
281
281
|
phoenix/utilities/span_store.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
282
|
-
arize_phoenix-4.
|
|
283
|
-
arize_phoenix-4.
|
|
284
|
-
arize_phoenix-4.
|
|
285
|
-
arize_phoenix-4.
|
|
286
|
-
arize_phoenix-4.
|
|
282
|
+
arize_phoenix-4.20.0.dist-info/METADATA,sha256=xjeoRvHxOTBnsy4yoMevcdFPYVmwJI0ftKKA4oV4cPQ,11829
|
|
283
|
+
arize_phoenix-4.20.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
284
|
+
arize_phoenix-4.20.0.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
|
|
285
|
+
arize_phoenix-4.20.0.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
|
|
286
|
+
arize_phoenix-4.20.0.dist-info/RECORD,,
|
phoenix/server/api/context.py
CHANGED
|
@@ -54,6 +54,7 @@ class DataLoaders:
|
|
|
54
54
|
latency_ms_quantile: LatencyMsQuantileDataLoader
|
|
55
55
|
min_start_or_max_end_times: MinStartOrMaxEndTimeDataLoader
|
|
56
56
|
record_counts: RecordCountDataLoader
|
|
57
|
+
span_annotations: SpanAnnotationsDataLoader
|
|
57
58
|
span_dataset_examples: SpanDatasetExamplesDataLoader
|
|
58
59
|
span_descendants: SpanDescendantsDataLoader
|
|
59
60
|
span_evaluations: SpanEvaluationsDataLoader
|
|
@@ -62,7 +63,6 @@ class DataLoaders:
|
|
|
62
63
|
trace_evaluations: TraceEvaluationsDataLoader
|
|
63
64
|
trace_row_ids: TraceRowIdsDataLoader
|
|
64
65
|
project_by_name: ProjectByNameDataLoader
|
|
65
|
-
span_annotations: SpanAnnotationsDataLoader
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
ProjectRowId: TypeAlias = int
|
|
@@ -27,12 +27,12 @@ Kind: TypeAlias = Literal["span", "trace"]
|
|
|
27
27
|
ProjectRowId: TypeAlias = int
|
|
28
28
|
TimeInterval: TypeAlias = Tuple[Optional[datetime], Optional[datetime]]
|
|
29
29
|
FilterCondition: TypeAlias = Optional[str]
|
|
30
|
-
|
|
30
|
+
AnnotationName: TypeAlias = str
|
|
31
31
|
|
|
32
32
|
Segment: TypeAlias = Tuple[Kind, ProjectRowId, TimeInterval, FilterCondition]
|
|
33
|
-
Param: TypeAlias =
|
|
33
|
+
Param: TypeAlias = AnnotationName
|
|
34
34
|
|
|
35
|
-
Key: TypeAlias = Tuple[Kind, ProjectRowId, Optional[TimeRange], FilterCondition,
|
|
35
|
+
Key: TypeAlias = Tuple[Kind, ProjectRowId, Optional[TimeRange], FilterCondition, AnnotationName]
|
|
36
36
|
Result: TypeAlias = Optional[AnnotationSummary]
|
|
37
37
|
ResultPosition: TypeAlias = int
|
|
38
38
|
DEFAULT_VALUE: Result = None
|
|
@@ -46,7 +46,7 @@ def _cache_key_fn(key: Key) -> Tuple[Segment, Param]:
|
|
|
46
46
|
return (kind, project_rowid, interval, filter_condition), eval_name
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
_Section: TypeAlias = Tuple[ProjectRowId,
|
|
49
|
+
_Section: TypeAlias = Tuple[ProjectRowId, AnnotationName, Kind]
|
|
50
50
|
_SubKey: TypeAlias = Tuple[TimeInterval, FilterCondition]
|
|
51
51
|
|
|
52
52
|
|
|
@@ -68,8 +68,8 @@ class AnnotationSummaryCache(
|
|
|
68
68
|
del self._cache[section]
|
|
69
69
|
|
|
70
70
|
def _cache_key(self, key: Key) -> Tuple[_Section, _SubKey]:
|
|
71
|
-
(kind, project_rowid, interval, filter_condition),
|
|
72
|
-
return (project_rowid,
|
|
71
|
+
(kind, project_rowid, interval, filter_condition), annotation_name = _cache_key_fn(key)
|
|
72
|
+
return (project_rowid, annotation_name, kind), (interval, filter_condition)
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
class AnnotationSummaryDataLoader(DataLoader[Key, Result]):
|
|
@@ -98,16 +98,16 @@ class AnnotationSummaryDataLoader(DataLoader[Key, Result]):
|
|
|
98
98
|
stmt = _get_stmt(segment, *params.keys())
|
|
99
99
|
async with self._db() as session:
|
|
100
100
|
data = await session.stream(stmt)
|
|
101
|
-
async for
|
|
101
|
+
async for annotation_name, group in groupby(data, lambda row: row.name):
|
|
102
102
|
summary = AnnotationSummary(pd.DataFrame(group))
|
|
103
|
-
for position in params[
|
|
103
|
+
for position in params[annotation_name]:
|
|
104
104
|
results[position] = summary
|
|
105
105
|
return results
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
def _get_stmt(
|
|
109
109
|
segment: Segment,
|
|
110
|
-
*
|
|
110
|
+
*annotation_names: Param,
|
|
111
111
|
) -> Select[Any]:
|
|
112
112
|
kind, project_rowid, (start_time, end_time), filter_condition = segment
|
|
113
113
|
stmt = select()
|
|
@@ -138,7 +138,7 @@ def _get_stmt(
|
|
|
138
138
|
stmt = stmt.order_by(name_column, label_column)
|
|
139
139
|
stmt = stmt.where(models.Trace.project_rowid == project_rowid)
|
|
140
140
|
stmt = stmt.where(or_(score_column.is_not(None), label_column.is_not(None)))
|
|
141
|
-
stmt = stmt.where(name_column.in_(
|
|
141
|
+
stmt = stmt.where(name_column.in_(annotation_names))
|
|
142
142
|
if start_time:
|
|
143
143
|
stmt = stmt.where(start_time <= time_column)
|
|
144
144
|
if end_time:
|
|
@@ -8,12 +8,11 @@ from sqlalchemy import select
|
|
|
8
8
|
from strawberry.dataloader import DataLoader
|
|
9
9
|
from typing_extensions import TypeAlias
|
|
10
10
|
|
|
11
|
-
from phoenix.db import
|
|
12
|
-
from phoenix.server.api.types.SpanAnnotation import SpanAnnotation, to_gql_span_annotation
|
|
11
|
+
from phoenix.db.models import SpanAnnotation as ORMSpanAnnotation
|
|
13
12
|
from phoenix.server.types import DbSessionFactory
|
|
14
13
|
|
|
15
14
|
Key: TypeAlias = int
|
|
16
|
-
Result: TypeAlias = List[
|
|
15
|
+
Result: TypeAlias = List[ORMSpanAnnotation]
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
class SpanAnnotationsDataLoader(DataLoader[Key, Result]):
|
|
@@ -23,11 +22,9 @@ class SpanAnnotationsDataLoader(DataLoader[Key, Result]):
|
|
|
23
22
|
|
|
24
23
|
async def _load_fn(self, keys: List[Key]) -> List[Result]:
|
|
25
24
|
span_annotations_by_id: DefaultDict[Key, Result] = defaultdict(list)
|
|
26
|
-
msa = models.SpanAnnotation
|
|
27
25
|
async with self._db() as session:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
)
|
|
26
|
+
async for span_annotation in await session.stream_scalars(
|
|
27
|
+
select(ORMSpanAnnotation).where(ORMSpanAnnotation.span_rowid.in_(keys))
|
|
28
|
+
):
|
|
29
|
+
span_annotations_by_id[span_annotation.span_rowid].append(span_annotation)
|
|
33
30
|
return [span_annotations_by_id[key] for key in keys]
|
|
@@ -154,6 +154,36 @@ class DatasetMutationMixin:
|
|
|
154
154
|
raise ValueError(
|
|
155
155
|
f"Could not find spans with rowids: {', '.join(map(str, missing_span_rowids))}"
|
|
156
156
|
) # todo: implement error handling types https://github.com/Arize-ai/phoenix/issues/3221
|
|
157
|
+
|
|
158
|
+
span_annotations = (
|
|
159
|
+
await session.execute(
|
|
160
|
+
select(
|
|
161
|
+
models.SpanAnnotation.span_rowid,
|
|
162
|
+
models.SpanAnnotation.name,
|
|
163
|
+
models.SpanAnnotation.label,
|
|
164
|
+
models.SpanAnnotation.score,
|
|
165
|
+
models.SpanAnnotation.explanation,
|
|
166
|
+
models.SpanAnnotation.metadata_,
|
|
167
|
+
models.SpanAnnotation.annotator_kind,
|
|
168
|
+
)
|
|
169
|
+
.select_from(models.SpanAnnotation)
|
|
170
|
+
.where(models.SpanAnnotation.span_rowid.in_(span_rowids))
|
|
171
|
+
)
|
|
172
|
+
).all()
|
|
173
|
+
|
|
174
|
+
span_annotations_by_span: Dict[int, Dict[Any, Any]] = {span.id: {} for span in spans}
|
|
175
|
+
for annotation in span_annotations:
|
|
176
|
+
span_id = annotation.span_rowid
|
|
177
|
+
if span_id not in span_annotations_by_span:
|
|
178
|
+
span_annotations_by_span[span_id] = dict()
|
|
179
|
+
span_annotations_by_span[span_id][annotation.name] = {
|
|
180
|
+
"label": annotation.label,
|
|
181
|
+
"score": annotation.score,
|
|
182
|
+
"explanation": annotation.explanation,
|
|
183
|
+
"metadata": annotation.metadata_,
|
|
184
|
+
"annotator_kind": annotation.annotator_kind,
|
|
185
|
+
}
|
|
186
|
+
|
|
157
187
|
DatasetExample = models.DatasetExample
|
|
158
188
|
dataset_example_rowids = (
|
|
159
189
|
await session.scalars(
|
|
@@ -170,6 +200,7 @@ class DatasetMutationMixin:
|
|
|
170
200
|
assert len(dataset_example_rowids) == len(spans)
|
|
171
201
|
assert all(map(lambda id: isinstance(id, int), dataset_example_rowids))
|
|
172
202
|
DatasetExampleRevision = models.DatasetExampleRevision
|
|
203
|
+
|
|
173
204
|
await session.execute(
|
|
174
205
|
insert(DatasetExampleRevision),
|
|
175
206
|
[
|
|
@@ -178,7 +209,10 @@ class DatasetMutationMixin:
|
|
|
178
209
|
DatasetExampleRevision.dataset_version_id.key: dataset_version_rowid,
|
|
179
210
|
DatasetExampleRevision.input.key: get_dataset_example_input(span),
|
|
180
211
|
DatasetExampleRevision.output.key: get_dataset_example_output(span),
|
|
181
|
-
DatasetExampleRevision.metadata_.key:
|
|
212
|
+
DatasetExampleRevision.metadata_.key: {
|
|
213
|
+
**span.attributes,
|
|
214
|
+
"annotations": span_annotations_by_span[span.id],
|
|
215
|
+
},
|
|
182
216
|
DatasetExampleRevision.revision_kind.key: "CREATE",
|
|
183
217
|
}
|
|
184
218
|
for dataset_example_rowid, span in zip(dataset_example_rowids, spans)
|
|
@@ -23,7 +23,7 @@ from .utils import RequestBody, ResponseBody, add_errors_to_responses
|
|
|
23
23
|
|
|
24
24
|
DEFAULT_SPAN_LIMIT = 1000
|
|
25
25
|
|
|
26
|
-
router = APIRouter(tags=["
|
|
26
|
+
router = APIRouter(tags=["spans"])
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
class SpanQuery(V1RoutesBaseModel):
|
|
@@ -65,6 +65,7 @@ class QuerySpansRequestBody(V1RoutesBaseModel):
|
|
|
65
65
|
operation_id="querySpans",
|
|
66
66
|
summary="Query spans with query DSL",
|
|
67
67
|
responses=add_errors_to_responses([HTTP_404_NOT_FOUND, HTTP_422_UNPROCESSABLE_ENTITY]),
|
|
68
|
+
include_in_schema=False,
|
|
68
69
|
)
|
|
69
70
|
async def query_spans_handler(
|
|
70
71
|
request: Request,
|
|
@@ -189,6 +190,7 @@ class AnnotateSpansResponseBody(ResponseBody[List[InsertedSpanAnnotation]]):
|
|
|
189
190
|
[{"status_code": HTTP_404_NOT_FOUND, "description": "Span not found"}]
|
|
190
191
|
),
|
|
191
192
|
response_description="Span annotations inserted successfully",
|
|
193
|
+
include_in_schema=True,
|
|
192
194
|
)
|
|
193
195
|
async def annotate_spans(
|
|
194
196
|
request: Request,
|
|
@@ -30,7 +30,7 @@ from phoenix.utilities.project import get_project_name
|
|
|
30
30
|
from .pydantic_compat import V1RoutesBaseModel
|
|
31
31
|
from .utils import RequestBody, ResponseBody, add_errors_to_responses
|
|
32
32
|
|
|
33
|
-
router = APIRouter(tags=["traces"]
|
|
33
|
+
router = APIRouter(tags=["traces"])
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
@router.post(
|
|
@@ -57,6 +57,7 @@ router = APIRouter(tags=["traces"], include_in_schema=False)
|
|
|
57
57
|
},
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
+
include_in_schema=False,
|
|
60
61
|
)
|
|
61
62
|
async def post_traces(
|
|
62
63
|
request: Request,
|
|
@@ -145,6 +146,7 @@ class AnnotateTracesResponseBody(ResponseBody[List[InsertedTraceAnnotation]]):
|
|
|
145
146
|
responses=add_errors_to_responses(
|
|
146
147
|
[{"status_code": HTTP_404_NOT_FOUND, "description": "Trace not found"}]
|
|
147
148
|
),
|
|
149
|
+
include_in_schema=False,
|
|
148
150
|
)
|
|
149
151
|
async def annotate_traces(
|
|
150
152
|
request: Request,
|
|
@@ -361,23 +361,23 @@ class Project(Node):
|
|
|
361
361
|
async def trace_annotation_summary(
|
|
362
362
|
self,
|
|
363
363
|
info: Info[Context, None],
|
|
364
|
-
|
|
364
|
+
annotation_name: str,
|
|
365
365
|
time_range: Optional[TimeRange] = UNSET,
|
|
366
366
|
) -> Optional[AnnotationSummary]:
|
|
367
367
|
return await info.context.data_loaders.annotation_summaries.load(
|
|
368
|
-
("trace", self.id_attr, time_range, None,
|
|
368
|
+
("trace", self.id_attr, time_range, None, annotation_name),
|
|
369
369
|
)
|
|
370
370
|
|
|
371
371
|
@strawberry.field
|
|
372
372
|
async def span_annotation_summary(
|
|
373
373
|
self,
|
|
374
374
|
info: Info[Context, None],
|
|
375
|
-
|
|
375
|
+
annotation_name: str,
|
|
376
376
|
time_range: Optional[TimeRange] = UNSET,
|
|
377
377
|
filter_condition: Optional[str] = UNSET,
|
|
378
378
|
) -> Optional[AnnotationSummary]:
|
|
379
379
|
return await info.context.data_loaders.annotation_summaries.load(
|
|
380
|
-
("span", self.id_attr, time_range, filter_condition,
|
|
380
|
+
("span", self.id_attr, time_range, filter_condition, annotation_name),
|
|
381
381
|
)
|
|
382
382
|
|
|
383
383
|
@strawberry.field
|
phoenix/server/api/types/Span.py
CHANGED
|
@@ -7,7 +7,6 @@ from typing import TYPE_CHECKING, Any, List, Mapping, Optional, Sized, cast
|
|
|
7
7
|
import numpy as np
|
|
8
8
|
import strawberry
|
|
9
9
|
from openinference.semconv.trace import EmbeddingAttributes, SpanAttributes
|
|
10
|
-
from sqlalchemy import select
|
|
11
10
|
from strawberry import ID, UNSET
|
|
12
11
|
from strawberry.relay import Node, NodeID
|
|
13
12
|
from strawberry.types import Info
|
|
@@ -20,7 +19,10 @@ from phoenix.server.api.helpers.dataset_helpers import (
|
|
|
20
19
|
get_dataset_example_input,
|
|
21
20
|
get_dataset_example_output,
|
|
22
21
|
)
|
|
23
|
-
from phoenix.server.api.input_types.SpanAnnotationSort import
|
|
22
|
+
from phoenix.server.api.input_types.SpanAnnotationSort import (
|
|
23
|
+
SpanAnnotationColumn,
|
|
24
|
+
SpanAnnotationSort,
|
|
25
|
+
)
|
|
24
26
|
from phoenix.server.api.types.SortDir import SortDir
|
|
25
27
|
from phoenix.server.api.types.SpanAnnotation import to_gql_span_annotation
|
|
26
28
|
from phoenix.trace.attributes import get_attribute_value
|
|
@@ -190,17 +192,16 @@ class Span(Node):
|
|
|
190
192
|
info: Info[Context, None],
|
|
191
193
|
sort: Optional[SpanAnnotationSort] = UNSET,
|
|
192
194
|
) -> List[SpanAnnotation]:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
annotations = await session.scalars(stmt)
|
|
195
|
+
span_id = self.id_attr
|
|
196
|
+
annotations = await info.context.data_loaders.span_annotations.load(span_id)
|
|
197
|
+
sort_key = SpanAnnotationColumn.createdAt.value
|
|
198
|
+
sort_descending = True
|
|
199
|
+
if sort:
|
|
200
|
+
sort_key = sort.col.value
|
|
201
|
+
sort_descending = sort.dir is SortDir.desc
|
|
202
|
+
annotations.sort(
|
|
203
|
+
key=lambda annotation: getattr(annotation, sort_key), reverse=sort_descending
|
|
204
|
+
)
|
|
204
205
|
return [to_gql_span_annotation(annotation) for annotation in annotations]
|
|
205
206
|
|
|
206
207
|
@strawberry.field(
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_components-
|
|
3
|
-
"file": "assets/components-
|
|
2
|
+
"_components-CAummAJx.js": {
|
|
3
|
+
"file": "assets/components-CAummAJx.js",
|
|
4
4
|
"name": "components",
|
|
5
5
|
"imports": [
|
|
6
6
|
"_vendor-BMWfu6zp.js",
|
|
7
7
|
"_vendor-arizeai-CkyzG9Wl.js",
|
|
8
|
-
"_pages-
|
|
8
|
+
"_pages-BU__X1UX.js",
|
|
9
9
|
"_vendor-three-DwGkEfCM.js",
|
|
10
10
|
"_vendor-codemirror-DO3VqEcD.js"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
|
-
"_pages-
|
|
14
|
-
"file": "assets/pages-
|
|
13
|
+
"_pages-BU__X1UX.js": {
|
|
14
|
+
"file": "assets/pages-BU__X1UX.js",
|
|
15
15
|
"name": "pages",
|
|
16
16
|
"imports": [
|
|
17
17
|
"_vendor-BMWfu6zp.js",
|
|
18
|
-
"_components-
|
|
18
|
+
"_components-CAummAJx.js",
|
|
19
19
|
"_vendor-arizeai-CkyzG9Wl.js",
|
|
20
20
|
"_vendor-recharts-BGN0SxgJ.js",
|
|
21
21
|
"_vendor-codemirror-DO3VqEcD.js"
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"name": "vendor-three"
|
|
62
62
|
},
|
|
63
63
|
"index.tsx": {
|
|
64
|
-
"file": "assets/index-
|
|
64
|
+
"file": "assets/index-Cg5hdf3g.js",
|
|
65
65
|
"name": "index",
|
|
66
66
|
"src": "index.tsx",
|
|
67
67
|
"isEntry": true,
|
|
68
68
|
"imports": [
|
|
69
69
|
"_vendor-BMWfu6zp.js",
|
|
70
70
|
"_vendor-arizeai-CkyzG9Wl.js",
|
|
71
|
-
"_components-
|
|
72
|
-
"_pages-
|
|
71
|
+
"_components-CAummAJx.js",
|
|
72
|
+
"_pages-BU__X1UX.js",
|
|
73
73
|
"_vendor-three-DwGkEfCM.js",
|
|
74
74
|
"_vendor-codemirror-DO3VqEcD.js",
|
|
75
75
|
"_vendor-recharts-BGN0SxgJ.js"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Ue,p as Mt,d as je,r as p,j as n,R as q,n as Fn,a as xe,C as Ie,b as B,s as Tt,e as It,f as re,g as Se,h as Oe,i as Me,k as he,l as Dt,m as Et,o as ne,q as Ft,t as Vt,u as _t,v as s,w as m,x as Ee,$ as _,L as Vn,y as Pt,z as Nt,A as Rt,B as Ot,D as sn,F as Fe,E as oe,G as Kt,H as At,I as _n,S as zt,J as $t,Q as cn,K as Gt,M as Bt,N as Qt,P as Ke,O as Pn,T as Ht,U as Zt,V as Ut,W as jt,X as qt,Y as Wt,Z as Jt,_ as Xt,a0 as Yt,a1 as qe,a2 as $,a3 as Nn,a4 as ea,a5 as na,a6 as ta,a7 as aa,a8 as ra}from"./vendor-BMWfu6zp.js";import{u as ia,_ as Z,a as Ve,b as U,c as N,T as A,F as Rn,d as Q,I,e as T,f as j,A as la,g as On,h as C,i as E,j as ae,k as oa,l as sa,P as ca,R as G,m as _e,n as da,o as ua,L as We,p as W,q as J,r as Pe,s as ma,t as Kn,E as pa,v as ga,w as ha,x as fa,y as La,z as ya,B as va}from"./vendor-arizeai-CkyzG9Wl.js";import{u as ba}from"./pages-
|
|
1
|
+
import{c as Ue,p as Mt,d as je,r as p,j as n,R as q,n as Fn,a as xe,C as Ie,b as B,s as Tt,e as It,f as re,g as Se,h as Oe,i as Me,k as he,l as Dt,m as Et,o as ne,q as Ft,t as Vt,u as _t,v as s,w as m,x as Ee,$ as _,L as Vn,y as Pt,z as Nt,A as Rt,B as Ot,D as sn,F as Fe,E as oe,G as Kt,H as At,I as _n,S as zt,J as $t,Q as cn,K as Gt,M as Bt,N as Qt,P as Ke,O as Pn,T as Ht,U as Zt,V as Ut,W as jt,X as qt,Y as Wt,Z as Jt,_ as Xt,a0 as Yt,a1 as qe,a2 as $,a3 as Nn,a4 as ea,a5 as na,a6 as ta,a7 as aa,a8 as ra}from"./vendor-BMWfu6zp.js";import{u as ia,_ as Z,a as Ve,b as U,c as N,T as A,F as Rn,d as Q,I,e as T,f as j,A as la,g as On,h as C,i as E,j as ae,k as oa,l as sa,P as ca,R as G,m as _e,n as da,o as ua,L as We,p as W,q as J,r as Pe,s as ma,t as Kn,E as pa,v as ga,w as ha,x as fa,y as La,z as ya,B as va}from"./vendor-arizeai-CkyzG9Wl.js";import{u as ba}from"./pages-BU__X1UX.js";import{V as Ca}from"./vendor-three-DwGkEfCM.js";import{j as An,E as zn,l as $n,a as Gn,R as Je,n as Xe,p as ka}from"./vendor-codemirror-DO3VqEcD.js";const xa=e=>{const t=a=>({...e,markdownDisplayMode:"text",setMarkdownDisplayMode:r=>{a({markdownDisplayMode:r})},traceStreamingEnabled:!0,setTraceStreamingEnabled:r=>{a({traceStreamingEnabled:r})},showSpanAside:!0,setShowSpanAside:r=>{a({showSpanAside:r})}});return Ue()(Mt(je(t),{name:"arize-phoenix-preferences"}))},Bn=p.createContext(null);function V1({children:e,...t}){const a=p.useRef();return a.current||(a.current=xa(t)),n(Bn.Provider,{value:a.current,children:e})}function dn(e,t){const a=q.useContext(Bn);if(!a)throw new Error("Missing PreferencesContext.Provider in the tree");return Fn(a,e,t)}var K=(e=>(e.primary="primary",e.reference="reference",e.corpus="corpus",e))(K||{});function F(e){throw new Error("Unreachable")}function Ye(e){return typeof e=="number"||e===null}function Sa(e){return typeof e=="string"||e===null}function _1(e){return Array.isArray(e)?e.every(t=>typeof t=="string"):!1}function wa(e){return typeof e=="object"&&e!==null}const en=p.createContext(null);function Ne(){const e=q.useContext(en);if(e===null)throw new Error("useInferences must be used within a InferencesProvider");return e}function P1(e){return n(en.Provider,{value:{primaryInferences:e.primaryInferences,referenceInferences:e.referenceInferences,corpusInferences:e.corpusInferences,getInferencesNameByRole:t=>{var a,r;switch(t){case K.primary:return e.primaryInferences.name;case K.reference:return((a=e.referenceInferences)==null?void 0:a.name)??"reference";case K.corpus:return((r=e.corpusInferences)==null?void 0:r.name)??"corpus";default:F()}}},children:e.children})}const Qn=function(){var e={defaultValue:null,kind:"LocalArgument",name:"clusters"},t={defaultValue:null,kind:"LocalArgument",name:"dataQualityMetricColumnName"},a={defaultValue:null,kind:"LocalArgument",name:"fetchDataQualityMetric"},r={defaultValue:null,kind:"LocalArgument",name:"fetchPerformanceMetric"},i={defaultValue:null,kind:"LocalArgument",name:"performanceMetric"},l=[{alias:null,args:null,kind:"ScalarField",name:"primaryValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"referenceValue",storageKey:null}],o=[{alias:null,args:[{kind:"Variable",name:"clusters",variableName:"clusters"}],concreteType:"Cluster",kind:"LinkedField",name:"clusters",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"eventIds",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"driftRatio",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"primaryToCorpusRatio",storageKey:null},{condition:"fetchDataQualityMetric",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{fields:[{kind:"Variable",name:"columnName",variableName:"dataQualityMetricColumnName"},{kind:"Literal",name:"metric",value:"mean"}],kind:"ObjectValue",name:"metric"}],concreteType:"DatasetValues",kind:"LinkedField",name:"dataQualityMetric",plural:!1,selections:l,storageKey:null}]},{condition:"fetchPerformanceMetric",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{fields:[{kind:"Variable",name:"metric",variableName:"performanceMetric"}],kind:"ObjectValue",name:"metric"}],concreteType:"DatasetValues",kind:"LinkedField",name:"performanceMetric",plural:!1,selections:l,storageKey:null}]}],storageKey:null}];return{fragment:{argumentDefinitions:[e,t,a,r,i],kind:"Fragment",metadata:null,name:"pointCloudStore_clusterMetricsQuery",selections:o,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,a,t,r,i],kind:"Operation",name:"pointCloudStore_clusterMetricsQuery",selections:o},params:{cacheID:"86666967012812887ac0a0149d2d2535",id:null,metadata:{},name:"pointCloudStore_clusterMetricsQuery",operationKind:"query",text:`query pointCloudStore_clusterMetricsQuery(
|
|
2
2
|
$clusters: [ClusterInput!]!
|
|
3
3
|
$fetchDataQualityMetric: Boolean!
|
|
4
4
|
$dataQualityMetricColumnName: String
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as e,d2 as F,v as s,F as P,R as v,w as E,aN as L,d3 as R,d4 as S,d5 as a,d6 as w,d7 as z,b as A,d8 as j}from"./vendor-BMWfu6zp.js";import{S as C,j as k,Z as $,U as _,t as I,a4 as O}from"./vendor-arizeai-CkyzG9Wl.js";import{b2 as T,d as D,R as N,b3 as G,b4 as M}from"./components-
|
|
1
|
+
import{r as d,j as e,d2 as F,v as s,F as P,R as v,w as E,aN as L,d3 as R,d4 as S,d5 as a,d6 as w,d7 as z,b as A,d8 as j}from"./vendor-BMWfu6zp.js";import{S as C,j as k,Z as $,U as _,t as I,a4 as O}from"./vendor-arizeai-CkyzG9Wl.js";import{b2 as T,d as D,R as N,b3 as G,b4 as M}from"./components-CAummAJx.js";import{L as U,E as B,h as q,M as J,a as m,D as K,d as W,b as H,e as V,P as Y,c as Z,T as Q,p as X,f as u,g as ee,i as re,j as g,k as ae,l as h,m as x,n as oe,o as te,q as ne,r as se,s as le,A as ie}from"./pages-BU__X1UX.js";import"./vendor-three-DwGkEfCM.js";import"./vendor-codemirror-DO3VqEcD.js";import"./vendor-recharts-BGN0SxgJ.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const t of o)if(t.type==="childList")for(const l of t.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&c(l)}).observe(document,{childList:!0,subtree:!0});function i(o){const t={};return o.integrity&&(t.integrity=o.integrity),o.referrerPolicy&&(t.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?t.credentials="include":o.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function c(o){if(o.ep)return;o.ep=!0;const t=i(o);fetch(o.href,t)}})();const b="arize-phoenix-feature-flags",p={__CLEAR__:!0};function ce(){const r=localStorage.getItem(b);if(!r)return p;try{const n=JSON.parse(r);return Object.assign({},p,n)}catch{return p}}const f=d.createContext(null);function de(){const r=v.useContext(f);if(r===null)throw new Error("useFeatureFlags must be used within a FeatureFlagsProvider");return r}function pe(r){const[n,i]=d.useState(ce()),c=o=>{localStorage.setItem(b,JSON.stringify(o)),i(o)};return e(f.Provider,{value:{featureFlags:n,setFeatureFlags:c},children:e(me,{children:r.children})})}function me(r){const{children:n}=r,{featureFlags:i,setFeatureFlags:c}=de(),[o,t]=d.useState(!1);return F("ctrl+shift+f",()=>t(!0)),s(P,{children:[n,e(_,{type:"modal",isDismissable:!0,onDismiss:()=>t(!1),children:o&&e(C,{title:"Feature Flags",children:e(k,{height:"size-1000",padding:"size-100",children:Object.keys(i).map(l=>e($,{isSelected:i[l],onChange:y=>c({...i,[l]:y}),children:l},l))})})})]})}function ue(){return e(L,{styles:r=>E`
|
|
2
2
|
body {
|
|
3
3
|
background-color: var(--ac-global-color-grey-75);
|
|
4
4
|
color: var(--ac-global-text-color-900);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as E,a9 as Xn,v as s,j as e,w as K,aa as Ke,r as m,ab as Oe,$ as G,ac as Zn,y as he,z as ke,D as J,F as B,B as Vn,R as De,o as al,ad as nn,ae as oe,af as an,ag as Zi,E as Ta,ah as zn,a7 as ae,a1 as Sn,a2 as U,ai as ce,aj as on,ak as Yi,al as ma,am as ga,an as pa,ao as En,ap as Se,aq as ll,n as tl,a as er,ar as nr,as as ar,at as lr,au as tr,av as ir,c as rr,d as sr,aw as or}from"./vendor-BMWfu6zp.js";import{R as Ce,u as Ie,a as Pe,T as Da,P as il,b as rl,M as za,c as Qa,d as Qn,D as dr,e as cr,f as V,g as sl,h as ge,i as la,j as vn,k as ol,l as Fn,m as Kn,n as dl,o as Me,p as Ae,C as ie,q as ta,r as je,s as Ca,t as On,E as cl,v as ur,w as mr,L as me,x as gr,y as pr,F as yr,z as fr,A as fn,B as ve,S as hr,G as kr,H as ul,I as br,J as Sr,K as Oa,N as vr,O as Fr,Q as Kr,U as xr,V as Tr,W as Dr,X as ml,Y as xn,Z as Cr,_ as Ir,$ as Lr,a0 as _r,a1 as Er,a2 as ln,a3 as Ia,a4 as gl,a5 as pn,a6 as Ka,a7 as mn,a8 as Le,a9 as Rr,aa as Ar,ab as be,ac as pl,ad as ia,ae as xe,af as La,ag as rn,ah as Z,ai as jn,aj as wr,ak as _a,al as Ee,am as Re,an as na,ao as Ea,ap as Pr,aq as Mr,ar as ye,as as we,at as qn,au as Nr,av as $r,aw as Bn,ax as ra,ay as yl,az as fl,aA as Vr,aB as Hn,aC as Tn,aD as Ne,aE as Dn,aF as Cn,aG as zr,aH as ja,aI as hl,aJ as Qr,aK as Or,aL as jr,aM as Yn,aN as qr,aO as Br,aP as Hr,aQ as Gr,aR as Wr,aS as Ur,aT as Jr,aU as Xr,aV as yn,aW as Xe,aX as Zr,aY as Ze,aZ as Yr,a_ as sa,a$ as es,b0 as Ra,b1 as ns}from"./components-
|
|
1
|
+
import{b as E,a9 as Xn,v as s,j as e,w as K,aa as Ke,r as m,ab as Oe,$ as G,ac as Zn,y as he,z as ke,D as J,F as B,B as Vn,R as De,o as al,ad as nn,ae as oe,af as an,ag as Zi,E as Ta,ah as zn,a7 as ae,a1 as Sn,a2 as U,ai as ce,aj as on,ak as Yi,al as ma,am as ga,an as pa,ao as En,ap as Se,aq as ll,n as tl,a as er,ar as nr,as as ar,at as lr,au as tr,av as ir,c as rr,d as sr,aw as or}from"./vendor-BMWfu6zp.js";import{R as Ce,u as Ie,a as Pe,T as Da,P as il,b as rl,M as za,c as Qa,d as Qn,D as dr,e as cr,f as V,g as sl,h as ge,i as la,j as vn,k as ol,l as Fn,m as Kn,n as dl,o as Me,p as Ae,C as ie,q as ta,r as je,s as Ca,t as On,E as cl,v as ur,w as mr,L as me,x as gr,y as pr,F as yr,z as fr,A as fn,B as ve,S as hr,G as kr,H as ul,I as br,J as Sr,K as Oa,N as vr,O as Fr,Q as Kr,U as xr,V as Tr,W as Dr,X as ml,Y as xn,Z as Cr,_ as Ir,$ as Lr,a0 as _r,a1 as Er,a2 as ln,a3 as Ia,a4 as gl,a5 as pn,a6 as Ka,a7 as mn,a8 as Le,a9 as Rr,aa as Ar,ab as be,ac as pl,ad as ia,ae as xe,af as La,ag as rn,ah as Z,ai as jn,aj as wr,ak as _a,al as Ee,am as Re,an as na,ao as Ea,ap as Pr,aq as Mr,ar as ye,as as we,at as qn,au as Nr,av as $r,aw as Bn,ax as ra,ay as yl,az as fl,aA as Vr,aB as Hn,aC as Tn,aD as Ne,aE as Dn,aF as Cn,aG as zr,aH as ja,aI as hl,aJ as Qr,aK as Or,aL as jr,aM as Yn,aN as qr,aO as Br,aP as Hr,aQ as Gr,aR as Wr,aS as Ur,aT as Jr,aU as Xr,aV as yn,aW as Xe,aX as Zr,aY as Ze,aZ as Yr,a_ as sa,a$ as es,b0 as Ra,b1 as ns}from"./components-CAummAJx.js";import{C as kl,D as fe,G as q,H as Ye,J as de,K as as,l as Aa,M as Gn,P as sn,I as w,e as A,N as qe,a as bl,c as le,p as In,q as Ln,t as te,h as x,n as Sl,O as $e,j as T,i as k,L as Pn,Q as vl,f as z,S as W,s as ne,U as ee,V as Fl,W as Kl,X as ls,Y as ts,Z as wa,_ as hn,v as Wn,T as Fe,d as pe,z as oa,r as kn,$ as Q,a0 as xl,b as Mn,E as Pa,a1 as Ma,a2 as is,y as da,u as rs,a3 as ss}from"./vendor-arizeai-CkyzG9Wl.js";import{R as Be,C as Un,X as He,Y as Te,a as Ge,T as We,B as bn,A as Nn,b as Tl,c as Na,L as Dl,d as os,P as ds,e as cs,f as us}from"./vendor-recharts-BGN0SxgJ.js";import{p as $a,R as ca,n as ua,j as ms,E as gs,k as ps,b as ys}from"./vendor-codemirror-DO3VqEcD.js";const Cl=function(){var n=[{alias:null,args:null,concreteType:"Functionality",kind:"LinkedField",name:"functionality",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"modelInferences",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ProjectConnection",kind:"LinkedField",name:"projects",plural:!1,selections:[{alias:null,args:null,concreteType:"ProjectEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"project",args:null,concreteType:"Project",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"endTime",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"homeLoaderQuery",selections:n,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"homeLoaderQuery",selections:n},params:{cacheID:"6926e4e720b443f7b7252b60271944e6",id:null,metadata:{},name:"homeLoaderQuery",operationKind:"query",text:`query homeLoaderQuery {
|
|
2
2
|
functionality {
|
|
3
3
|
modelInferences
|
|
4
4
|
}
|
|
@@ -1091,10 +1091,10 @@ fragment SpanFeedback_annotations on Span {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
`}}}();ut.hash="09b2ee5f96c0192a5618ae6c04c321ae";const mt=function(){var n={defaultValue:null,kind:"LocalArgument",name:"annotationId"},a={defaultValue:null,kind:"LocalArgument",name:"explanation"},l={defaultValue:null,kind:"LocalArgument",name:"label"},t={defaultValue:null,kind:"LocalArgument",name:"name"},i={defaultValue:null,kind:"LocalArgument",name:"score"},r={defaultValue:null,kind:"LocalArgument",name:"spanId"},o=[{items:[{fields:[{kind:"Variable",name:"annotationId",variableName:"annotationId"},{kind:"Literal",name:"annotatorKind",value:"HUMAN"},{kind:"Variable",name:"explanation",variableName:"explanation"},{kind:"Variable",name:"label",variableName:"label"},{kind:"Variable",name:"name",variableName:"name"},{kind:"Variable",name:"score",variableName:"score"}],kind:"ObjectValue",name:"input.0"}],kind:"ListValue",name:"input"}],u=[{kind:"Variable",name:"id",variableName:"spanId"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[n,a,l,t,i,r],kind:"Fragment",metadata:null,name:"EditSpanAnnotationsDialogEditAnnotationMutation",selections:[{alias:null,args:o,concreteType:"SpanAnnotationMutationPayload",kind:"LinkedField",name:"patchSpanAnnotations",plural:!1,selections:[{alias:null,args:null,concreteType:"Query",kind:"LinkedField",name:"query",plural:!1,selections:[{alias:null,args:u,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"EditSpanAnnotationsDialog_spanAnnotations"}],type:"Span",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[r,n,t,l,i,a],kind:"Operation",name:"EditSpanAnnotationsDialogEditAnnotationMutation",selections:[{alias:null,args:o,concreteType:"SpanAnnotationMutationPayload",kind:"LinkedField",name:"patchSpanAnnotations",plural:!1,selections:[{alias:null,args:null,concreteType:"Query",kind:"LinkedField",name:"query",plural:!1,selections:[{alias:null,args:u,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isNode"},d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SpanAnnotation",kind:"LinkedField",name:"spanAnnotations",plural:!0,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"annotatorKind",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"explanation",storageKey:null}],storageKey:null}],type:"Span",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{cacheID:"
|
|
1094
|
+
`}}}();ut.hash="09b2ee5f96c0192a5618ae6c04c321ae";const mt=function(){var n={defaultValue:null,kind:"LocalArgument",name:"annotationId"},a={defaultValue:null,kind:"LocalArgument",name:"explanation"},l={defaultValue:null,kind:"LocalArgument",name:"label"},t={defaultValue:null,kind:"LocalArgument",name:"name"},i={defaultValue:null,kind:"LocalArgument",name:"score"},r={defaultValue:null,kind:"LocalArgument",name:"spanId"},o=[{items:[{fields:[{kind:"Variable",name:"annotationId",variableName:"annotationId"},{kind:"Literal",name:"annotatorKind",value:"HUMAN"},{kind:"Variable",name:"explanation",variableName:"explanation"},{kind:"Variable",name:"label",variableName:"label"},{kind:"Variable",name:"name",variableName:"name"},{kind:"Variable",name:"score",variableName:"score"}],kind:"ObjectValue",name:"input.0"}],kind:"ListValue",name:"input"}],u=[{kind:"Variable",name:"id",variableName:"spanId"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[n,a,l,t,i,r],kind:"Fragment",metadata:null,name:"EditSpanAnnotationsDialogEditAnnotationMutation",selections:[{alias:null,args:o,concreteType:"SpanAnnotationMutationPayload",kind:"LinkedField",name:"patchSpanAnnotations",plural:!1,selections:[{alias:null,args:null,concreteType:"Query",kind:"LinkedField",name:"query",plural:!1,selections:[{alias:null,args:u,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"EditSpanAnnotationsDialog_spanAnnotations"}],type:"Span",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[r,n,t,l,i,a],kind:"Operation",name:"EditSpanAnnotationsDialogEditAnnotationMutation",selections:[{alias:null,args:o,concreteType:"SpanAnnotationMutationPayload",kind:"LinkedField",name:"patchSpanAnnotations",plural:!1,selections:[{alias:null,args:null,concreteType:"Query",kind:"LinkedField",name:"query",plural:!1,selections:[{alias:null,args:u,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isNode"},d,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SpanAnnotation",kind:"LinkedField",name:"spanAnnotations",plural:!0,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"annotatorKind",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"explanation",storageKey:null}],storageKey:null}],type:"Span",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{cacheID:"8b7ea6d08a6f8f06744567701ccb5f34",id:null,metadata:{},name:"EditSpanAnnotationsDialogEditAnnotationMutation",operationKind:"mutation",text:`mutation EditSpanAnnotationsDialogEditAnnotationMutation(
|
|
1095
1095
|
$spanId: GlobalID!
|
|
1096
1096
|
$annotationId: GlobalID!
|
|
1097
|
-
$name: String
|
|
1097
|
+
$name: String!
|
|
1098
1098
|
$label: String
|
|
1099
1099
|
$score: Float
|
|
1100
1100
|
$explanation: String
|
|
@@ -1124,7 +1124,7 @@ fragment EditSpanAnnotationsDialog_spanAnnotations on Span {
|
|
|
1124
1124
|
explanation
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
|
-
`}}}();mt.hash="
|
|
1127
|
+
`}}}();mt.hash="46647cda8c9874c89d8a4034bf82fe14";const gt=function(){var n=[{defaultValue:null,kind:"LocalArgument",name:"id"}],a=[{kind:"Variable",name:"id",variableName:"id"}],l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"EditSpanAnnotationsDialogSpanAnnotationsQuery",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"EditSpanAnnotationsDialog_spanAnnotations"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"EditSpanAnnotationsDialogSpanAnnotationsQuery",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isNode"},l,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SpanAnnotation",kind:"LinkedField",name:"spanAnnotations",plural:!0,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"annotatorKind",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"explanation",storageKey:null}],storageKey:null}],type:"Span",abstractKey:null}],storageKey:null}]},params:{cacheID:"8649eb1dd42a29a0d38b9a1538490de4",id:null,metadata:{},name:"EditSpanAnnotationsDialogSpanAnnotationsQuery",operationKind:"query",text:`query EditSpanAnnotationsDialogSpanAnnotationsQuery(
|
|
1128
1128
|
$id: GlobalID!
|
|
1129
1129
|
) {
|
|
1130
1130
|
node(id: $id) {
|
|
@@ -1477,7 +1477,7 @@ fragment DatasetPicker__datasets on Query {
|
|
|
1477
1477
|
`,children:n})}function Kd({children:n}){return e("div",{"data-testid":"scrolling-panel-content",css:K`
|
|
1478
1478
|
height: 100%;
|
|
1479
1479
|
overflow-y: auto;
|
|
1480
|
-
`,children:n})}function Su(){const{traceId:n,projectId:a}=Oe(),l=ae();return e(ee,{type:"slideOver",isDismissable:!0,onDismiss:()=>l(`/projects/${a}`),children:e(W,{size:"fullscreen",title:"Trace Details",children:e(Lt,{traceId:n,projectId:a})})})}const _t=function(){var n=[{defaultValue:null,kind:"LocalArgument",name:"id"},{defaultValue:null,kind:"LocalArgument",name:"timeRange"}],a=[{kind:"Variable",name:"id",variableName:"id"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i={kind:"Literal",name:"first",value:100},r={kind:"Literal",name:"sort",value:{col:"startTime",dir:"desc"}},o={kind:"Variable",name:"timeRange",variableName:"timeRange"},u=[i,r,o],d={alias:null,args:null,kind:"ScalarField",name:"spanKind",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"metadata",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"startTime",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"latencyMs",storageKey:null},y={alias:null,args:null,concreteType:"SpanContext",kind:"LinkedField",name:"context",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"spanId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"traceId",storageKey:null}],storageKey:null},b=[{alias:"value",args:null,kind:"ScalarField",name:"truncatedValue",storageKey:null}],S={alias:null,args:null,concreteType:"SpanIOValue",kind:"LinkedField",name:"input",plural:!1,selections:b,storageKey:null},h={alias:null,args:null,concreteType:"SpanIOValue",kind:"LinkedField",name:"output",plural:!1,selections:b,storageKey:null},v={alias:null,args:null,concreteType:"SpanAnnotation",kind:"LinkedField",name:"spanAnnotations",plural:!0,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"annotatorKind",storageKey:null}],storageKey:null},L={alias:null,args:null,concreteType:"DocumentRetrievalMetrics",kind:"LinkedField",name:"documentRetrievalMetrics",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"evaluationName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ndcg",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"precision",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hit",storageKey:null}],storageKey:null},I={alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},C={alias:null,args:null,concreteType:"Span",kind:"LinkedField",name:"node",plural:!1,selections:[l],storageKey:null},F={alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null},D=[i,{kind:"Literal",name:"rootSpansOnly",value:!0},r,o],M={alias:"statusCode",args:null,kind:"ScalarField",name:"propagatedStatusCode",storageKey:null},R={alias:null,args:null,kind:"ScalarField",name:"parentId",storageKey:null},O=[{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],j=[o];return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"ProjectPageQuery",selections:[{alias:"project",args:a,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"SpansTable_spans"},{args:null,kind:"FragmentSpread",name:"TracesTable_spans"},{args:null,kind:"FragmentSpread",name:"ProjectPageHeader_stats"},{args:null,kind:"FragmentSpread",name:"StreamToggle_data"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"ProjectPageQuery",selections:[{alias:"project",args:a,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,{kind:"TypeDiscriminator",abstractKey:"__isNode"},t,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"spanAnnotationNames",storageKey:null},{alias:null,args:u,concreteType:"SpanConnection",kind:"LinkedField",name:"spans",plural:!1,selections:[{alias:null,args:null,concreteType:"SpanEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"span",args:null,concreteType:"Span",kind:"LinkedField",name:"node",plural:!1,selections:[t,d,c,p,{alias:null,args:null,kind:"ScalarField",name:"statusCode",storageKey:null},g,f,{alias:null,args:null,kind:"ScalarField",name:"tokenCountTotal",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tokenCountPrompt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tokenCountCompletion",storageKey:null},y,S,h,v,L],storageKey:null},I,C],storageKey:null},F],storageKey:null},{alias:null,args:u,filters:["sort","filterCondition","timeRange"],handle:"connection",key:"SpansTable_spans",kind:"LinkedHandle",name:"spans"},{alias:"rootSpans",args:D,concreteType:"SpanConnection",kind:"LinkedField",name:"spans",plural:!1,selections:[{alias:null,args:null,concreteType:"SpanEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"rootSpan",args:null,concreteType:"Span",kind:"LinkedField",name:"node",plural:!1,selections:[t,d,c,p,M,g,f,{alias:null,args:null,kind:"ScalarField",name:"cumulativeTokenCountTotal",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cumulativeTokenCountPrompt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cumulativeTokenCountCompletion",storageKey:null},R,S,h,y,v,L,{alias:null,args:null,concreteType:"Span",kind:"LinkedField",name:"descendants",plural:!0,selections:[t,d,c,M,g,f,R,{alias:"cumulativeTokenCountTotal",args:null,kind:"ScalarField",name:"tokenCountTotal",storageKey:null},{alias:"cumulativeTokenCountPrompt",args:null,kind:"ScalarField",name:"tokenCountPrompt",storageKey:null},{alias:"cumulativeTokenCountCompletion",args:null,kind:"ScalarField",name:"tokenCountCompletion",storageKey:null},{alias:null,args:null,concreteType:"SpanIOValue",kind:"LinkedField",name:"input",plural:!1,selections:O,storageKey:null},{alias:null,args:null,concreteType:"SpanIOValue",kind:"LinkedField",name:"output",plural:!1,selections:O,storageKey:null},y,v,L],storageKey:null}],storageKey:null},I,C],storageKey:null},F],storageKey:null},{alias:"rootSpans",args:D,filters:["sort","rootSpansOnly","filterCondition","timeRange"],handle:"connection",key:"TracesTable_rootSpans",kind:"LinkedHandle",name:"spans"},{alias:null,args:j,kind:"ScalarField",name:"traceCount",storageKey:null},{alias:null,args:j,kind:"ScalarField",name:"tokenCountTotal",storageKey:null},{alias:"latencyMsP50",args:[{kind:"Literal",name:"probability",value:.5},o],kind:"ScalarField",name:"latencyMsQuantile",storageKey:null},{alias:"latencyMsP99",args:[{kind:"Literal",name:"probability",value:.99},o],kind:"ScalarField",name:"latencyMsQuantile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"
|
|
1480
|
+
`,children:n})}function Su(){const{traceId:n,projectId:a}=Oe(),l=ae();return e(ee,{type:"slideOver",isDismissable:!0,onDismiss:()=>l(`/projects/${a}`),children:e(W,{size:"fullscreen",title:"Trace Details",children:e(Lt,{traceId:n,projectId:a})})})}const _t=function(){var n=[{defaultValue:null,kind:"LocalArgument",name:"id"},{defaultValue:null,kind:"LocalArgument",name:"timeRange"}],a=[{kind:"Variable",name:"id",variableName:"id"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i={kind:"Literal",name:"first",value:100},r={kind:"Literal",name:"sort",value:{col:"startTime",dir:"desc"}},o={kind:"Variable",name:"timeRange",variableName:"timeRange"},u=[i,r,o],d={alias:null,args:null,kind:"ScalarField",name:"spanKind",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"metadata",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"startTime",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"latencyMs",storageKey:null},y={alias:null,args:null,concreteType:"SpanContext",kind:"LinkedField",name:"context",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"spanId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"traceId",storageKey:null}],storageKey:null},b=[{alias:"value",args:null,kind:"ScalarField",name:"truncatedValue",storageKey:null}],S={alias:null,args:null,concreteType:"SpanIOValue",kind:"LinkedField",name:"input",plural:!1,selections:b,storageKey:null},h={alias:null,args:null,concreteType:"SpanIOValue",kind:"LinkedField",name:"output",plural:!1,selections:b,storageKey:null},v={alias:null,args:null,concreteType:"SpanAnnotation",kind:"LinkedField",name:"spanAnnotations",plural:!0,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"annotatorKind",storageKey:null}],storageKey:null},L={alias:null,args:null,concreteType:"DocumentRetrievalMetrics",kind:"LinkedField",name:"documentRetrievalMetrics",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"evaluationName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ndcg",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"precision",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hit",storageKey:null}],storageKey:null},I={alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},C={alias:null,args:null,concreteType:"Span",kind:"LinkedField",name:"node",plural:!1,selections:[l],storageKey:null},F={alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null},D=[i,{kind:"Literal",name:"rootSpansOnly",value:!0},r,o],M={alias:"statusCode",args:null,kind:"ScalarField",name:"propagatedStatusCode",storageKey:null},R={alias:null,args:null,kind:"ScalarField",name:"parentId",storageKey:null},O=[{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],j=[o];return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"ProjectPageQuery",selections:[{alias:"project",args:a,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"SpansTable_spans"},{args:null,kind:"FragmentSpread",name:"TracesTable_spans"},{args:null,kind:"FragmentSpread",name:"ProjectPageHeader_stats"},{args:null,kind:"FragmentSpread",name:"StreamToggle_data"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"ProjectPageQuery",selections:[{alias:"project",args:a,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,{kind:"TypeDiscriminator",abstractKey:"__isNode"},t,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"spanAnnotationNames",storageKey:null},{alias:null,args:u,concreteType:"SpanConnection",kind:"LinkedField",name:"spans",plural:!1,selections:[{alias:null,args:null,concreteType:"SpanEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"span",args:null,concreteType:"Span",kind:"LinkedField",name:"node",plural:!1,selections:[t,d,c,p,{alias:null,args:null,kind:"ScalarField",name:"statusCode",storageKey:null},g,f,{alias:null,args:null,kind:"ScalarField",name:"tokenCountTotal",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tokenCountPrompt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tokenCountCompletion",storageKey:null},y,S,h,v,L],storageKey:null},I,C],storageKey:null},F],storageKey:null},{alias:null,args:u,filters:["sort","filterCondition","timeRange"],handle:"connection",key:"SpansTable_spans",kind:"LinkedHandle",name:"spans"},{alias:"rootSpans",args:D,concreteType:"SpanConnection",kind:"LinkedField",name:"spans",plural:!1,selections:[{alias:null,args:null,concreteType:"SpanEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"rootSpan",args:null,concreteType:"Span",kind:"LinkedField",name:"node",plural:!1,selections:[t,d,c,p,M,g,f,{alias:null,args:null,kind:"ScalarField",name:"cumulativeTokenCountTotal",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cumulativeTokenCountPrompt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cumulativeTokenCountCompletion",storageKey:null},R,S,h,y,v,L,{alias:null,args:null,concreteType:"Span",kind:"LinkedField",name:"descendants",plural:!0,selections:[t,d,c,M,g,f,R,{alias:"cumulativeTokenCountTotal",args:null,kind:"ScalarField",name:"tokenCountTotal",storageKey:null},{alias:"cumulativeTokenCountPrompt",args:null,kind:"ScalarField",name:"tokenCountPrompt",storageKey:null},{alias:"cumulativeTokenCountCompletion",args:null,kind:"ScalarField",name:"tokenCountCompletion",storageKey:null},{alias:null,args:null,concreteType:"SpanIOValue",kind:"LinkedField",name:"input",plural:!1,selections:O,storageKey:null},{alias:null,args:null,concreteType:"SpanIOValue",kind:"LinkedField",name:"output",plural:!1,selections:O,storageKey:null},y,v,L],storageKey:null}],storageKey:null},I,C],storageKey:null},F],storageKey:null},{alias:"rootSpans",args:D,filters:["sort","rootSpansOnly","filterCondition","timeRange"],handle:"connection",key:"TracesTable_rootSpans",kind:"LinkedHandle",name:"spans"},{alias:null,args:j,kind:"ScalarField",name:"traceCount",storageKey:null},{alias:null,args:j,kind:"ScalarField",name:"tokenCountTotal",storageKey:null},{alias:"latencyMsP50",args:[{kind:"Literal",name:"probability",value:.5},o],kind:"ScalarField",name:"latencyMsQuantile",storageKey:null},{alias:"latencyMsP99",args:[{kind:"Literal",name:"probability",value:.99},o],kind:"ScalarField",name:"latencyMsQuantile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"documentEvaluationNames",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"streamingLastUpdatedAt",storageKey:null}],type:"Project",abstractKey:null}],storageKey:null}]},params:{cacheID:"7ef71746dc23a0ef7ff64181b6649e25",id:null,metadata:{},name:"ProjectPageQuery",operationKind:"query",text:`query ProjectPageQuery(
|
|
1481
1481
|
$id: GlobalID!
|
|
1482
1482
|
$timeRange: TimeRange!
|
|
1483
1483
|
) {
|
|
@@ -1497,7 +1497,7 @@ fragment ProjectPageHeader_stats on Project {
|
|
|
1497
1497
|
tokenCountTotal(timeRange: $timeRange)
|
|
1498
1498
|
latencyMsP50: latencyMsQuantile(probability: 0.5, timeRange: $timeRange)
|
|
1499
1499
|
latencyMsP99: latencyMsQuantile(probability: 0.99, timeRange: $timeRange)
|
|
1500
|
-
|
|
1500
|
+
spanAnnotationNames
|
|
1501
1501
|
documentEvaluationNames
|
|
1502
1502
|
id
|
|
1503
1503
|
}
|
|
@@ -1647,7 +1647,7 @@ fragment TracesTable_spans on Project {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
id
|
|
1649
1649
|
}
|
|
1650
|
-
`}}}();_t.hash="c1b22588515ba56f88b7ea8ed8bb12fa";const Et=function(){var n={defaultValue:null,kind:"LocalArgument",name:"id"},a={defaultValue:null,kind:"LocalArgument",name:"timeRange"},l=[{kind:"Variable",name:"id",variableName:"id"}],t={kind:"Variable",name:"timeRange",variableName:"timeRange"},i=[t];return{fragment:{argumentDefinitions:[n,a],kind:"Fragment",metadata:null,name:"ProjectPageHeaderQuery",selections:[{alias:null,args:l,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"ProjectPageHeader_stats"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,n],kind:"Operation",name:"ProjectPageHeaderQuery",selections:[{alias:null,args:l,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isNode"},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:i,kind:"ScalarField",name:"traceCount",storageKey:null},{alias:null,args:i,kind:"ScalarField",name:"tokenCountTotal",storageKey:null},{alias:"latencyMsP50",args:[{kind:"Literal",name:"probability",value:.5},t],kind:"ScalarField",name:"latencyMsQuantile",storageKey:null},{alias:"latencyMsP99",args:[{kind:"Literal",name:"probability",value:.99},t],kind:"ScalarField",name:"latencyMsQuantile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"
|
|
1650
|
+
`}}}();_t.hash="c1b22588515ba56f88b7ea8ed8bb12fa";const Et=function(){var n={defaultValue:null,kind:"LocalArgument",name:"id"},a={defaultValue:null,kind:"LocalArgument",name:"timeRange"},l=[{kind:"Variable",name:"id",variableName:"id"}],t={kind:"Variable",name:"timeRange",variableName:"timeRange"},i=[t];return{fragment:{argumentDefinitions:[n,a],kind:"Fragment",metadata:null,name:"ProjectPageHeaderQuery",selections:[{alias:null,args:l,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"ProjectPageHeader_stats"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,n],kind:"Operation",name:"ProjectPageHeaderQuery",selections:[{alias:null,args:l,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isNode"},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:i,kind:"ScalarField",name:"traceCount",storageKey:null},{alias:null,args:i,kind:"ScalarField",name:"tokenCountTotal",storageKey:null},{alias:"latencyMsP50",args:[{kind:"Literal",name:"probability",value:.5},t],kind:"ScalarField",name:"latencyMsQuantile",storageKey:null},{alias:"latencyMsP99",args:[{kind:"Literal",name:"probability",value:.99},t],kind:"ScalarField",name:"latencyMsQuantile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"spanAnnotationNames",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"documentEvaluationNames",storageKey:null}],type:"Project",abstractKey:null}],storageKey:null}]},params:{cacheID:"264a748e3bb636d71fb6b75523a612fe",id:null,metadata:{},name:"ProjectPageHeaderQuery",operationKind:"query",text:`query ProjectPageHeaderQuery(
|
|
1651
1651
|
$timeRange: TimeRange
|
|
1652
1652
|
$id: GlobalID!
|
|
1653
1653
|
) {
|
|
@@ -1664,101 +1664,101 @@ fragment ProjectPageHeader_stats on Project {
|
|
|
1664
1664
|
tokenCountTotal(timeRange: $timeRange)
|
|
1665
1665
|
latencyMsP50: latencyMsQuantile(probability: 0.5, timeRange: $timeRange)
|
|
1666
1666
|
latencyMsP99: latencyMsQuantile(probability: 0.99, timeRange: $timeRange)
|
|
1667
|
-
|
|
1667
|
+
spanAnnotationNames
|
|
1668
1668
|
documentEvaluationNames
|
|
1669
1669
|
id
|
|
1670
1670
|
}
|
|
1671
|
-
`}}}();Et.hash="
|
|
1672
|
-
$
|
|
1671
|
+
`}}}();Et.hash="dcce9d160db90e2b5c51eef9971101a4";const Rt=function(){var n={kind:"Variable",name:"timeRange",variableName:"timeRange"},a=[n];return{argumentDefinitions:[{kind:"RootArgument",name:"timeRange"}],kind:"Fragment",metadata:{refetch:{connection:null,fragmentPathInResult:["node"],operation:Et,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"ProjectPageHeader_stats",selections:[{alias:null,args:a,kind:"ScalarField",name:"traceCount",storageKey:null},{alias:null,args:a,kind:"ScalarField",name:"tokenCountTotal",storageKey:null},{alias:"latencyMsP50",args:[{kind:"Literal",name:"probability",value:.5},n],kind:"ScalarField",name:"latencyMsQuantile",storageKey:null},{alias:"latencyMsP99",args:[{kind:"Literal",name:"probability",value:.99},n],kind:"ScalarField",name:"latencyMsQuantile",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"spanAnnotationNames",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"documentEvaluationNames",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Project",abstractKey:null}}();Rt.hash="dcce9d160db90e2b5c51eef9971101a4";const At=m.createContext(null);function _n(){const n=De.useContext(At);if(n===null)throw new Error("useStreamState must be used within a StreamStateProvider");return n}function xd({initialFetchKey:n="initial",children:a}){const l=na(u=>u.traceStreamingEnabled),t=na(u=>u.setTraceStreamingEnabled),[i,r]=m.useState(n),o=m.useCallback(u=>{m.startTransition(()=>{r(u)})},[r]);return e(At.Provider,{value:{isStreaming:l,setIsStreaming:t,fetchKey:i,setFetchKey:o},children:a})}const wt=function(){var n={defaultValue:null,kind:"LocalArgument",name:"annotationName"},a={defaultValue:null,kind:"LocalArgument",name:"id"},l={defaultValue:null,kind:"LocalArgument",name:"timeRange"},t=[{kind:"Variable",name:"id",variableName:"id"}],i=[{kind:"Variable",name:"annotationName",variableName:"annotationName"},{kind:"Variable",name:"timeRange",variableName:"timeRange"}];return{fragment:{argumentDefinitions:[n,a,l],kind:"Fragment",metadata:null,name:"AnnotationSummaryValueQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:i,kind:"FragmentSpread",name:"AnnotationSummaryValueFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,l,a],kind:"Operation",name:"AnnotationSummaryValueQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isNode"},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:i,concreteType:"AnnotationSummary",kind:"LinkedField",name:"spanAnnotationSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"LabelFraction",kind:"LinkedField",name:"labelFractions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fraction",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"meanScore",storageKey:null}],storageKey:null}],type:"Project",abstractKey:null}],storageKey:null}]},params:{cacheID:"bae90b7000aa37d37050070d8504b41c",id:null,metadata:{},name:"AnnotationSummaryValueQuery",operationKind:"query",text:`query AnnotationSummaryValueQuery(
|
|
1672
|
+
$annotationName: String!
|
|
1673
1673
|
$timeRange: TimeRange!
|
|
1674
1674
|
$id: GlobalID!
|
|
1675
1675
|
) {
|
|
1676
1676
|
node(id: $id) {
|
|
1677
1677
|
__typename
|
|
1678
|
-
...
|
|
1678
|
+
...AnnotationSummaryValueFragment_4BTVrq
|
|
1679
1679
|
__isNode: __typename
|
|
1680
1680
|
id
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
1683
|
|
|
1684
|
-
fragment
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1684
|
+
fragment AnnotationSummaryValueFragment_4BTVrq on Project {
|
|
1685
|
+
spanAnnotationSummary(annotationName: $annotationName, timeRange: $timeRange) {
|
|
1686
|
+
labelFractions {
|
|
1687
|
+
label
|
|
1688
|
+
fraction
|
|
1689
|
+
}
|
|
1690
|
+
meanScore
|
|
1690
1691
|
}
|
|
1691
1692
|
id
|
|
1692
1693
|
}
|
|
1693
|
-
`}}}();wt.hash="
|
|
1694
|
-
$evaluationName: String!
|
|
1694
|
+
`}}}();wt.hash="0a8e190e4d87acc87c161366f330e3af";const Pt={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"annotationName"},{defaultValue:null,kind:"LocalArgument",name:"timeRange"}],kind:"Fragment",metadata:{refetch:{connection:null,fragmentPathInResult:["node"],operation:wt,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"AnnotationSummaryValueFragment",selections:[{alias:null,args:[{kind:"Variable",name:"annotationName",variableName:"annotationName"},{kind:"Variable",name:"timeRange",variableName:"timeRange"}],concreteType:"AnnotationSummary",kind:"LinkedField",name:"spanAnnotationSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"LabelFraction",kind:"LinkedField",name:"labelFractions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fraction",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"meanScore",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Project",abstractKey:null};Pt.hash="0a8e190e4d87acc87c161366f330e3af";const Mt=function(){var n={defaultValue:null,kind:"LocalArgument",name:"annotationName"},a={defaultValue:null,kind:"LocalArgument",name:"id"},l={defaultValue:null,kind:"LocalArgument",name:"timeRange"},t=[{kind:"Variable",name:"id",variableName:"id"}],i=[{kind:"Variable",name:"annotationName",variableName:"annotationName"},{kind:"Variable",name:"timeRange",variableName:"timeRange"}];return{fragment:{argumentDefinitions:[n,a,l],kind:"Fragment",metadata:null,name:"AnnotationSummaryQuery",selections:[{alias:"project",args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:i,kind:"FragmentSpread",name:"AnnotationSummaryValueFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,n,l],kind:"Operation",name:"AnnotationSummaryQuery",selections:[{alias:"project",args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isNode"},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:i,concreteType:"AnnotationSummary",kind:"LinkedField",name:"spanAnnotationSummary",plural:!1,selections:[{alias:null,args:null,concreteType:"LabelFraction",kind:"LinkedField",name:"labelFractions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fraction",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"meanScore",storageKey:null}],storageKey:null}],type:"Project",abstractKey:null}],storageKey:null}]},params:{cacheID:"88dfad5d25db7e03286a789f3ba37c75",id:null,metadata:{},name:"AnnotationSummaryQuery",operationKind:"query",text:`query AnnotationSummaryQuery(
|
|
1695
1695
|
$id: GlobalID!
|
|
1696
|
+
$annotationName: String!
|
|
1696
1697
|
$timeRange: TimeRange!
|
|
1697
1698
|
) {
|
|
1698
1699
|
project: node(id: $id) {
|
|
1699
1700
|
__typename
|
|
1700
|
-
...
|
|
1701
|
+
...AnnotationSummaryValueFragment_4BTVrq
|
|
1701
1702
|
__isNode: __typename
|
|
1702
1703
|
id
|
|
1703
1704
|
}
|
|
1704
1705
|
}
|
|
1705
1706
|
|
|
1706
|
-
fragment
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1707
|
+
fragment AnnotationSummaryValueFragment_4BTVrq on Project {
|
|
1708
|
+
spanAnnotationSummary(annotationName: $annotationName, timeRange: $timeRange) {
|
|
1709
|
+
labelFractions {
|
|
1710
|
+
label
|
|
1711
|
+
fraction
|
|
1712
|
+
}
|
|
1713
|
+
meanScore
|
|
1712
1714
|
}
|
|
1713
1715
|
id
|
|
1714
1716
|
}
|
|
1715
|
-
`}}}();Mt.hash="
|
|
1717
|
+
`}}}();Mt.hash="6a15ba35fe9e1e35aa4c517ab6309a2b";function Td({annotationName:n}){const{projectId:a}=Oe(),{timeRange:l}=ra(),t=E.useLazyLoadQuery(Mt,{annotationName:n,id:a,timeRange:{start:l.start.toISOString(),end:l.end.toISOString()}});return s(k,{direction:"column",flex:"none",children:[e(x,{elementType:"h3",textSize:"medium",color:"text-700",children:n}),e(m.Suspense,{fallback:e(x,{textSize:"xlarge",children:"--"}),children:e(Dd,{annotationName:n,project:t.project})})]})}function Dd(n){var y,b;const{project:a,annotationName:l}=n,{fetchKey:t}=_n(),[i,r]=E.useRefetchableFragment(Pt,a);m.useEffect(()=>{m.startTransition(()=>{r({},{fetchPolicy:"store-and-network"})})},[t,r]);const o=Me(),d=[yl(l),o.default,o.gray600,o.gray400,o.gray200],c=(y=i==null?void 0:i.spanAnnotationSummary)==null?void 0:y.meanScore,p=(b=i==null?void 0:i.spanAnnotationSummary)==null?void 0:b.labelFractions,g=typeof c=="number",f=Array.isArray(p)&&p.length>0;return!g&&!f?e(x,{textSize:"xlarge",children:"--"}):s(Fe,{delay:0,placement:"bottom",children:[e(hn,{children:s(k,{direction:"row",alignItems:"center",gap:"size-50",children:[f?e(ds,{width:24,height:24,children:e(cs,{data:p,dataKey:"fraction",nameKey:"label",cx:"50%",cy:"50%",innerRadius:8,outerRadius:11,strokeWidth:0,stroke:"transparent",children:p.map((S,h)=>e(us,{fill:d[h%d.length]},`cell-${h}`))})}):null,e(x,{textSize:"xlarge",children:g?Le(c):"--"})]})}),e(Wn,{children:e(T,{width:"size-2400",children:s(k,{direction:"column",gap:"size-50",children:[f&&e("ul",{children:p.map((S,h)=>e("li",{children:e(ie,{color:d[h%d.length],name:S.label,shape:"square",value:fl(S.fraction*100)})},S.label))}),f&&g?e(ta,{}):null,g?s(k,{direction:"row",justifyContent:"space-between",children:[e(x,{children:"mean"}),e(x,{children:Le(c)})]}):null]})})})]})}const Nt=function(){var n={defaultValue:null,kind:"LocalArgument",name:"evaluationName"},a={defaultValue:null,kind:"LocalArgument",name:"id"},l={defaultValue:null,kind:"LocalArgument",name:"timeRange"},t=[{kind:"Variable",name:"id",variableName:"id"}],i=[{kind:"Variable",name:"evaluationName",variableName:"evaluationName"},{kind:"Variable",name:"timeRange",variableName:"timeRange"}];return{fragment:{argumentDefinitions:[n,a,l],kind:"Fragment",metadata:null,name:"DocumentEvaluationSummaryValueQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:i,kind:"FragmentSpread",name:"DocumentEvaluationSummaryValueFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,l,a],kind:"Operation",name:"DocumentEvaluationSummaryValueQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isNode"},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:i,concreteType:"DocumentEvaluationSummary",kind:"LinkedField",name:"documentEvaluationSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"averageNdcg",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"averagePrecision",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"meanReciprocalRank",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hitRate",storageKey:null}],storageKey:null}],type:"Project",abstractKey:null}],storageKey:null}]},params:{cacheID:"60d7798d88e1408e6b6b0bebdc1716f5",id:null,metadata:{},name:"DocumentEvaluationSummaryValueQuery",operationKind:"query",text:`query DocumentEvaluationSummaryValueQuery(
|
|
1716
1718
|
$evaluationName: String!
|
|
1717
1719
|
$timeRange: TimeRange!
|
|
1718
1720
|
$id: GlobalID!
|
|
1719
1721
|
) {
|
|
1720
1722
|
node(id: $id) {
|
|
1721
1723
|
__typename
|
|
1722
|
-
...
|
|
1724
|
+
...DocumentEvaluationSummaryValueFragment_1dJL9N
|
|
1723
1725
|
__isNode: __typename
|
|
1724
1726
|
id
|
|
1725
1727
|
}
|
|
1726
1728
|
}
|
|
1727
1729
|
|
|
1728
|
-
fragment
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
meanScore
|
|
1730
|
+
fragment DocumentEvaluationSummaryValueFragment_1dJL9N on Project {
|
|
1731
|
+
documentEvaluationSummary(evaluationName: $evaluationName, timeRange: $timeRange) {
|
|
1732
|
+
averageNdcg
|
|
1733
|
+
averagePrecision
|
|
1734
|
+
meanReciprocalRank
|
|
1735
|
+
hitRate
|
|
1735
1736
|
}
|
|
1736
1737
|
id
|
|
1737
1738
|
}
|
|
1738
|
-
`}}}();Nt.hash="
|
|
1739
|
-
$id: GlobalID!
|
|
1739
|
+
`}}}();Nt.hash="15d0652aa260c80f62acec943f615d93";const $t={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"evaluationName"},{defaultValue:null,kind:"LocalArgument",name:"timeRange"}],kind:"Fragment",metadata:{refetch:{connection:null,fragmentPathInResult:["node"],operation:Nt,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"DocumentEvaluationSummaryValueFragment",selections:[{alias:null,args:[{kind:"Variable",name:"evaluationName",variableName:"evaluationName"},{kind:"Variable",name:"timeRange",variableName:"timeRange"}],concreteType:"DocumentEvaluationSummary",kind:"LinkedField",name:"documentEvaluationSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"averageNdcg",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"averagePrecision",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"meanReciprocalRank",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hitRate",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Project",abstractKey:null};$t.hash="15d0652aa260c80f62acec943f615d93";const Vt=function(){var n=[{defaultValue:null,kind:"LocalArgument",name:"evaluationName"},{defaultValue:null,kind:"LocalArgument",name:"id"},{defaultValue:null,kind:"LocalArgument",name:"timeRange"}],a=[{kind:"Variable",name:"id",variableName:"id"}],l=[{kind:"Variable",name:"evaluationName",variableName:"evaluationName"},{kind:"Variable",name:"timeRange",variableName:"timeRange"}];return{fragment:{argumentDefinitions:n,kind:"Fragment",metadata:null,name:"DocumentEvaluationSummaryQuery",selections:[{alias:"project",args:a,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:l,kind:"FragmentSpread",name:"DocumentEvaluationSummaryValueFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:n,kind:"Operation",name:"DocumentEvaluationSummaryQuery",selections:[{alias:"project",args:a,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isNode"},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:l,concreteType:"DocumentEvaluationSummary",kind:"LinkedField",name:"documentEvaluationSummary",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"averageNdcg",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"averagePrecision",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"meanReciprocalRank",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hitRate",storageKey:null}],storageKey:null}],type:"Project",abstractKey:null}],storageKey:null}]},params:{cacheID:"3ebd1cf66ef8f31c995ec6aae6505e94",id:null,metadata:{},name:"DocumentEvaluationSummaryQuery",operationKind:"query",text:`query DocumentEvaluationSummaryQuery(
|
|
1740
1740
|
$evaluationName: String!
|
|
1741
|
+
$id: GlobalID!
|
|
1741
1742
|
$timeRange: TimeRange!
|
|
1742
1743
|
) {
|
|
1743
1744
|
project: node(id: $id) {
|
|
1744
1745
|
__typename
|
|
1745
|
-
...
|
|
1746
|
+
...DocumentEvaluationSummaryValueFragment_1dJL9N
|
|
1746
1747
|
__isNode: __typename
|
|
1747
1748
|
id
|
|
1748
1749
|
}
|
|
1749
1750
|
}
|
|
1750
1751
|
|
|
1751
|
-
fragment
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
meanScore
|
|
1752
|
+
fragment DocumentEvaluationSummaryValueFragment_1dJL9N on Project {
|
|
1753
|
+
documentEvaluationSummary(evaluationName: $evaluationName, timeRange: $timeRange) {
|
|
1754
|
+
averageNdcg
|
|
1755
|
+
averagePrecision
|
|
1756
|
+
meanReciprocalRank
|
|
1757
|
+
hitRate
|
|
1758
1758
|
}
|
|
1759
1759
|
id
|
|
1760
1760
|
}
|
|
1761
|
-
`}}}();Vt.hash="
|
|
1761
|
+
`}}}();Vt.hash="4d50474ffa9b9e4a68d07f6e0777c144";function Cd({evaluationName:n}){const{projectId:a}=Oe(),{timeRange:l}=ra(),t=E.useLazyLoadQuery(Vt,{id:a,evaluationName:n,timeRange:{start:l.start.toISOString(),end:l.end.toISOString()}});return s(k,{direction:"column",flex:"none",children:[e(x,{elementType:"h3",textSize:"medium",color:"text-700",children:n}),e(m.Suspense,{fallback:e(x,{textSize:"xlarge",children:"--"}),children:e(Id,{evaluationName:n,project:t==null?void 0:t.project})})]})}function Id(n){var c,p,g,f;const{project:a}=n,{fetchKey:l}=_n(),[t,i]=E.useRefetchableFragment($t,a);m.useEffect(()=>{m.startTransition(()=>{i({},{fetchPolicy:"store-and-network"})})},[l,i]);const r=(c=t==null?void 0:t.documentEvaluationSummary)==null?void 0:c.averageNdcg,o=(p=t==null?void 0:t.documentEvaluationSummary)==null?void 0:p.averagePrecision,u=(g=t==null?void 0:t.documentEvaluationSummary)==null?void 0:g.hitRate,d=(f=t==null?void 0:t.documentEvaluationSummary)==null?void 0:f.meanReciprocalRank;return s(Fe,{delay:0,placement:"bottom",children:[e(hn,{children:e(k,{direction:"row",alignItems:"center",gap:"size-50",height:"28px",children:s(B,{children:[e(ue,{metric:"ndcg",score:r},"ndcg"),e(ue,{metric:"precision",score:o},"precision"),e(ue,{metric:"hit rate",score:u},"hit")]})})}),e(Wn,{children:e(T,{width:"size-2400",children:s(k,{direction:"column",children:[s(k,{justifyContent:"space-between",children:[e(x,{children:"average ndcg"}),e(x,{children:typeof r=="number"?Le(r):"--"})]}),s(k,{justifyContent:"space-between",children:[e(x,{children:"average precision"}),e(x,{children:typeof o=="number"?Le(o):"--"})]}),s(k,{justifyContent:"space-between",children:[e(x,{children:"mean reciprocal rank"}),e(x,{children:typeof d=="number"?Le(d):"--"})]}),s(k,{justifyContent:"space-between",children:[e(x,{children:"hit rate"}),e(x,{children:typeof u=="number"?Le(u):"--"})]})]})})})]})}function Ld(n){const{extra:a}=n,{fetchKey:l}=_n(),[t,i]=E.useRefetchableFragment(Rt,n.project);m.useEffect(()=>{m.startTransition(()=>{i({},{fetchPolicy:"store-and-network"})})},[l,i]);const r=t==null?void 0:t.latencyMsP50,o=t==null?void 0:t.latencyMsP99,u=t==null?void 0:t.tokenCountTotal,d=t==null?void 0:t.spanAnnotationNames,c=t==null?void 0:t.documentEvaluationNames;return e(T,{paddingStart:"size-200",paddingEnd:"size-200",paddingTop:"size-200",paddingBottom:"size-50",flex:"none",children:s(k,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[e("div",{css:K`
|
|
1762
1762
|
overflow-x: auto;
|
|
1763
1763
|
overflow-y: hidden;
|
|
1764
1764
|
flex: 1 1 auto;
|
|
@@ -1794,7 +1794,7 @@ fragment EvaluationSummaryValueFragment_1dJL9N on Project {
|
|
|
1794
1794
|
left center,
|
|
1795
1795
|
right center;
|
|
1796
1796
|
background-attachment: local, local, scroll, scroll;
|
|
1797
|
-
`,children:s(k,{direction:"row",gap:"size-400",alignItems:"center",children:[s(k,{direction:"column",flex:"none",children:[e(x,{elementType:"h3",textSize:"medium",color:"text-700",children:"Total Traces"}),e(x,{textSize:"xlarge",children:ln(t==null?void 0:t.traceCount)})]}),s(k,{direction:"column",flex:"none",children:[e(x,{elementType:"h3",textSize:"medium",color:"text-700",children:"Total Tokens"}),e(x,{textSize:"xlarge",children:ln(u)})]}),s(k,{direction:"column",flex:"none",children:[e(x,{elementType:"h3",textSize:"medium",color:"text-700",children:"Latency P50"}),r!=null?e(xe,{latencyMs:r,textSize:"xlarge"}):e(x,{textSize:"xlarge",children:"--"})]}),s(k,{direction:"column",flex:"none",children:[e(x,{elementType:"h3",textSize:"medium",color:"text-700",children:"Latency P99"}),o!=null?e(xe,{latencyMs:o,textSize:"xlarge"}):e(x,{textSize:"xlarge",children:"--"})]}),d.map(p=>e(
|
|
1797
|
+
`,children:s(k,{direction:"row",gap:"size-400",alignItems:"center",children:[s(k,{direction:"column",flex:"none",children:[e(x,{elementType:"h3",textSize:"medium",color:"text-700",children:"Total Traces"}),e(x,{textSize:"xlarge",children:ln(t==null?void 0:t.traceCount)})]}),s(k,{direction:"column",flex:"none",children:[e(x,{elementType:"h3",textSize:"medium",color:"text-700",children:"Total Tokens"}),e(x,{textSize:"xlarge",children:ln(u)})]}),s(k,{direction:"column",flex:"none",children:[e(x,{elementType:"h3",textSize:"medium",color:"text-700",children:"Latency P50"}),r!=null?e(xe,{latencyMs:r,textSize:"xlarge"}):e(x,{textSize:"xlarge",children:"--"})]}),s(k,{direction:"column",flex:"none",children:[e(x,{elementType:"h3",textSize:"medium",color:"text-700",children:"Latency P99"}),o!=null?e(xe,{latencyMs:o,textSize:"xlarge"}):e(x,{textSize:"xlarge",children:"--"})]}),d.map(p=>e(Td,{annotationName:p},p)),c.map(p=>e(Cd,{evaluationName:p},`document-${p}`))]})}),e(T,{flex:"none",paddingStart:"size-100",children:a})]})})}const zt=function(){var n={defaultValue:null,kind:"LocalArgument",name:"after"},a={defaultValue:null,kind:"LocalArgument",name:"filterCondition"},l={defaultValue:100,kind:"LocalArgument",name:"first"},t={defaultValue:null,kind:"LocalArgument",name:"id"},i={defaultValue:{col:"startTime",dir:"desc"},kind:"LocalArgument",name:"sort"},r={defaultValue:null,kind:"LocalArgument",name:"timeRange"},o=[{kind:"Variable",name:"id",variableName:"id"}],u={kind:"Variable",name:"after",variableName:"after"},d={kind:"Variable",name:"filterCondition",variableName:"filterCondition"},c={kind:"Variable",name:"first",variableName:"first"},p={kind:"Variable",name:"sort",variableName:"sort"},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},y=[u,d,c,p,{kind:"Variable",name:"timeRange",variableName:"timeRange"}],b={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},S=[{alias:"value",args:null,kind:"ScalarField",name:"truncatedValue",storageKey:null}];return{fragment:{argumentDefinitions:[n,a,l,t,i,r],kind:"Fragment",metadata:null,name:"SpansTableSpansQuery",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[u,d,c,p],kind:"FragmentSpread",name:"SpansTable_spans"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,a,l,i,r,t],kind:"Operation",name:"SpansTableSpansQuery",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[g,{kind:"TypeDiscriminator",abstractKey:"__isNode"},f,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"spanAnnotationNames",storageKey:null},{alias:null,args:y,concreteType:"SpanConnection",kind:"LinkedField",name:"spans",plural:!1,selections:[{alias:null,args:null,concreteType:"SpanEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:"span",args:null,concreteType:"Span",kind:"LinkedField",name:"node",plural:!1,selections:[f,{alias:null,args:null,kind:"ScalarField",name:"spanKind",storageKey:null},b,{alias:null,args:null,kind:"ScalarField",name:"metadata",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"statusCode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startTime",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"latencyMs",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tokenCountTotal",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tokenCountPrompt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tokenCountCompletion",storageKey:null},{alias:null,args:null,concreteType:"SpanContext",kind:"LinkedField",name:"context",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"spanId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"traceId",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SpanIOValue",kind:"LinkedField",name:"input",plural:!1,selections:S,storageKey:null},{alias:null,args:null,concreteType:"SpanIOValue",kind:"LinkedField",name:"output",plural:!1,selections:S,storageKey:null},{alias:null,args:null,concreteType:"SpanAnnotation",kind:"LinkedField",name:"spanAnnotations",plural:!0,selections:[b,{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"annotatorKind",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"DocumentRetrievalMetrics",kind:"LinkedField",name:"documentRetrievalMetrics",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"evaluationName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ndcg",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"precision",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hit",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"Span",kind:"LinkedField",name:"node",plural:!1,selections:[g],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:y,filters:["sort","filterCondition","timeRange"],handle:"connection",key:"SpansTable_spans",kind:"LinkedHandle",name:"spans"}],type:"Project",abstractKey:null}],storageKey:null}]},params:{cacheID:"938a1015155332341be66c168d59e627",id:null,metadata:{},name:"SpansTableSpansQuery",operationKind:"query",text:`query SpansTableSpansQuery(
|
|
1798
1798
|
$after: String = null
|
|
1799
1799
|
$filterCondition: String = null
|
|
1800
1800
|
$first: Int = 100
|
phoenix/session/client.py
CHANGED
|
@@ -324,7 +324,7 @@ class Client(TraceDataExtractor):
|
|
|
324
324
|
Dataset: The dataset object.
|
|
325
325
|
"""
|
|
326
326
|
response = self._client.get(
|
|
327
|
-
urljoin(self._base_url, "
|
|
327
|
+
urljoin(self._base_url, "v1/datasets"),
|
|
328
328
|
params={"name": name},
|
|
329
329
|
)
|
|
330
330
|
response.raise_for_status()
|
|
@@ -366,7 +366,7 @@ class Client(TraceDataExtractor):
|
|
|
366
366
|
raise ValueError("Dataset id or name must be provided.")
|
|
367
367
|
|
|
368
368
|
response = self._client.get(
|
|
369
|
-
urljoin(self._base_url, f"
|
|
369
|
+
urljoin(self._base_url, f"v1/datasets/{quote(id)}/examples"),
|
|
370
370
|
params={"version_id": version_id} if version_id else None,
|
|
371
371
|
)
|
|
372
372
|
response.raise_for_status()
|
phoenix/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "4.
|
|
1
|
+
__version__ = "4.20.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|