arize-phoenix 5.1.6__py3-none-any.whl → 5.2.1__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arize-phoenix
3
- Version: 5.1.6
3
+ Version: 5.2.1
4
4
  Summary: AI Observability and Evaluation
5
5
  Project-URL: Documentation, https://docs.arize.com/phoenix/
6
6
  Project-URL: Issues, https://github.com/Arize-ai/phoenix/issues
@@ -55,6 +55,8 @@ Requires-Dist: umap-learn
55
55
  Requires-Dist: uvicorn
56
56
  Requires-Dist: wrapt
57
57
  Provides-Extra: container
58
+ Requires-Dist: fast-hdbscan>=0.2.0; extra == 'container'
59
+ Requires-Dist: numba>=0.60.0; extra == 'container'
58
60
  Requires-Dist: opentelemetry-exporter-otlp; extra == 'container'
59
61
  Requires-Dist: opentelemetry-instrumentation-fastapi; extra == 'container'
60
62
  Requires-Dist: opentelemetry-instrumentation-grpc; extra == 'container'
@@ -65,6 +67,7 @@ Requires-Dist: opentelemetry-semantic-conventions; extra == 'container'
65
67
  Requires-Dist: prometheus-client; extra == 'container'
66
68
  Requires-Dist: py-grpc-prometheus; extra == 'container'
67
69
  Requires-Dist: strawberry-graphql[opentelemetry]==0.243.1; extra == 'container'
70
+ Requires-Dist: umap-learn; extra == 'container'
68
71
  Requires-Dist: uvloop; (platform_system != 'Windows') and extra == 'container'
69
72
  Provides-Extra: dev
70
73
  Requires-Dist: anthropic; extra == 'dev'
@@ -101,6 +104,10 @@ Requires-Dist: tox==4.18.1; extra == 'dev'
101
104
  Requires-Dist: types-tabulate; extra == 'dev'
102
105
  Requires-Dist: uv==0.4.8; extra == 'dev'
103
106
  Requires-Dist: uvloop; (platform_system != 'Windows') and extra == 'dev'
107
+ Provides-Extra: embeddings
108
+ Requires-Dist: fast-hdbscan>=0.2.0; extra == 'embeddings'
109
+ Requires-Dist: numba>=0.60.0; extra == 'embeddings'
110
+ Requires-Dist: umap-learn; extra == 'embeddings'
104
111
  Provides-Extra: evals
105
112
  Provides-Extra: experimental
106
113
  Provides-Extra: llama-index
@@ -6,7 +6,7 @@ phoenix/exceptions.py,sha256=n2L2KKuecrdflB9MsCdAYCiSEvGJptIsfRkXMoJle7A,169
6
6
  phoenix/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
7
7
  phoenix/services.py,sha256=aTxhcOA1pZHB6U-B3TEcp6fqDF5oT0xCUvEUNMZVTUQ,5175
8
8
  phoenix/settings.py,sha256=ht-0oN-sMV6SPXrk7Tu1EZlngpAYkGNLYPhO8DyrdQI,661
9
- phoenix/version.py,sha256=Q46Pugq4dvkkf_16U7KgXoGZYZmz7sapzjpUKHTufZ0,22
9
+ phoenix/version.py,sha256=Wz6OktWKdFA8wb3DR2SbK1ll5ntwA4r6J1py_6STnmA,22
10
10
  phoenix/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  phoenix/core/embedding_dimension.py,sha256=zKGbcvwOXgLf-yrJBpQyKtd-LEOPRKHnUToyAU8Owis,87
12
12
  phoenix/core/model.py,sha256=km_a--PBHOuA337ClRw9xqhOHhrUT6Rl9pz_zV0JYkQ,4843
@@ -73,13 +73,13 @@ phoenix/pointcloud/pointcloud.py,sha256=4zAIkKs2xOUbchpj4XDAV-iPMXrfAJ15TG6rlIYG
73
73
  phoenix/pointcloud/projectors.py,sha256=TQgwc9cJDjJkin1WZyZzgl3HsYrLLiyWD7Czy4jNW3U,1088
74
74
  phoenix/pointcloud/umap_parameters.py,sha256=3UQSjrysVOvq2V4KNpTMqNqNiK0BsTZnPBHWZ4fyJtQ,1708
75
75
  phoenix/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
- phoenix/server/app.py,sha256=FRauYpuCTsz761ekVqyXL93VkTx_xknFdMP4LqNowIk,31689
76
+ phoenix/server/app.py,sha256=IilHYNvbUp-zJ9mF1HgTRS3QYkTR3MWgPu7wGe21Wcs,32063
77
77
  phoenix/server/bearer_auth.py,sha256=hChZ2li9qqQAuXIFtD4bp7Z60gEZhVqfCCqLeiTvD2k,5513
78
78
  phoenix/server/dml_event.py,sha256=MpjCFqljxvgb9OB5Cez9vJesb3oHb3XxXictynBfcis,2851
79
79
  phoenix/server/dml_event_handler.py,sha256=yU23-DDwXcL35p5EPwFW0oZh6mxQxJrJAQPKcYZYJz4,8310
80
80
  phoenix/server/grpc_server.py,sha256=nqeHg0FxGppjy8MqQUQ8DJtY4bkvJkR3tCxxmXGk6n0,3733
81
81
  phoenix/server/jwt_store.py,sha256=lmcTRBPoxMHzSV7WT8Ew40ag4uxeMWPLDw-vPIoWL8s,16829
82
- phoenix/server/main.py,sha256=pCKqOaJxAWwlXAl0AVIjHdszx3vkocMSSN9hJbsfsIs,15800
82
+ phoenix/server/main.py,sha256=T_W34ZpBdZDTv5qZMPOfwvz5Nc2QtxUov_sFKNDUneg,15759
83
83
  phoenix/server/oauth2.py,sha256=4zt6NEh0o2a3HUThYs-FPqOeDcvYM3YKKMg-s_Awls0,2043
84
84
  phoenix/server/prometheus.py,sha256=x9zV3M8VeZ9GS32SLr5OxNdi1VaxvdHCZPx2zI8Hoa4,3549
85
85
  phoenix/server/rate_limiters.py,sha256=7UJDH9YTmBIeGFLJX1759-LpS-XNp0zN1TlzxyqTnZc,7163
@@ -258,15 +258,15 @@ phoenix/server/static/apple-touch-icon-76x76.png,sha256=CT_xT12I0u2i0WU8JzBZBuOQ
258
258
  phoenix/server/static/apple-touch-icon.png,sha256=fOfpjqGpWYbJ0eAurKsyoZP1EAs6ZVooBJ_SGk2ZkDs,3801
259
259
  phoenix/server/static/favicon.ico,sha256=bY0vvCKRftemZfPShwZtE93DiiQdaYaozkPGwNFr6H8,34494
260
260
  phoenix/server/static/modernizr.js,sha256=mvK-XtkNqjOral-QvzoqsyOMECXIMu5BQwSVN_wcU9c,2564
261
- phoenix/server/static/.vite/manifest.json,sha256=tQOBj8Iziu2DVq_Qj9IU_om1c2kmc0GLIfXZavtRRtc,1929
262
- phoenix/server/static/assets/components-4ANbS7sG.js,sha256=f_MB3rIgNxVf7Hd-EfJ0EmOUuO5YMlvY05YAgOESh0o,260281
263
- phoenix/server/static/assets/index-CwRlD2_T.js,sha256=KD4j4pJgjb5mJSxUlHk8bclgDIFLK6cRWvyLnHAAmHY,6947
264
- phoenix/server/static/assets/pages-IkQNKgib.js,sha256=I3jikb9Up6d6DSZXu6hDOUnJSMW_0PmRYfW-dduHTZo,557886
265
- phoenix/server/static/assets/vendor-CQYk2bLC.js,sha256=phmdcDjuBvBjCYwSZ3KGj4OSxxvxNsUUZ45mBPZngEI,1435307
261
+ phoenix/server/static/.vite/manifest.json,sha256=mkY5ird4Wof-mDOPIJlwDha9L2k0ENmpK0fkZkNdD0A,1929
262
+ phoenix/server/static/assets/components-BqfGSfjl.js,sha256=fNPFgXJevgHCyopW0XhaMMQ22jS9UxrZ5dFpoEwaXMA,260281
263
+ phoenix/server/static/assets/index-CCZJh73q.js,sha256=OoTG9Ti8uY09XtXatm8VZVcLb9CP_XHe-IdVFTrnmEE,6947
264
+ phoenix/server/static/assets/pages-CCfzLmwR.js,sha256=0ojEBdpP1Lwsa4D9Zn27VjppB6cy-Pvrk4fri4WgTdc,558077
266
265
  phoenix/server/static/assets/vendor-DxkFTwjz.css,sha256=nZrkr0u6NNElFGvpWHk9GTHeGoibCXCli1bE7mXZGZg,1816
267
- phoenix/server/static/assets/vendor-arizeai-DgvoPlCK.js,sha256=YZon_DqnY1fuUu3pFamINewm0-yP6_KB3wRcb9b-XkE,304401
268
- phoenix/server/static/assets/vendor-codemirror-DcWFlULW.js,sha256=JTd-0Dlowm520AVf7lImq_lhDoBlVjcAK9Vy4K8mSVs,516470
269
- phoenix/server/static/assets/vendor-recharts-BaQGdoah.js,sha256=yCS2cZ7HRKLxB9yx-WZyhBtGmtbcJ-AAhoww-p7lAt4,282859
266
+ phoenix/server/static/assets/vendor-WKqfwbiB.js,sha256=MIOAdw-FiFVinsIY9ZVP7iz1ia4QF-IgNG0a07keTOI,1435307
267
+ phoenix/server/static/assets/vendor-arizeai-BCDjSYK3.js,sha256=f2UQk7r2Dr6VMQDf0uHultWQedME5GdbBnNzQTJxvJw,304401
268
+ phoenix/server/static/assets/vendor-codemirror-B_z6EOTv.js,sha256=-YpeYvPK_xWRa8C-tWQqGQwIJNOxYqaKPcRiNFB_Nc8,516470
269
+ phoenix/server/static/assets/vendor-recharts-CJm3CJf0.js,sha256=kc9kNfFktozfoXUIYfaD2ABKbV0EtdInsXUBohzh9qo,282859
270
270
  phoenix/server/static/assets/vendor-three-DwGkEfCM.js,sha256=0D12ZgKzfKCTSdSTKJBFR2RZO_xxeMXrqDp0AszZqHY,620972
271
271
  phoenix/server/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
272
272
  phoenix/server/templates/index.html,sha256=ULNlp0-agU8pH4wCIapE1goqnwkbctAoQRgrfwH_irg,4379
@@ -306,8 +306,9 @@ phoenix/utilities/logging.py,sha256=B8t2WPULOwVyuGLRLbwKsw5N41N26vtgF-lCAYgWTEk,
306
306
  phoenix/utilities/project.py,sha256=8IJuMM4yUMoooPi37sictGj8Etu9rGmq6RFtc9848cQ,436
307
307
  phoenix/utilities/re.py,sha256=nr_B0txj_7CXc45953X6vr2KCRSWMuaXJSEkL8s8Sjc,2036
308
308
  phoenix/utilities/span_store.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
309
- arize_phoenix-5.1.6.dist-info/METADATA,sha256=1rGHnsEZnVX5YeAnzItvZpm-JS6nqrA8-EWTr-9kDt0,11631
310
- arize_phoenix-5.1.6.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
311
- arize_phoenix-5.1.6.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
312
- arize_phoenix-5.1.6.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
313
- arize_phoenix-5.1.6.dist-info/RECORD,,
309
+ arize_phoenix-5.2.1.dist-info/METADATA,sha256=u6OS3E1sGwz43S57i8igODxTq1RTqD3qkeEd988AlAY,11973
310
+ arize_phoenix-5.2.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
311
+ arize_phoenix-5.2.1.dist-info/entry_points.txt,sha256=Pgpn8Upxx9P8z8joPXZWl2LlnAlGc3gcQoVchb06X1Q,94
312
+ arize_phoenix-5.2.1.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
313
+ arize_phoenix-5.2.1.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
314
+ arize_phoenix-5.2.1.dist-info/RECORD,,
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ arize-phoenix = phoenix.server.main:main
3
+ phoenix = phoenix.server.main:main
phoenix/server/app.py CHANGED
@@ -632,6 +632,15 @@ def create_app(
632
632
  oauth2_client_configs: Optional[List[OAuth2ClientConfig]] = None,
633
633
  bulk_inserter_factory: Optional[Callable[..., BulkInserter]] = None,
634
634
  ) -> FastAPI:
635
+ if model.embedding_dimensions:
636
+ try:
637
+ import fast_hdbscan # noqa: F401
638
+ import umap # noqa: F401
639
+ except ImportError as exc:
640
+ raise ImportError(
641
+ "To visualize embeddings, please install `umap-learn` and `fast-hdbscan` "
642
+ "via `pip install arize-phoenix[embeddings]`"
643
+ ) from exc
635
644
  logger.info(f"Server umap params: {umap_params}")
636
645
  bulk_inserter_factory = bulk_inserter_factory or BulkInserter
637
646
  startup_callbacks_list: List[_Callback] = list(startup_callbacks)
phoenix/server/main.py CHANGED
@@ -2,7 +2,7 @@ import atexit
2
2
  import codecs
3
3
  import os
4
4
  import sys
5
- from argparse import ArgumentParser
5
+ from argparse import SUPPRESS, ArgumentParser
6
6
  from importlib.metadata import version
7
7
  from pathlib import Path
8
8
  from threading import Thread
@@ -130,6 +130,9 @@ DEFAULT_UMAP_PARAMS_STR = f"{DEFAULT_MIN_DIST},{DEFAULT_N_NEIGHBORS},{DEFAULT_N_
130
130
 
131
131
 
132
132
  def main() -> None:
133
+ initialize_settings()
134
+ setup_logging()
135
+
133
136
  primary_inferences_name: str
134
137
  reference_inferences_name: Optional[str]
135
138
  trace_dataset_name: Optional[str] = None
@@ -138,23 +141,29 @@ def main() -> None:
138
141
  reference_inferences: Optional[Inferences] = None
139
142
  corpus_inferences: Optional[Inferences] = None
140
143
 
141
- # automatically remove the pid file when the process is being gracefully terminated
142
144
  atexit.register(_remove_pid_file)
143
145
 
144
- parser = ArgumentParser()
145
- parser.add_argument("--database-url", required=False)
146
- parser.add_argument("--export_path")
147
- parser.add_argument("--host", type=str, required=False)
148
- parser.add_argument("--port", type=int, required=False)
149
- parser.add_argument("--read-only", action="store_true", required=False) # Default is False
150
- parser.add_argument("--no-internet", action="store_true")
151
- parser.add_argument("--umap_params", type=str, required=False, default=DEFAULT_UMAP_PARAMS_STR)
152
- parser.add_argument("--debug", action="store_true")
153
- # Whether the app is running in a development environment
154
- parser.add_argument("--dev", action="store_true")
155
- parser.add_argument("--no-ui", action="store_true")
156
-
157
- subparsers = parser.add_subparsers(dest="command", required=True)
146
+ parser = ArgumentParser(usage="phoenix serve", add_help=False)
147
+ parser.add_argument(
148
+ "-h",
149
+ "--help",
150
+ action="help",
151
+ help=SUPPRESS,
152
+ )
153
+ parser.add_argument("--database-url", required=False, help=SUPPRESS)
154
+ parser.add_argument("--export_path", help=SUPPRESS)
155
+ parser.add_argument("--host", type=str, required=False, help=SUPPRESS)
156
+ parser.add_argument("--port", type=int, required=False, help=SUPPRESS)
157
+ parser.add_argument("--read-only", action="store_true", required=False, help=SUPPRESS)
158
+ parser.add_argument("--no-internet", action="store_true", help=SUPPRESS)
159
+ parser.add_argument(
160
+ "--umap_params", type=str, required=False, default=DEFAULT_UMAP_PARAMS_STR, help=SUPPRESS
161
+ )
162
+ parser.add_argument("--debug", action="store_true", help=SUPPRESS)
163
+ parser.add_argument("--dev", action="store_true", help=SUPPRESS)
164
+ parser.add_argument("--no-ui", action="store_true", help=SUPPRESS)
165
+
166
+ subparsers = parser.add_subparsers(dest="command", required=True, help=SUPPRESS)
158
167
 
159
168
  serve_parser = subparsers.add_parser("serve")
160
169
  serve_parser.add_argument(
@@ -186,7 +195,7 @@ def main() -> None:
186
195
  )
187
196
  serve_parser.add_argument(
188
197
  "--force-fixture-ingestion",
189
- action="store_true", # default is False
198
+ action="store_true",
190
199
  required=False,
191
200
  help=(
192
201
  "Whether or not to check the database age before adding the fixtures. "
@@ -196,7 +205,7 @@ def main() -> None:
196
205
  )
197
206
  serve_parser.add_argument(
198
207
  "--scaffold-datasets",
199
- action="store_true", # default is False
208
+ action="store_true",
200
209
  required=False,
201
210
  help=(
202
211
  "Whether or not to add any datasets defined in "
@@ -213,15 +222,13 @@ def main() -> None:
213
222
 
214
223
  fixture_parser = subparsers.add_parser("fixture")
215
224
  fixture_parser.add_argument("fixture", type=str, choices=[fixture.name for fixture in FIXTURES])
216
- fixture_parser.add_argument("--primary-only", action="store_true") # Default is False
225
+ fixture_parser.add_argument("--primary-only", action="store_true")
217
226
 
218
227
  trace_fixture_parser = subparsers.add_parser("trace-fixture")
219
228
  trace_fixture_parser.add_argument(
220
229
  "fixture", type=str, choices=[fixture.name for fixture in TRACES_FIXTURES]
221
230
  )
222
- trace_fixture_parser.add_argument(
223
- "--simulate-streaming", action="store_true"
224
- ) # Default is False
231
+ trace_fixture_parser.add_argument("--simulate-streaming", action="store_true")
225
232
 
226
233
  demo_parser = subparsers.add_parser("demo")
227
234
  demo_parser.add_argument("fixture", type=str, choices=[fixture.name for fixture in FIXTURES])
@@ -272,7 +279,6 @@ def main() -> None:
272
279
  )
273
280
  trace_dataset_name = args.trace_fixture
274
281
  elif args.command == "serve":
275
- # We use sets to avoid duplicates
276
282
  if args.with_fixture:
277
283
  primary_inferences, reference_inferences, corpus_inferences = get_inferences(
278
284
  str(args.with_fixture),
@@ -293,7 +299,6 @@ def main() -> None:
293
299
  scaffold_datasets = args.scaffold_datasets
294
300
  host: Optional[str] = args.host or get_env_host()
295
301
  if host == "::":
296
- # TODO(dustin): why is this necessary? it's not type compliant
297
302
  host = None
298
303
 
299
304
  port = args.port or get_env_port()
@@ -416,6 +421,4 @@ def initialize_settings() -> None:
416
421
 
417
422
 
418
423
  if __name__ == "__main__":
419
- initialize_settings()
420
- setup_logging()
421
424
  main()
@@ -1,32 +1,32 @@
1
1
  {
2
- "_components-4ANbS7sG.js": {
3
- "file": "assets/components-4ANbS7sG.js",
2
+ "_components-BqfGSfjl.js": {
3
+ "file": "assets/components-BqfGSfjl.js",
4
4
  "name": "components",
5
5
  "imports": [
6
- "_vendor-CQYk2bLC.js",
7
- "_vendor-arizeai-DgvoPlCK.js",
8
- "_pages-IkQNKgib.js",
6
+ "_vendor-WKqfwbiB.js",
7
+ "_vendor-arizeai-BCDjSYK3.js",
8
+ "_pages-CCfzLmwR.js",
9
9
  "_vendor-three-DwGkEfCM.js",
10
- "_vendor-codemirror-DcWFlULW.js"
10
+ "_vendor-codemirror-B_z6EOTv.js"
11
11
  ]
12
12
  },
13
- "_pages-IkQNKgib.js": {
14
- "file": "assets/pages-IkQNKgib.js",
13
+ "_pages-CCfzLmwR.js": {
14
+ "file": "assets/pages-CCfzLmwR.js",
15
15
  "name": "pages",
16
16
  "imports": [
17
- "_vendor-CQYk2bLC.js",
18
- "_vendor-arizeai-DgvoPlCK.js",
19
- "_components-4ANbS7sG.js",
20
- "_vendor-recharts-BaQGdoah.js",
21
- "_vendor-codemirror-DcWFlULW.js"
17
+ "_vendor-WKqfwbiB.js",
18
+ "_vendor-arizeai-BCDjSYK3.js",
19
+ "_components-BqfGSfjl.js",
20
+ "_vendor-recharts-CJm3CJf0.js",
21
+ "_vendor-codemirror-B_z6EOTv.js"
22
22
  ]
23
23
  },
24
24
  "_vendor-!~{003}~.js": {
25
25
  "file": "assets/vendor-DxkFTwjz.css",
26
26
  "src": "_vendor-!~{003}~.js"
27
27
  },
28
- "_vendor-CQYk2bLC.js": {
29
- "file": "assets/vendor-CQYk2bLC.js",
28
+ "_vendor-WKqfwbiB.js": {
29
+ "file": "assets/vendor-WKqfwbiB.js",
30
30
  "name": "vendor",
31
31
  "imports": [
32
32
  "_vendor-three-DwGkEfCM.js"
@@ -35,25 +35,25 @@
35
35
  "assets/vendor-DxkFTwjz.css"
36
36
  ]
37
37
  },
38
- "_vendor-arizeai-DgvoPlCK.js": {
39
- "file": "assets/vendor-arizeai-DgvoPlCK.js",
38
+ "_vendor-arizeai-BCDjSYK3.js": {
39
+ "file": "assets/vendor-arizeai-BCDjSYK3.js",
40
40
  "name": "vendor-arizeai",
41
41
  "imports": [
42
- "_vendor-CQYk2bLC.js"
42
+ "_vendor-WKqfwbiB.js"
43
43
  ]
44
44
  },
45
- "_vendor-codemirror-DcWFlULW.js": {
46
- "file": "assets/vendor-codemirror-DcWFlULW.js",
45
+ "_vendor-codemirror-B_z6EOTv.js": {
46
+ "file": "assets/vendor-codemirror-B_z6EOTv.js",
47
47
  "name": "vendor-codemirror",
48
48
  "imports": [
49
- "_vendor-CQYk2bLC.js"
49
+ "_vendor-WKqfwbiB.js"
50
50
  ]
51
51
  },
52
- "_vendor-recharts-BaQGdoah.js": {
53
- "file": "assets/vendor-recharts-BaQGdoah.js",
52
+ "_vendor-recharts-CJm3CJf0.js": {
53
+ "file": "assets/vendor-recharts-CJm3CJf0.js",
54
54
  "name": "vendor-recharts",
55
55
  "imports": [
56
- "_vendor-CQYk2bLC.js"
56
+ "_vendor-WKqfwbiB.js"
57
57
  ]
58
58
  },
59
59
  "_vendor-three-DwGkEfCM.js": {
@@ -61,18 +61,18 @@
61
61
  "name": "vendor-three"
62
62
  },
63
63
  "index.tsx": {
64
- "file": "assets/index-CwRlD2_T.js",
64
+ "file": "assets/index-CCZJh73q.js",
65
65
  "name": "index",
66
66
  "src": "index.tsx",
67
67
  "isEntry": true,
68
68
  "imports": [
69
- "_vendor-CQYk2bLC.js",
70
- "_vendor-arizeai-DgvoPlCK.js",
71
- "_pages-IkQNKgib.js",
72
- "_components-4ANbS7sG.js",
69
+ "_vendor-WKqfwbiB.js",
70
+ "_vendor-arizeai-BCDjSYK3.js",
71
+ "_pages-CCfzLmwR.js",
72
+ "_components-BqfGSfjl.js",
73
73
  "_vendor-three-DwGkEfCM.js",
74
- "_vendor-recharts-BaQGdoah.js",
75
- "_vendor-codemirror-DcWFlULW.js"
74
+ "_vendor-recharts-CJm3CJf0.js",
75
+ "_vendor-codemirror-B_z6EOTv.js"
76
76
  ]
77
77
  }
78
78
  }
@@ -1,4 +1,4 @@
1
- import{c as Be,p as at,d as $e,r as g,j as e,R as W,n as U1,a as Pe,C as Oe,b as X,s as it,e as rt,f as de,g as _e,h as Xe,i as ze,k as ue,l as r1,m as lt,o as le,q as ot,t as st,u as l1,v as o,w as m,L as Q1,x as ct,N as dt,y as ut,z as mt,$ as N,A as Ze,B as pt,D as ht,E as gt,F as ft,G as w1,H as ce,I as he,J as Lt,K as j1,S as Ct,M as yt,Q as x1,O as vt,P as bt,T as kt,U as Je,V as q1,W as wt,X as xt,Y as St,Z as Mt,_ as Tt,a0 as It,a1 as Et,a2 as Dt,a3 as Vt,a4 as Te,a5 as P,a6 as W1,a7 as Ft,a8 as Pt,a9 as _t,aa as At,ab as Nt,ac as zt,ad as Rt}from"./vendor-CQYk2bLC.js";import{u as Ot,A as Kt,I,a as x,_ as X1,b as v,c as D,d as b,e as K,f as q,T as B,g as Ht,h as Y,i as Ie,j as V,F as J1,k as z,l as Bt,m as $t,P as Zt,R as U,n as Ee,o as Gt,p as Ut,L as c1,q as ee,r as ne,s as De,t as Y1,v as en,E as nn,w as Qt,x as jt,y as qt,z as Wt,B as tn,C as d1,D as Xt,G as Jt,H as S1,J as Yt}from"./vendor-arizeai-DgvoPlCK.js";import{u as ea}from"./pages-IkQNKgib.js";import{V as na}from"./vendor-three-DwGkEfCM.js";import{j as an,E as rn,l as ln,a as on,R as Ge,n as Ue,p as ta,b as aa}from"./vendor-codemirror-DcWFlULW.js";const ia=n=>{const t=a=>({markdownDisplayMode:"text",setMarkdownDisplayMode:i=>{a({markdownDisplayMode:i})},traceStreamingEnabled:!0,setTraceStreamingEnabled:i=>{a({traceStreamingEnabled:i})},lastNTimeRangeKey:"7d",setLastNTimeRangeKey:i=>{a({lastNTimeRangeKey:i})},projectsAutoRefreshEnabled:!0,setProjectAutoRefreshEnabled:i=>{a({projectsAutoRefreshEnabled:i})},showSpanAside:!0,setShowSpanAside:i=>{a({showSpanAside:i})},showMetricsInTraceTree:!0,setShowMetricsInTraceTree:i=>{a({showMetricsInTraceTree:i})},...n});return Be()(at($e(t),{name:"arize-phoenix-preferences"}))},sn=g.createContext(null);function ol({children:n,...t}){const[a]=g.useState(()=>ia(t));return e(sn.Provider,{value:a,children:n})}function se(n,t){const a=W.useContext(sn);if(!a)throw new Error("Missing PreferencesContext.Provider in the tree");return U1(a,n,t)}var Q=(n=>(n.primary="primary",n.reference="reference",n.corpus="corpus",n))(Q||{});function R(n){throw new Error("Unreachable")}function u1(n){return typeof n=="number"||n===null}function ra(n){return typeof n=="string"||n===null}function sl(n){return Array.isArray(n)?n.every(t=>typeof t=="string"):!1}function la(n){return typeof n=="object"&&n!==null}const m1=g.createContext(null);function Qe(){const n=W.useContext(m1);if(n===null)throw new Error("useInferences must be used within a InferencesProvider");return n}function cl(n){return e(m1.Provider,{value:{primaryInferences:n.primaryInferences,referenceInferences:n.referenceInferences,corpusInferences:n.corpusInferences,getInferencesNameByRole:t=>{var a,i;switch(t){case Q.primary:return n.primaryInferences.name;case Q.reference:return((a=n.referenceInferences)==null?void 0:a.name)??"reference";case Q.corpus:return((i=n.corpusInferences)==null?void 0:i.name)??"corpus";default:R()}}},children:n.children})}const cn=function(){var n={defaultValue:null,kind:"LocalArgument",name:"clusters"},t={defaultValue:null,kind:"LocalArgument",name:"dataQualityMetricColumnName"},a={defaultValue:null,kind:"LocalArgument",name:"fetchDataQualityMetric"},i={defaultValue:null,kind:"LocalArgument",name:"fetchPerformanceMetric"},r={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}],s=[{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:[n,t,a,i,r],kind:"Fragment",metadata:null,name:"pointCloudStore_clusterMetricsQuery",selections:s,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,a,t,i,r],kind:"Operation",name:"pointCloudStore_clusterMetricsQuery",selections:s},params:{cacheID:"86666967012812887ac0a0149d2d2535",id:null,metadata:{},name:"pointCloudStore_clusterMetricsQuery",operationKind:"query",text:`query pointCloudStore_clusterMetricsQuery(
1
+ import{c as Be,p as at,d as $e,r as g,j as e,R as W,n as U1,a as Pe,C as Oe,b as X,s as it,e as rt,f as de,g as _e,h as Xe,i as ze,k as ue,l as r1,m as lt,o as le,q as ot,t as st,u as l1,v as o,w as m,L as Q1,x as ct,N as dt,y as ut,z as mt,$ as N,A as Ze,B as pt,D as ht,E as gt,F as ft,G as w1,H as ce,I as he,J as Lt,K as j1,S as Ct,M as yt,Q as x1,O as vt,P as bt,T as kt,U as Je,V as q1,W as wt,X as xt,Y as St,Z as Mt,_ as Tt,a0 as It,a1 as Et,a2 as Dt,a3 as Vt,a4 as Te,a5 as P,a6 as W1,a7 as Ft,a8 as Pt,a9 as _t,aa as At,ab as Nt,ac as zt,ad as Rt}from"./vendor-WKqfwbiB.js";import{u as Ot,A as Kt,I,a as x,_ as X1,b as v,c as D,d as b,e as K,f as q,T as B,g as Ht,h as Y,i as Ie,j as V,F as J1,k as z,l as Bt,m as $t,P as Zt,R as U,n as Ee,o as Gt,p as Ut,L as c1,q as ee,r as ne,s as De,t as Y1,v as en,E as nn,w as Qt,x as jt,y as qt,z as Wt,B as tn,C as d1,D as Xt,G as Jt,H as S1,J as Yt}from"./vendor-arizeai-BCDjSYK3.js";import{u as ea}from"./pages-CCfzLmwR.js";import{V as na}from"./vendor-three-DwGkEfCM.js";import{j as an,E as rn,l as ln,a as on,R as Ge,n as Ue,p as ta,b as aa}from"./vendor-codemirror-B_z6EOTv.js";const ia=n=>{const t=a=>({markdownDisplayMode:"text",setMarkdownDisplayMode:i=>{a({markdownDisplayMode:i})},traceStreamingEnabled:!0,setTraceStreamingEnabled:i=>{a({traceStreamingEnabled:i})},lastNTimeRangeKey:"7d",setLastNTimeRangeKey:i=>{a({lastNTimeRangeKey:i})},projectsAutoRefreshEnabled:!0,setProjectAutoRefreshEnabled:i=>{a({projectsAutoRefreshEnabled:i})},showSpanAside:!0,setShowSpanAside:i=>{a({showSpanAside:i})},showMetricsInTraceTree:!0,setShowMetricsInTraceTree:i=>{a({showMetricsInTraceTree:i})},...n});return Be()(at($e(t),{name:"arize-phoenix-preferences"}))},sn=g.createContext(null);function ol({children:n,...t}){const[a]=g.useState(()=>ia(t));return e(sn.Provider,{value:a,children:n})}function se(n,t){const a=W.useContext(sn);if(!a)throw new Error("Missing PreferencesContext.Provider in the tree");return U1(a,n,t)}var Q=(n=>(n.primary="primary",n.reference="reference",n.corpus="corpus",n))(Q||{});function R(n){throw new Error("Unreachable")}function u1(n){return typeof n=="number"||n===null}function ra(n){return typeof n=="string"||n===null}function sl(n){return Array.isArray(n)?n.every(t=>typeof t=="string"):!1}function la(n){return typeof n=="object"&&n!==null}const m1=g.createContext(null);function Qe(){const n=W.useContext(m1);if(n===null)throw new Error("useInferences must be used within a InferencesProvider");return n}function cl(n){return e(m1.Provider,{value:{primaryInferences:n.primaryInferences,referenceInferences:n.referenceInferences,corpusInferences:n.corpusInferences,getInferencesNameByRole:t=>{var a,i;switch(t){case Q.primary:return n.primaryInferences.name;case Q.reference:return((a=n.referenceInferences)==null?void 0:a.name)??"reference";case Q.corpus:return((i=n.corpusInferences)==null?void 0:i.name)??"corpus";default:R()}}},children:n.children})}const cn=function(){var n={defaultValue:null,kind:"LocalArgument",name:"clusters"},t={defaultValue:null,kind:"LocalArgument",name:"dataQualityMetricColumnName"},a={defaultValue:null,kind:"LocalArgument",name:"fetchDataQualityMetric"},i={defaultValue:null,kind:"LocalArgument",name:"fetchPerformanceMetric"},r={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}],s=[{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:[n,t,a,i,r],kind:"Fragment",metadata:null,name:"pointCloudStore_clusterMetricsQuery",selections:s,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,a,t,i,r],kind:"Operation",name:"pointCloudStore_clusterMetricsQuery",selections:s},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{j as e,w as h,aR as b,d6 as x,d7 as f,v as n,d8 as r,d9 as y,da as P,r as v,b as w,db as R}from"./vendor-CQYk2bLC.js";import{v as L,a4 as z}from"./vendor-arizeai-DgvoPlCK.js";import{E,L as k,R as $,r as j,a as S,F as A,A as I,b as F,c as T,P as C,h as O,M as D,d,D as B,e as M,f as N,g as q,i as G,j as W,T as K,p as H,k as c,l as J,m as Q,n as p,o as U,q as m,s as g,t as V,v as X,w as Y,x as Z,y as _,z as ee,B as re,S as ae,C as oe,G as te}from"./pages-IkQNKgib.js";import{bo as ne,i as se,R as le,bp as ie,bq as de}from"./components-4ANbS7sG.js";import"./vendor-three-DwGkEfCM.js";import"./vendor-recharts-BaQGdoah.js";import"./vendor-codemirror-DcWFlULW.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(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"&&i(l)}).observe(document,{childList:!0,subtree:!0});function u(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 i(o){if(o.ep)return;o.ep=!0;const t=u(o);fetch(o.href,t)}})();function ce(){return e(b,{styles:a=>h`
1
+ import{j as e,w as h,aR as b,d6 as x,d7 as f,v as n,d8 as r,d9 as y,da as P,r as v,b as w,db as R}from"./vendor-WKqfwbiB.js";import{v as L,a4 as z}from"./vendor-arizeai-BCDjSYK3.js";import{E,L as k,R as $,r as j,a as S,F as A,A as I,b as F,c as T,P as C,h as O,M as D,d,D as B,e as M,f as N,g as q,i as G,j as W,T as K,p as H,k as c,l as J,m as Q,n as p,o as U,q as m,s as g,t as V,v as X,w as Y,x as Z,y as _,z as ee,B as re,S as ae,C as oe,G as te}from"./pages-CCfzLmwR.js";import{bo as ne,i as se,R as le,bp as ie,bq as de}from"./components-BqfGSfjl.js";import"./vendor-three-DwGkEfCM.js";import"./vendor-recharts-CJm3CJf0.js";import"./vendor-codemirror-B_z6EOTv.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(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"&&i(l)}).observe(document,{childList:!0,subtree:!0});function u(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 i(o){if(o.ep)return;o.ep=!0;const t=u(o);fetch(o.href,t)}})();function ce(){return e(b,{styles:a=>h`
2
2
  body {
3
3
  background-color: var(--ac-global-color-grey-75);
4
4
  color: var(--ac-global-text-color-900);