arize-phoenix 10.13.1__py3-none-any.whl → 10.14.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-10.13.1.dist-info → arize_phoenix-10.14.0.dist-info}/METADATA +3 -3
- {arize_phoenix-10.13.1.dist-info → arize_phoenix-10.14.0.dist-info}/RECORD +21 -21
- phoenix/config.py +3 -1
- phoenix/server/api/helpers/dataset_helpers.py +5 -1
- phoenix/server/api/mutations/project_mutations.py +9 -6
- phoenix/server/email/sender.py +2 -2
- phoenix/server/main.py +9 -6
- phoenix/server/static/.vite/manifest.json +36 -36
- phoenix/server/static/assets/{components-37rV35eH.js → components-CUUWyAMo.js} +2 -2
- phoenix/server/static/assets/{index-CdNW7TcY.js → index-qiubV_74.js} +2 -2
- phoenix/server/static/assets/{pages-BWWAYqfd.js → pages-C4V07ozl.js} +405 -422
- phoenix/server/static/assets/{vendor-BKYy4SMr.js → vendor-Bfsiga8H.js} +1 -1
- phoenix/server/static/assets/{vendor-arizeai-hGVPFFRq.js → vendor-arizeai-CQOWsrzm.js} +22 -22
- phoenix/server/static/assets/{vendor-codemirror-BlmFw5CA.js → vendor-codemirror-CrcGVhB2.js} +1 -1
- phoenix/server/static/assets/{vendor-recharts-Bz7zqjbW.js → vendor-recharts-Yyg3G-Rq.js} +1 -1
- phoenix/server/static/assets/{vendor-shiki-BitvudxD.js → vendor-shiki-OPjag7Hm.js} +1 -1
- phoenix/version.py +1 -1
- {arize_phoenix-10.13.1.dist-info → arize_phoenix-10.14.0.dist-info}/WHEEL +0 -0
- {arize_phoenix-10.13.1.dist-info → arize_phoenix-10.14.0.dist-info}/entry_points.txt +0 -0
- {arize_phoenix-10.13.1.dist-info → arize_phoenix-10.14.0.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-10.13.1.dist-info → arize_phoenix-10.14.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: arize-phoenix
|
|
3
|
-
Version: 10.
|
|
3
|
+
Version: 10.14.0
|
|
4
4
|
Summary: AI Observability and Evaluation
|
|
5
5
|
Project-URL: Documentation, https://arize.com/docs/phoenix/
|
|
6
6
|
Project-URL: Issues, https://github.com/Arize-ai/phoenix/issues
|
|
@@ -39,7 +39,7 @@ Requires-Dist: opentelemetry-proto>=1.12.0
|
|
|
39
39
|
Requires-Dist: opentelemetry-sdk
|
|
40
40
|
Requires-Dist: opentelemetry-semantic-conventions
|
|
41
41
|
Requires-Dist: pandas>=1.0
|
|
42
|
-
Requires-Dist: protobuf<6.0,>=
|
|
42
|
+
Requires-Dist: protobuf<6.0,>=4.25.8
|
|
43
43
|
Requires-Dist: psutil
|
|
44
44
|
Requires-Dist: pyarrow
|
|
45
45
|
Requires-Dist: pydantic>=2.1.0
|
|
@@ -218,7 +218,7 @@ Phoenix is built on top of OpenTelemetry and is vendor, language, and framework
|
|
|
218
218
|
| [LangChain](https://arize.com/docs/phoenix/tracing/integrations-tracing/langchain) | `openinference-instrumentation-langchain` | [](https://pypi.python.org/pypi/openinference-instrumentation-langchain) |
|
|
219
219
|
| [MistralAI](https://arize.com/docs/phoenix/tracing/integrations-tracing/mistralai) | `openinference-instrumentation-mistralai` | [](https://pypi.python.org/pypi/openinference-instrumentation-mistralai) |
|
|
220
220
|
| [Google GenAI](https://arize.com/docs/phoenix/tracing/integrations-tracing/google-gen-ai) | `openinference-instrumentation-google-genai` | [](https://pypi.python.org/pypi/openinference-instrumentation-google-genai) |
|
|
221
|
-
| [Google ADK](https://arize.com/docs/phoenix/
|
|
221
|
+
| [Google ADK](https://arize.com/docs/phoenix/integrations/llm-providers/google-gen-ai/google-adk-tracing) | `openinference-instrumentation-google-adk` | [](https://pypi.python.org/pypi/openinference-instrumentation-google-adk) |
|
|
222
222
|
| [Guardrails](https://arize.com/docs/phoenix/tracing/integrations-tracing/guardrails) | `openinference-instrumentation-guardrails` | [](https://pypi.python.org/pypi/openinference-instrumentation-guardrails) |
|
|
223
223
|
| [VertexAI](https://arize.com/docs/phoenix/tracing/integrations-tracing/vertexai) | `openinference-instrumentation-vertexai` | [](https://pypi.python.org/pypi/openinference-instrumentation-vertexai) |
|
|
224
224
|
| [CrewAI](https://arize.com/docs/phoenix/tracing/integrations-tracing/crewai) | `openinference-instrumentation-crewai` | [](https://pypi.python.org/pypi/openinference-instrumentation-crewai) |
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
phoenix/__init__.py,sha256=xkpXH76HFbEDCq8IhiFp-2GnEHx39xPMdOpV5Skew1w,5481
|
|
2
2
|
phoenix/auth.py,sha256=yW78f1xWNjTE30ACGUM14nOd5BzkukhlzA9B45kSUkM,11053
|
|
3
|
-
phoenix/config.py,sha256=
|
|
3
|
+
phoenix/config.py,sha256=qWSfDE4xH_83XawfFH2oxawx2aBNWA64E_b69aZSi8I,57571
|
|
4
4
|
phoenix/datetime_utils.py,sha256=iJzNG6YJ6V7_u8B2iA7P2Z26FyxYbOPtx0dhJ7kNDHA,3398
|
|
5
5
|
phoenix/exceptions.py,sha256=n2L2KKuecrdflB9MsCdAYCiSEvGJptIsfRkXMoJle7A,169
|
|
6
6
|
phoenix/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
7
7
|
phoenix/services.py,sha256=ngkyKGVatX3cO2WJdo2hKdaVKP-xJCMvqthvga6kJss,5196
|
|
8
8
|
phoenix/settings.py,sha256=2kHfT3BNOVd4dAO1bq-syEQbHSG8oX2-7NhOwK2QREk,896
|
|
9
|
-
phoenix/version.py,sha256=
|
|
9
|
+
phoenix/version.py,sha256=oWz87euPqefw5-W3qPPzTytqoqWc4GE4W2tD5ua5SR8,24
|
|
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=qBFraOtmwCCnWJltKNP18DDG0mULXigytlFsa6YOz6k,4837
|
|
@@ -96,7 +96,7 @@ phoenix/server/dml_event.py,sha256=MjJmVEKytq75chBOSyvYDusUnEbg1pHpIjR3pZkUaJA,2
|
|
|
96
96
|
phoenix/server/dml_event_handler.py,sha256=EZLXmCvx4pJrCkz29gxwKwmvmUkTtPCHw6klR-XM8qE,8258
|
|
97
97
|
phoenix/server/grpc_server.py,sha256=dod29zE_Zlir7NyLcdVM8GH3P8sy-9ykzfaBfVifyE4,4656
|
|
98
98
|
phoenix/server/jwt_store.py,sha256=B6uVildN_dQDTG_-aHHvuVSI7wIVK1yvED-_y6se2GU,16905
|
|
99
|
-
phoenix/server/main.py,sha256=
|
|
99
|
+
phoenix/server/main.py,sha256=SvLh2gB1F1Rh2LMcEx-W5gtOoGTpBjGl1tT10fG62Ns,18792
|
|
100
100
|
phoenix/server/oauth2.py,sha256=GvUqZBoZ5dG-l2G1RMl1SUcN10jNAjaMXFznMSWz2Zs,3336
|
|
101
101
|
phoenix/server/prometheus.py,sha256=1KjvSfjSa2-BPjDybVMM_Kag316CsN-Zwt64YNr_snc,7825
|
|
102
102
|
phoenix/server/rate_limiters.py,sha256=cFc73D2NaxqNZZDbwfIDw4So-fRVOJPBtqxOZ8Qky_s,7155
|
|
@@ -156,7 +156,7 @@ phoenix/server/api/dataloaders/cache/__init__.py,sha256=SYoOM9n8FJaMdQarma5d1blu
|
|
|
156
156
|
phoenix/server/api/dataloaders/cache/two_tier_cache.py,sha256=cmo8FUT3E91R139IEzh4yCga-6nTamc5KPXAfMrzNDM,2315
|
|
157
157
|
phoenix/server/api/helpers/__init__.py,sha256=m2-xaSPqUiSs91k62JaRDjFNfl-1byxBfY-m_Vxw16U,272
|
|
158
158
|
phoenix/server/api/helpers/annotations.py,sha256=9gMXKpMTfWEChoSCnvdWYuyB0hlSnNOp-qUdar9Vono,262
|
|
159
|
-
phoenix/server/api/helpers/dataset_helpers.py,sha256=
|
|
159
|
+
phoenix/server/api/helpers/dataset_helpers.py,sha256=3bdGBoUzqrtg-sr5p2wpQLOU6dhg_3TKFHNeJj8p0TU,9155
|
|
160
160
|
phoenix/server/api/helpers/experiment_run_filters.py,sha256=DOnVwrmn39eAkk2mwuZP8kIcAnR5jrOgllEwWSjsw94,29893
|
|
161
161
|
phoenix/server/api/helpers/playground_clients.py,sha256=laFDXVnj-n5-nze5OeJSLT5nwdz2IWFTVccKNcLqK7U,47932
|
|
162
162
|
phoenix/server/api/helpers/playground_registry.py,sha256=CPLMziFB2wmr-dfbx7VbzO2f8YIG_k5RftzvGXYGQ1w,2570
|
|
@@ -214,7 +214,7 @@ phoenix/server/api/mutations/chat_mutations.py,sha256=pwrScthRbMcgXsOucQvSEx6PPi
|
|
|
214
214
|
phoenix/server/api/mutations/dataset_mutations.py,sha256=KRlF-Ag3twqaBpLR_6WYxf57DffaGuFBm-soaBPStbI,27787
|
|
215
215
|
phoenix/server/api/mutations/experiment_mutations.py,sha256=p3CoLAa8nFPa3D759Y2A7De_PVJNGOL98mA3HoZBrRQ,3188
|
|
216
216
|
phoenix/server/api/mutations/export_events_mutations.py,sha256=xoDnVWC7eA_8wNQP0-oyiHojyUZ0EhVVSrsAnztetC0,3993
|
|
217
|
-
phoenix/server/api/mutations/project_mutations.py,sha256=
|
|
217
|
+
phoenix/server/api/mutations/project_mutations.py,sha256=mhXw1ChBtdHCF3GOls66hHJmr5ohkICugp82o09e-sc,2926
|
|
218
218
|
phoenix/server/api/mutations/project_trace_retention_policy_mutations.py,sha256=AqBe8TBxlXdIL56Afs4FIBqkI0bEgf-v9bHlbc-O6VI,9839
|
|
219
219
|
phoenix/server/api/mutations/prompt_label_mutations.py,sha256=uCiVcULtmgaNaav4M08ipPYM68sZv1MVLrCgvW-Xyn8,7317
|
|
220
220
|
phoenix/server/api/mutations/prompt_mutations.py,sha256=Yg-6L2PiKUZfFyNarptu3OdE0uA2_Nyl3VrLVP8FJ9Y,12114
|
|
@@ -332,7 +332,7 @@ phoenix/server/cost_tracking/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
332
332
|
phoenix/server/cost_tracking/cost_lookup.py,sha256=c9COURDSW-LFAeuX1k2PX-kKpy8WZeIiwwjJr_YZOqY,9416
|
|
333
333
|
phoenix/server/cost_tracking/model_cost_manifest.json,sha256=tlOYj69-K0ru53ql3UtX-ynRU_J3C_g5BUGZR6aSirM,19270
|
|
334
334
|
phoenix/server/email/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
335
|
-
phoenix/server/email/sender.py,sha256=
|
|
335
|
+
phoenix/server/email/sender.py,sha256=kH94CtAQACyu9KgtVBLmJwMNICxY1XVtbfthibAOC-8,4067
|
|
336
336
|
phoenix/server/email/types.py,sha256=IO2bTtCh-1cve-xiM4MWnunCCVNOQ3Z2cqTqF7vH-do,466
|
|
337
337
|
phoenix/server/email/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
338
338
|
phoenix/server/email/templates/password_reset.html,sha256=jv0Pe-06JloPZcubRWxPdAFHYEn9eDj_4SjmuoIwshI,441
|
|
@@ -350,16 +350,16 @@ phoenix/server/static/apple-touch-icon-76x76.png,sha256=CT_xT12I0u2i0WU8JzBZBuOQ
|
|
|
350
350
|
phoenix/server/static/apple-touch-icon.png,sha256=fOfpjqGpWYbJ0eAurKsyoZP1EAs6ZVooBJ_SGk2ZkDs,3801
|
|
351
351
|
phoenix/server/static/favicon.ico,sha256=bY0vvCKRftemZfPShwZtE93DiiQdaYaozkPGwNFr6H8,34494
|
|
352
352
|
phoenix/server/static/modernizr.js,sha256=mvK-XtkNqjOral-QvzoqsyOMECXIMu5BQwSVN_wcU9c,2564
|
|
353
|
-
phoenix/server/static/.vite/manifest.json,sha256=
|
|
354
|
-
phoenix/server/static/assets/components-
|
|
355
|
-
phoenix/server/static/assets/index-
|
|
356
|
-
phoenix/server/static/assets/pages-
|
|
357
|
-
phoenix/server/static/assets/vendor-
|
|
353
|
+
phoenix/server/static/.vite/manifest.json,sha256=R45z3iK1XONjFUwE5Lf0nFXPMqq3W8U1_X5Owq78Dcc,2165
|
|
354
|
+
phoenix/server/static/assets/components-CUUWyAMo.js,sha256=eSjXl6g0c9eMrF8q7HX6y5X9hN1T6s49jnLt8Rv4eSc,566773
|
|
355
|
+
phoenix/server/static/assets/index-qiubV_74.js,sha256=l7k1xzIMLQXIeHFrZSFkxRUFtgOvi1_nGcIZ0LbGJv8,61125
|
|
356
|
+
phoenix/server/static/assets/pages-C4V07ozl.js,sha256=TPhwjSApNs2bY9sN3pjNv51Ff7x_RV7X-XmMWhL515Y,1060729
|
|
357
|
+
phoenix/server/static/assets/vendor-Bfsiga8H.js,sha256=W5n2uoDFb0RygwdzutQ_0Zr_Y-gmRhXGbTsngYNl3jw,2735976
|
|
358
358
|
phoenix/server/static/assets/vendor-WIZid84E.css,sha256=spZD2r7XL5GfLO13ln-IuXfnjAref8l6g_n_AvxxOlI,5517
|
|
359
|
-
phoenix/server/static/assets/vendor-arizeai-
|
|
360
|
-
phoenix/server/static/assets/vendor-codemirror-
|
|
361
|
-
phoenix/server/static/assets/vendor-recharts-
|
|
362
|
-
phoenix/server/static/assets/vendor-shiki-
|
|
359
|
+
phoenix/server/static/assets/vendor-arizeai-CQOWsrzm.js,sha256=K1fNIw3F4RlZtoliQ_AIs6nkwxgDA4qin9tr5ymdVTg,181763
|
|
360
|
+
phoenix/server/static/assets/vendor-codemirror-CrcGVhB2.js,sha256=kE6QttmZqtv6uYnSClYARKG5lSzojHiwDOG3vlY1UmE,781264
|
|
361
|
+
phoenix/server/static/assets/vendor-recharts-Yyg3G-Rq.js,sha256=a6uFUiVKVzQDYz4ysUvGoCxSwkzBakFy6eWvOv0Oc7M,282150
|
|
362
|
+
phoenix/server/static/assets/vendor-shiki-OPjag7Hm.js,sha256=xNlX8VcIu-AW1BkHHWNQgcF5ez92Urr1K7lpWxQvunc,8980312
|
|
363
363
|
phoenix/server/static/assets/vendor-three-C5WAXd5r.js,sha256=ELkg06u70N7h8oFmvqdoHyPuUf9VgGEWeT4LKFx4VWo,620975
|
|
364
364
|
phoenix/server/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
365
365
|
phoenix/server/templates/index.html,sha256=TxaZTZKUz7-xQ3XlPO3DAPMj6S1rMEr5v6g1UmgaW70,6761
|
|
@@ -400,9 +400,9 @@ phoenix/utilities/project.py,sha256=auVpARXkDb-JgeX5f2aStyFIkeKvGwN9l7qrFeJMVxI,
|
|
|
400
400
|
phoenix/utilities/re.py,sha256=6YyUWIkv0zc2SigsxfOWIHzdpjKA_TZo2iqKq7zJKvw,2081
|
|
401
401
|
phoenix/utilities/span_store.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
402
402
|
phoenix/utilities/template_formatters.py,sha256=gh9PJD6WEGw7TEYXfSst1UR4pWWwmjxMLrDVQ_CkpkQ,2779
|
|
403
|
-
arize_phoenix-10.
|
|
404
|
-
arize_phoenix-10.
|
|
405
|
-
arize_phoenix-10.
|
|
406
|
-
arize_phoenix-10.
|
|
407
|
-
arize_phoenix-10.
|
|
408
|
-
arize_phoenix-10.
|
|
403
|
+
arize_phoenix-10.14.0.dist-info/METADATA,sha256=QtJf6vQMIYEsp6SA3cftpHaq0fvKyYCUXo_GN2GmYA8,27327
|
|
404
|
+
arize_phoenix-10.14.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
405
|
+
arize_phoenix-10.14.0.dist-info/entry_points.txt,sha256=Pgpn8Upxx9P8z8joPXZWl2LlnAlGc3gcQoVchb06X1Q,94
|
|
406
|
+
arize_phoenix-10.14.0.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
|
|
407
|
+
arize_phoenix-10.14.0.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
|
|
408
|
+
arize_phoenix-10.14.0.dist-info/RECORD,,
|
phoenix/config.py
CHANGED
|
@@ -24,6 +24,8 @@ if TYPE_CHECKING:
|
|
|
24
24
|
|
|
25
25
|
logger = logging.getLogger(__name__)
|
|
26
26
|
|
|
27
|
+
ENV_OTEL_EXPORTER_OTLP_ENDPOINT = "OTEL_EXPORTER_OTLP_ENDPOINT"
|
|
28
|
+
|
|
27
29
|
# Phoenix environment variables
|
|
28
30
|
ENV_PHOENIX_PORT = "PHOENIX_PORT"
|
|
29
31
|
ENV_PHOENIX_GRPC_PORT = "PHOENIX_GRPC_PORT"
|
|
@@ -1276,7 +1278,7 @@ def get_env_host_root_path() -> str:
|
|
|
1276
1278
|
|
|
1277
1279
|
|
|
1278
1280
|
def get_env_collector_endpoint() -> Optional[str]:
|
|
1279
|
-
return getenv(ENV_PHOENIX_COLLECTOR_ENDPOINT)
|
|
1281
|
+
return getenv(ENV_PHOENIX_COLLECTOR_ENDPOINT) or getenv(ENV_OTEL_EXPORTER_OTLP_ENDPOINT)
|
|
1280
1282
|
|
|
1281
1283
|
|
|
1282
1284
|
def get_env_project_name() -> str:
|
|
@@ -91,7 +91,9 @@ def _get_llm_span_input(
|
|
|
91
91
|
if not input:
|
|
92
92
|
input = _get_generic_io_value(io_value=input_value, mime_type=input_mime_type, kind="input")
|
|
93
93
|
if prompt_template_variables_data := _safely_json_decode(prompt_template_variables):
|
|
94
|
-
|
|
94
|
+
# Hoist template variables to top level as individual key-value pairs
|
|
95
|
+
input.update(prompt_template_variables_data)
|
|
96
|
+
# Keep the original nested structure for compatibility
|
|
95
97
|
if tool_definitions_data := [_safely_json_decode(tool_definition) for tool_definition in tools]:
|
|
96
98
|
input["tools"] = tool_definitions_data
|
|
97
99
|
return input
|
|
@@ -193,6 +195,8 @@ def _safely_json_decode(value: Any) -> Any:
|
|
|
193
195
|
"""
|
|
194
196
|
Safely decodes a JSON-encoded value.
|
|
195
197
|
"""
|
|
198
|
+
if isinstance(value, dict):
|
|
199
|
+
return value
|
|
196
200
|
if not isinstance(value, str):
|
|
197
201
|
return None
|
|
198
202
|
try:
|
|
@@ -47,11 +47,14 @@ class ProjectMutationMixin:
|
|
|
47
47
|
delete_statement = delete_statement.where(models.Trace.start_time < input.end_time)
|
|
48
48
|
async with info.context.db() as session:
|
|
49
49
|
deleted_trace_project_session_ids = await session.scalars(delete_statement)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
session_ids_to_delete = [
|
|
51
|
+
id_ for id_ in set(deleted_trace_project_session_ids) if id_ is not None
|
|
52
|
+
]
|
|
53
|
+
# Process deletions in chunks of 10000 to avoid PostgreSQL argument limit
|
|
54
|
+
chunk_size = 10000
|
|
55
|
+
stmt = delete(models.ProjectSession)
|
|
56
|
+
for i in range(0, len(session_ids_to_delete), chunk_size):
|
|
57
|
+
chunk = session_ids_to_delete[i : i + chunk_size]
|
|
58
|
+
await session.execute(stmt.where(models.ProjectSession.id.in_(chunk)))
|
|
56
59
|
info.context.event_queue.put(SpanDeleteEvent((project_id,)))
|
|
57
60
|
return Query()
|
phoenix/server/email/sender.py
CHANGED
|
@@ -3,7 +3,6 @@ import ssl
|
|
|
3
3
|
from email.message import EmailMessage
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
from typing import Literal
|
|
6
|
-
from urllib.parse import urljoin
|
|
7
6
|
|
|
8
7
|
from anyio import to_thread
|
|
9
8
|
from jinja2 import Environment, FileSystemLoader, select_autoescape
|
|
@@ -49,9 +48,10 @@ class SimpleEmailSender:
|
|
|
49
48
|
template_name = "welcome.html"
|
|
50
49
|
|
|
51
50
|
template = self.env.get_template(template_name)
|
|
51
|
+
|
|
52
52
|
html_content = template.render(
|
|
53
53
|
name=name,
|
|
54
|
-
welcome_url=
|
|
54
|
+
welcome_url=str(get_env_root_url()),
|
|
55
55
|
)
|
|
56
56
|
|
|
57
57
|
msg = EmailMessage()
|
phoenix/server/main.py
CHANGED
|
@@ -91,13 +91,13 @@ _WELCOME_MESSAGE = Environment(loader=BaseLoader()).from_string("""
|
|
|
91
91
|
██║ ██║ ██║╚██████╔╝███████╗██║ ╚████║██║██╔╝ ██╗
|
|
92
92
|
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝ v{{ version }}
|
|
93
93
|
|
|
94
|
+
| ⭐️⭐️⭐️ Support Open Source ⭐️⭐️⭐️
|
|
95
|
+
| ⭐️⭐️⭐️ Star on GitHub! ⭐️⭐️⭐️
|
|
96
|
+
| https://github.com/Arize-ai/phoenix
|
|
94
97
|
|
|
|
95
98
|
| 🌎 Join our Community 🌎
|
|
96
99
|
| https://arize-ai.slack.com/join/shared_invite/zt-2w57bhem8-hq24MB6u7yE_ZF_ilOYSBw#/shared-invite/email
|
|
97
100
|
|
|
|
98
|
-
| ⭐️ Leave us a Star ⭐️
|
|
99
|
-
| https://github.com/Arize-ai/phoenix
|
|
100
|
-
|
|
|
101
101
|
| 📚 Documentation 📚
|
|
102
102
|
| https://arize.com/docs/phoenix
|
|
103
103
|
|
|
|
@@ -387,12 +387,15 @@ def main() -> None:
|
|
|
387
387
|
# Print information about the server
|
|
388
388
|
http_scheme = "https" if tls_enabled_for_http else "http"
|
|
389
389
|
grpc_scheme = "https" if tls_enabled_for_grpc else "http"
|
|
390
|
+
# Use localhost for display when host is the loopback address to make URLs clickable
|
|
391
|
+
display_host = "localhost" if host in ("0.0.0.0", "::") else host
|
|
390
392
|
root_path = urljoin(f"{http_scheme}://{host}:{port}", host_root_path)
|
|
393
|
+
display_root_path = urljoin(f"{http_scheme}://{display_host}:{port}", host_root_path)
|
|
391
394
|
msg = _WELCOME_MESSAGE.render(
|
|
392
395
|
version=phoenix_version,
|
|
393
|
-
ui_path=
|
|
394
|
-
grpc_path=f"{grpc_scheme}://{
|
|
395
|
-
http_path=urljoin(
|
|
396
|
+
ui_path=display_root_path,
|
|
397
|
+
grpc_path=f"{grpc_scheme}://{display_host}:{get_env_grpc_port()}",
|
|
398
|
+
http_path=urljoin(display_root_path, "v1/traces"),
|
|
396
399
|
storage=get_printable_db_url(db_connection_str),
|
|
397
400
|
schema=get_env_database_schema(),
|
|
398
401
|
auth_enabled=auth_settings.enable_auth,
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_components-
|
|
3
|
-
"file": "assets/components-
|
|
2
|
+
"_components-CUUWyAMo.js": {
|
|
3
|
+
"file": "assets/components-CUUWyAMo.js",
|
|
4
4
|
"name": "components",
|
|
5
5
|
"imports": [
|
|
6
|
-
"_vendor-
|
|
7
|
-
"_pages-
|
|
8
|
-
"_vendor-arizeai-
|
|
9
|
-
"_vendor-codemirror-
|
|
6
|
+
"_vendor-Bfsiga8H.js",
|
|
7
|
+
"_pages-C4V07ozl.js",
|
|
8
|
+
"_vendor-arizeai-CQOWsrzm.js",
|
|
9
|
+
"_vendor-codemirror-CrcGVhB2.js",
|
|
10
10
|
"_vendor-three-C5WAXd5r.js"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
|
-
"_pages-
|
|
14
|
-
"file": "assets/pages-
|
|
13
|
+
"_pages-C4V07ozl.js": {
|
|
14
|
+
"file": "assets/pages-C4V07ozl.js",
|
|
15
15
|
"name": "pages",
|
|
16
16
|
"imports": [
|
|
17
|
-
"_vendor-
|
|
18
|
-
"_vendor-arizeai-
|
|
19
|
-
"_components-
|
|
20
|
-
"_vendor-codemirror-
|
|
21
|
-
"_vendor-recharts-
|
|
17
|
+
"_vendor-Bfsiga8H.js",
|
|
18
|
+
"_vendor-arizeai-CQOWsrzm.js",
|
|
19
|
+
"_components-CUUWyAMo.js",
|
|
20
|
+
"_vendor-codemirror-CrcGVhB2.js",
|
|
21
|
+
"_vendor-recharts-Yyg3G-Rq.js"
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
|
-
"_vendor-
|
|
25
|
-
"file": "assets/vendor-
|
|
24
|
+
"_vendor-Bfsiga8H.js": {
|
|
25
|
+
"file": "assets/vendor-Bfsiga8H.js",
|
|
26
26
|
"name": "vendor",
|
|
27
27
|
"imports": [
|
|
28
28
|
"_vendor-three-C5WAXd5r.js"
|
|
@@ -35,33 +35,33 @@
|
|
|
35
35
|
"file": "assets/vendor-WIZid84E.css",
|
|
36
36
|
"src": "_vendor-WIZid84E.css"
|
|
37
37
|
},
|
|
38
|
-
"_vendor-arizeai-
|
|
39
|
-
"file": "assets/vendor-arizeai-
|
|
38
|
+
"_vendor-arizeai-CQOWsrzm.js": {
|
|
39
|
+
"file": "assets/vendor-arizeai-CQOWsrzm.js",
|
|
40
40
|
"name": "vendor-arizeai",
|
|
41
41
|
"imports": [
|
|
42
|
-
"_vendor-
|
|
42
|
+
"_vendor-Bfsiga8H.js"
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
|
-
"_vendor-codemirror-
|
|
46
|
-
"file": "assets/vendor-codemirror-
|
|
45
|
+
"_vendor-codemirror-CrcGVhB2.js": {
|
|
46
|
+
"file": "assets/vendor-codemirror-CrcGVhB2.js",
|
|
47
47
|
"name": "vendor-codemirror",
|
|
48
48
|
"imports": [
|
|
49
|
-
"_vendor-
|
|
50
|
-
"_vendor-shiki-
|
|
49
|
+
"_vendor-Bfsiga8H.js",
|
|
50
|
+
"_vendor-shiki-OPjag7Hm.js"
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
|
-
"_vendor-recharts-
|
|
54
|
-
"file": "assets/vendor-recharts-
|
|
53
|
+
"_vendor-recharts-Yyg3G-Rq.js": {
|
|
54
|
+
"file": "assets/vendor-recharts-Yyg3G-Rq.js",
|
|
55
55
|
"name": "vendor-recharts",
|
|
56
56
|
"imports": [
|
|
57
|
-
"_vendor-
|
|
57
|
+
"_vendor-Bfsiga8H.js"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"_vendor-shiki-
|
|
61
|
-
"file": "assets/vendor-shiki-
|
|
60
|
+
"_vendor-shiki-OPjag7Hm.js": {
|
|
61
|
+
"file": "assets/vendor-shiki-OPjag7Hm.js",
|
|
62
62
|
"name": "vendor-shiki",
|
|
63
63
|
"imports": [
|
|
64
|
-
"_vendor-
|
|
64
|
+
"_vendor-Bfsiga8H.js"
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
67
|
"_vendor-three-C5WAXd5r.js": {
|
|
@@ -69,19 +69,19 @@
|
|
|
69
69
|
"name": "vendor-three"
|
|
70
70
|
},
|
|
71
71
|
"index.tsx": {
|
|
72
|
-
"file": "assets/index-
|
|
72
|
+
"file": "assets/index-qiubV_74.js",
|
|
73
73
|
"name": "index",
|
|
74
74
|
"src": "index.tsx",
|
|
75
75
|
"isEntry": true,
|
|
76
76
|
"imports": [
|
|
77
|
-
"_vendor-
|
|
78
|
-
"_vendor-arizeai-
|
|
79
|
-
"_pages-
|
|
80
|
-
"_components-
|
|
77
|
+
"_vendor-Bfsiga8H.js",
|
|
78
|
+
"_vendor-arizeai-CQOWsrzm.js",
|
|
79
|
+
"_pages-C4V07ozl.js",
|
|
80
|
+
"_components-CUUWyAMo.js",
|
|
81
81
|
"_vendor-three-C5WAXd5r.js",
|
|
82
|
-
"_vendor-codemirror-
|
|
83
|
-
"_vendor-shiki-
|
|
84
|
-
"_vendor-recharts-
|
|
82
|
+
"_vendor-codemirror-CrcGVhB2.js",
|
|
83
|
+
"_vendor-shiki-OPjag7Hm.js",
|
|
84
|
+
"_vendor-recharts-Yyg3G-Rq.js"
|
|
85
85
|
]
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as p,j as e,u as Ka,a as Ze,e as An,s as ra,b as la,c as ln,d as ka,f as fr,g as Ve,h as br,i as yr,k as wa,l as s,m as nn,p as Nn,n as bn,R as He,o as O,q as Da,t as on,v as Cr,C as zn,w as vr,x as Lr,L as a1,y as t1,z as i1,A as Ae,B as L,D as $n,E as Oa,F as m,G as r1,$ as kr,H as l1,I as Z,J as o1,K as je,M as wr,N as Sr,O as Bn,P as xr,Q,S as Xe,T as P,U as H,V as X,W as s1,X as c1,Y as Ar,Z as d1,_ as Mr,a0 as u1,a1 as Tr,a2 as Ir,a3 as zr,a4 as Fr,a5 as Er,a6 as _r,a7 as Pr,a8 as Vr,a9 as Kr,aa as yn,ab as g1,ac as pe,ad as Dr,ae as Or,af as _e,ag as Sa,ah as xa,ai as Aa,aj as B,ak as an,al as vt,am as Rr,an as Nr,ao as $r,ap as Br,aq as Hr,ar as jr,as as Zr,at as Ur,au as m1,av as Gr,aw as Wr,ax as qr,ay as Qr,az as Xr,aA as Yr,aB as Jr,aC as we,aD as p1,aE as Oe,aF as el,aG as Ra,aH as nl,aI as al,aJ as tl,aK as il,aL as Lt,aM as rl,aN as Na,aO as ll,aP as sn,aQ as ol,aR as $a,aS as sl,aT as cl,aU as dl,aV as Hn,aW as ul,aX as gl,aY as ml,aZ as pl,a_ as hl,a$ as fl,b0 as bl,b1 as yl,b2 as Cl,b3 as vl,b4 as Ll,b5 as kl,b6 as wl,b7 as Sl,b8 as kt,b9 as xl,ba as Al,bb as Ml,bc as oa,bd as Tl,be as Il,bf as zl,bg as Fl,bh as El,bi as _l,bj as Pl,bk as Vl,bl as Kl}from"./vendor-
|
|
1
|
+
import{r as p,j as e,u as Ka,a as Ze,e as An,s as ra,b as la,c as ln,d as ka,f as fr,g as Ve,h as br,i as yr,k as wa,l as s,m as nn,p as Nn,n as bn,R as He,o as O,q as Da,t as on,v as Cr,C as zn,w as vr,x as Lr,L as a1,y as t1,z as i1,A as Ae,B as L,D as $n,E as Oa,F as m,G as r1,$ as kr,H as l1,I as Z,J as o1,K as je,M as wr,N as Sr,O as Bn,P as xr,Q,S as Xe,T as P,U as H,V as X,W as s1,X as c1,Y as Ar,Z as d1,_ as Mr,a0 as u1,a1 as Tr,a2 as Ir,a3 as zr,a4 as Fr,a5 as Er,a6 as _r,a7 as Pr,a8 as Vr,a9 as Kr,aa as yn,ab as g1,ac as pe,ad as Dr,ae as Or,af as _e,ag as Sa,ah as xa,ai as Aa,aj as B,ak as an,al as vt,am as Rr,an as Nr,ao as $r,ap as Br,aq as Hr,ar as jr,as as Zr,at as Ur,au as m1,av as Gr,aw as Wr,ax as qr,ay as Qr,az as Xr,aA as Yr,aB as Jr,aC as we,aD as p1,aE as Oe,aF as el,aG as Ra,aH as nl,aI as al,aJ as tl,aK as il,aL as Lt,aM as rl,aN as Na,aO as ll,aP as sn,aQ as ol,aR as $a,aS as sl,aT as cl,aU as dl,aV as Hn,aW as ul,aX as gl,aY as ml,aZ as pl,a_ as hl,a$ as fl,b0 as bl,b1 as yl,b2 as Cl,b3 as vl,b4 as Ll,b5 as kl,b6 as wl,b7 as Sl,b8 as kt,b9 as xl,ba as Al,bb as Ml,bc as oa,bd as Tl,be as Il,bf as zl,bg as Fl,bh as El,bi as _l,bj as Pl,bk as Vl,bl as Kl}from"./vendor-Bfsiga8H.js";import{a as wt,R as Dl,b as Ol,c as Rl,m as Nl,T as $l,A as Bl,S as Hl,d as jl,e as Zl,f as Ul,u as Gl}from"./pages-C4V07ozl.js";import{u as Wl,_ as h1,a as Le,T as se,E as f1,b as ke,c as b1,d as ql,e as Ql,C as y1,F as C1,I as Xl,f as Yl,g as Jl,h as eo,i as no,j as ao,k as to,P as io,l as ro,m as lo,n as oo,o as so,p as co,q as uo}from"./vendor-arizeai-CQOWsrzm.js";import{L as v1,a as L1,d as un,E as Ba,k as k1,b as w1,l as Ma,h as go,j as mo,c as po,e as ho,f as fo,s as bo,g as Cn,i as vn,R as Ln,p as yo,m as Co}from"./vendor-codemirror-CrcGVhB2.js";import{V as vo}from"./vendor-three-C5WAXd5r.js";const S1=function(){var n={defaultValue:null,kind:"LocalArgument",name:"clusters"},a={defaultValue:null,kind:"LocalArgument",name:"dataQualityMetricColumnName"},t={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}],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:[n,a,t,i,r],kind:"Fragment",metadata:null,name:"pointCloudStore_clusterMetricsQuery",selections:o,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,t,a,i,r],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
|
|
@@ -4506,4 +4506,4 @@ resource: new Resource({
|
|
|
4506
4506
|
__typename
|
|
4507
4507
|
}
|
|
4508
4508
|
}
|
|
4509
|
-
`}}}();hr.hash="c7f4f68f0256356c77264cc16b83e638";function I7(n){const[a,t]=O.useMutation(hr),{projectId:i,isQuiet:r=!1}=n,l=Na(),[o,c]=p.useState(!1),[d,u]=p.useState(!1),g=Ua(),h=F1(),f=n.onExperimentDeleted,b=p.useCallback(k=>{a({variables:{input:{experimentIds:[k]}},onCompleted:()=>{g({title:"Experiment deleted",message:"The experiment has been deleted."})},onError:v=>{const M=yi(v);h({title:"An error occurred",message:`Failed to delete experiment: ${(M==null?void 0:M[0])??v.message}`})}}),f==null||f(),c(!1)},[a,g,h,f]),y=[e(sn,{children:s(S,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(T,{svg:e(G0,{})}),e(C,{children:"View run traces"})]})},"GO_TO_EXPERIMENT_RUN_TRACES"),e(sn,{children:s(S,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(T,{svg:e(st,{})}),e(C,{children:"View metadata"})]})},"VIEW_METADATA"),e(sn,{children:s(S,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(T,{svg:e(oi,{})}),e(C,{children:"Copy experiment ID"})]})},"COPY_EXPERIMENT_ID")];return n.canDeleteExperiment&&y.push(e(sn,{children:s(S,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(T,{svg:e(dt,{})}),e(C,{children:t?"Deleting...":"Delete"})]})},"DELETE_EXPERIMENT")),s(Q,{children:[e("div",{onClick:k=>{k.preventDefault(),k.stopPropagation()},children:e(uo,{buttonSize:"compact",align:"end",isQuiet:r,disabledKeys:i?[]:["GO_TO_EXPERIMENT_RUN_TRACES"],onAction:k=>{switch(k){case"GO_TO_EXPERIMENT_RUN_TRACES":return l(`/projects/${i}`);case"VIEW_METADATA":{u(!0);break}case"COPY_EXPERIMENT_ID":{r1(n.experimentId),g({title:"Copied",message:"The experiment ID has been copied to your clipboard"});break}case"DELETE_EXPERIMENT":{c(!0);break}default:V()}},children:y})}),e(pe,{isOpen:o,onOpenChange:c,children:e(pn,{isDismissable:!0,children:e(mn,{children:e(le,{children:s(Ie,{children:[s(ze,{children:[e(Fe,{children:"Delete Experiment"}),e($e,{children:e(Be,{slot:"close"})})]}),e(w,{padding:"size-200",children:e(C,{color:"danger",children:"Are you sure you want to delete this experiment and its annotations and traces?"})}),e(w,{paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderTopColor:"light",borderTopWidth:"thin",children:s(S,{direction:"row",justifyContent:"end",gap:"size-100",children:[e(I,{size:"S",onPress:()=>c(!1),children:"Cancel"}),e(I,{variant:"danger",size:"S",onPress:()=>b(n.experimentId),children:"Delete Experiment"})]})})]})})})})}),e(pe,{isOpen:d,onOpenChange:u,children:e(pn,{isDismissable:!0,children:e(mn,{children:e(le,{children:s(Ie,{children:[s(ze,{children:[e(Fe,{children:"Metadata"}),e($e,{children:e(Be,{slot:"close"})})]}),e(Ci,{value:JSON.stringify(n.metadata,null,2)})]})})})})})]})}export{eu as $,Fe as A,$e as B,C9 as C,G1 as D,Be as E,w as F,e6 as G,S as H,C as I,I as J,T as K,gu as L,mt as M,$u as N,Nu as O,Ta as P,F1 as Q,Sn as R,Ua as S,Te as T,j as U,Zu as V,Uu as W,di as X,dt as Y,Su as Z,pn as _,Wn as a,Cu as a$,X9 as a0,Uc as a1,t6 as a2,bi as a3,Rn as a4,Re as a5,yi as a6,Y as a7,gt as a8,si as a9,c9 as aA,tt as aB,Li as aC,ve as aD,ju as aE,a6 as aF,Du as aG,nu as aH,Bu as aI,R6 as aJ,V6 as aK,d9 as aL,P6 as aM,D6 as aN,lu as aO,bu as aP,cu as aQ,wu as aR,vu as aS,ru as aT,E6 as aU,Iu as aV,F6 as aW,yu as aX,_6 as aY,ku as aZ,O6 as a_,ki as aa,Do as ab,Xn as ac,c6 as ad,d6 as ae,h6 as af,s6 as ag,ct as ah,r6 as ai,o6 as aj,mc as ak,Bt as al,qu as am,uc as an,Nc as ao,b6 as ap,f6 as aq,I6 as ar,z6 as as,Dt as at,wd as au,kn as av,xi as aw,Sd as ax,Si as ay,wn as az,X1 as b,Oc as b$,K6 as b0,ut as b1,Qu as b2,N6 as b3,l9 as b4,Se as b5,he as b6,ne as b7,de as b8,q as b9,is as bA,R9 as bB,vs as bC,Mu as bD,Xc as bE,Od as bF,jc as bG,st as bH,G0 as bI,j6 as bJ,g0 as bK,N9 as bL,ae as bM,lt as bN,H9 as bO,Hu as bP,Ee as bQ,$c as bR,Kc as bS,Q6 as bT,Hd as bU,Ke as bV,Nd as bW,D0 as bX,oi as bY,Ne as bZ,T3 as b_,r9 as ba,Pu as bb,b9 as bc,_u as bd,Eu as be,Ci as bf,A9 as bg,x9 as bh,Z9 as bi,Fu as bj,P9 as bk,V9 as bl,K9 as bm,B6 as bn,$6 as bo,F9 as bp,qn as bq,Qn as br,Ss as bs,l6 as bt,Jc as bu,Yc as bv,uu as bw,mu as bx,cc as by,Bs as bz,Q1 as c,L9 as c$,y6 as c0,x6 as c1,mi as c2,K2 as c3,J6 as c4,E3 as c5,e7 as c6,n7 as c7,H3 as c8,j3 as c9,U6 as cA,Bd as cB,J9 as cC,Y9 as cD,o7 as cE,As as cF,Z6 as cG,n6 as cH,i6 as cI,hu as cJ,ot as cK,oe as cL,Vs as cM,s7 as cN,j9 as cO,Ku as cP,Vu as cQ,Wu as cR,Gu as cS,y9 as cT,Cs as cU,z9 as cV,I9 as cW,aa as cX,O9 as cY,d7 as cZ,k9 as c_,W9 as ca,_3 as cb,X6 as cc,Ou as cd,u6 as ce,a7 as cf,dd as cg,t7 as ch,su as ci,pu as cj,r7 as ck,l7 as cl,d0 as cm,U9 as cn,Dd as co,te as cp,b0 as cq,Y4 as cr,G6 as cs,q6 as ct,W6 as cu,Zt as cv,fu as cw,d3 as cx,Zs as cy,Y6 as cz,J4 as d,s4 as d$,_s as d0,Yu as d1,Ju as d2,c7 as d3,u7 as d4,H6 as d5,xu as d6,Vn as d7,T6 as d8,rt as d9,Ye as dA,Ru as dB,S7 as dC,v7 as dD,Qa as dE,L7 as dF,w7 as dG,p9 as dH,m9 as dI,h9 as dJ,n9 as dK,b7 as dL,B9 as dM,z1 as dN,C7 as dO,k7 as dP,y7 as dQ,Rc as dR,L6 as dS,A6 as dT,fi as dU,hi as dV,G9 as dW,f9 as dX,Tu as dY,ou as dZ,ge as d_,jn as da,Eo as db,g7 as dc,m7 as dd,p7 as de,f7 as df,h7 as dg,Io as dh,To as di,A as dj,l5 as dk,k6 as dl,w6 as dm,S6 as dn,C6 as dp,v6 as dq,k5 as dr,w5 as ds,du as dt,H1 as du,I5 as dv,dn as dw,De as dx,cr as dy,Ea as dz,M9 as e,ld as e0,T9 as e1,Lu as e2,x7 as e3,A7 as e4,iu as e5,a5 as e6,p6 as e7,g3 as e8,M7 as e9,
|
|
4509
|
+
`}}}();hr.hash="c7f4f68f0256356c77264cc16b83e638";function I7(n){const[a,t]=O.useMutation(hr),{projectId:i,isQuiet:r=!1}=n,l=Na(),[o,c]=p.useState(!1),[d,u]=p.useState(!1),g=Ua(),h=F1(),f=n.onExperimentDeleted,b=p.useCallback(k=>{a({variables:{input:{experimentIds:[k]}},onCompleted:()=>{g({title:"Experiment deleted",message:"The experiment has been deleted."})},onError:v=>{const M=yi(v);h({title:"An error occurred",message:`Failed to delete experiment: ${(M==null?void 0:M[0])??v.message}`})}}),f==null||f(),c(!1)},[a,g,h,f]),y=[e(sn,{children:s(S,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(T,{svg:e(G0,{})}),e(C,{children:"View run traces"})]})},"GO_TO_EXPERIMENT_RUN_TRACES"),e(sn,{children:s(S,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(T,{svg:e(st,{})}),e(C,{children:"View metadata"})]})},"VIEW_METADATA"),e(sn,{children:s(S,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(T,{svg:e(oi,{})}),e(C,{children:"Copy experiment ID"})]})},"COPY_EXPERIMENT_ID")];return n.canDeleteExperiment&&y.push(e(sn,{children:s(S,{direction:"row",gap:"size-75",justifyContent:"start",alignItems:"center",children:[e(T,{svg:e(dt,{})}),e(C,{children:t?"Deleting...":"Delete"})]})},"DELETE_EXPERIMENT")),s(Q,{children:[e("div",{onClick:k=>{k.preventDefault(),k.stopPropagation()},children:e(uo,{buttonSize:"compact",align:"end",isQuiet:r,disabledKeys:i?[]:["GO_TO_EXPERIMENT_RUN_TRACES"],onAction:k=>{switch(k){case"GO_TO_EXPERIMENT_RUN_TRACES":return l(`/projects/${i}`);case"VIEW_METADATA":{u(!0);break}case"COPY_EXPERIMENT_ID":{r1(n.experimentId),g({title:"Copied",message:"The experiment ID has been copied to your clipboard"});break}case"DELETE_EXPERIMENT":{c(!0);break}default:V()}},children:y})}),e(pe,{isOpen:o,onOpenChange:c,children:e(pn,{isDismissable:!0,children:e(mn,{children:e(le,{children:s(Ie,{children:[s(ze,{children:[e(Fe,{children:"Delete Experiment"}),e($e,{children:e(Be,{slot:"close"})})]}),e(w,{padding:"size-200",children:e(C,{color:"danger",children:"Are you sure you want to delete this experiment and its annotations and traces?"})}),e(w,{paddingEnd:"size-200",paddingTop:"size-100",paddingBottom:"size-100",borderTopColor:"light",borderTopWidth:"thin",children:s(S,{direction:"row",justifyContent:"end",gap:"size-100",children:[e(I,{size:"S",onPress:()=>c(!1),children:"Cancel"}),e(I,{variant:"danger",size:"S",onPress:()=>b(n.experimentId),children:"Delete Experiment"})]})})]})})})})}),e(pe,{isOpen:d,onOpenChange:u,children:e(pn,{isDismissable:!0,children:e(mn,{children:e(le,{children:s(Ie,{children:[s(ze,{children:[e(Fe,{children:"Metadata"}),e($e,{children:e(Be,{slot:"close"})})]}),e(Ci,{value:JSON.stringify(n.metadata,null,2)})]})})})})})]})}export{eu as $,Fe as A,$e as B,C9 as C,G1 as D,Be as E,w as F,e6 as G,S as H,C as I,I as J,T as K,gu as L,mt as M,$u as N,Nu as O,Ta as P,F1 as Q,Sn as R,Ua as S,Te as T,j as U,Zu as V,Uu as W,di as X,dt as Y,Su as Z,pn as _,Wn as a,Cu as a$,X9 as a0,Uc as a1,t6 as a2,bi as a3,Rn as a4,Re as a5,yi as a6,Y as a7,gt as a8,si as a9,c9 as aA,tt as aB,Li as aC,ve as aD,ju as aE,a6 as aF,Du as aG,nu as aH,Bu as aI,R6 as aJ,V6 as aK,d9 as aL,P6 as aM,D6 as aN,lu as aO,bu as aP,cu as aQ,wu as aR,vu as aS,ru as aT,E6 as aU,Iu as aV,F6 as aW,yu as aX,_6 as aY,ku as aZ,O6 as a_,ki as aa,Do as ab,Xn as ac,c6 as ad,d6 as ae,h6 as af,s6 as ag,ct as ah,r6 as ai,o6 as aj,mc as ak,Bt as al,qu as am,uc as an,Nc as ao,b6 as ap,f6 as aq,I6 as ar,z6 as as,Dt as at,wd as au,kn as av,xi as aw,Sd as ax,Si as ay,wn as az,X1 as b,Oc as b$,K6 as b0,ut as b1,Qu as b2,N6 as b3,l9 as b4,Se as b5,he as b6,ne as b7,de as b8,q as b9,is as bA,R9 as bB,vs as bC,Mu as bD,Xc as bE,Od as bF,jc as bG,st as bH,G0 as bI,j6 as bJ,g0 as bK,N9 as bL,ae as bM,lt as bN,H9 as bO,Hu as bP,Ee as bQ,$c as bR,Kc as bS,Q6 as bT,Hd as bU,Ke as bV,Nd as bW,D0 as bX,oi as bY,Ne as bZ,T3 as b_,r9 as ba,Pu as bb,b9 as bc,_u as bd,Eu as be,Ci as bf,A9 as bg,x9 as bh,Z9 as bi,Fu as bj,P9 as bk,V9 as bl,K9 as bm,B6 as bn,$6 as bo,F9 as bp,qn as bq,Qn as br,Ss as bs,l6 as bt,Jc as bu,Yc as bv,uu as bw,mu as bx,cc as by,Bs as bz,Q1 as c,L9 as c$,y6 as c0,x6 as c1,mi as c2,K2 as c3,J6 as c4,E3 as c5,e7 as c6,n7 as c7,H3 as c8,j3 as c9,U6 as cA,Bd as cB,J9 as cC,Y9 as cD,o7 as cE,As as cF,Z6 as cG,n6 as cH,i6 as cI,hu as cJ,ot as cK,oe as cL,Vs as cM,s7 as cN,j9 as cO,Ku as cP,Vu as cQ,Wu as cR,Gu as cS,y9 as cT,Cs as cU,z9 as cV,I9 as cW,aa as cX,O9 as cY,d7 as cZ,k9 as c_,W9 as ca,_3 as cb,X6 as cc,Ou as cd,u6 as ce,a7 as cf,dd as cg,t7 as ch,su as ci,pu as cj,r7 as ck,l7 as cl,d0 as cm,U9 as cn,Dd as co,te as cp,b0 as cq,Y4 as cr,G6 as cs,q6 as ct,W6 as cu,Zt as cv,fu as cw,d3 as cx,Zs as cy,Y6 as cz,J4 as d,s4 as d$,_s as d0,Yu as d1,Ju as d2,c7 as d3,u7 as d4,H6 as d5,xu as d6,Vn as d7,T6 as d8,rt as d9,Ye as dA,Ru as dB,S7 as dC,v7 as dD,Qa as dE,L7 as dF,w7 as dG,p9 as dH,m9 as dI,h9 as dJ,n9 as dK,b7 as dL,B9 as dM,z1 as dN,C7 as dO,k7 as dP,y7 as dQ,Rc as dR,L6 as dS,A6 as dT,fi as dU,hi as dV,G9 as dW,f9 as dX,Tu as dY,ou as dZ,ge as d_,jn as da,Eo as db,g7 as dc,m7 as dd,p7 as de,f7 as df,h7 as dg,Io as dh,To as di,A as dj,l5 as dk,k6 as dl,w6 as dm,S6 as dn,C6 as dp,v6 as dq,k5 as dr,w5 as ds,du as dt,H1 as du,I5 as dv,dn as dw,De as dx,cr as dy,Ea as dz,M9 as e,ld as e0,T9 as e1,Lu as e2,x7 as e3,A7 as e4,iu as e5,a5 as e6,p6 as e7,g3 as e8,M7 as e9,fe as eA,kc as eB,_0 as eC,g9 as eD,u9 as eE,q9 as eF,s9 as eG,au as eH,F0 as eI,zu as eJ,i9 as eK,o9 as eL,t9 as eM,a9 as ea,e9 as eb,E0 as ec,V0 as ed,M6 as ee,Fa as ef,Qe as eg,hd as eh,i7 as ei,Xu as ej,v0 as ek,Au as el,g6 as em,Zc as en,x0 as eo,id as ep,Dc as eq,T7 as er,tu as es,Q9 as et,pi as eu,I7 as ev,m6 as ew,Kt as ex,T0 as ey,ri as ez,Hs as f,_n as g,D9 as h,ce as i,En as j,rs as k,xs as l,V as m,v9 as n,Es as o,E9 as p,_9 as q,w9 as r,Fo as s,S9 as t,bs as u,$9 as v,mn as w,le as x,Ie as y,ze as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as e,j as o,cA as f,ew as v,ex as y,ey as h,l as r,bY as x,ez as a,r as z,o as w,eA as P}from"./vendor-
|
|
1
|
+
import{F as e,j as o,cA as f,ew as v,ex as y,ey as h,l as r,bY as x,ez as a,r as z,o as w,eA as P}from"./vendor-Bfsiga8H.js";import{G as k,H as S}from"./vendor-arizeai-CQOWsrzm.js";import{L,g as j,r as C,h as R,i as I,F as E,j as A,P as D,k as T,M as s,l as F,D as G,n as O,E as M,o as N,p as q,q as V,s as _,t,v as W,w as B,x as K,y as $,z as H,B as U,C as Y,G as J,H as Q,I as X,J as Z,K as oo,N as ao,O as lo,Q as ro,U as co,V as d,W as m,X as p,Y as go,Z as eo,_ as bo,$ as no,a0 as io,a1 as so,a2 as to,a3 as mo,a4 as po,a5 as uo,a6 as fo,a7 as vo,a8 as yo,a9 as ho,aa as xo,ab as zo,ac as wo,ad as Po,ae as ko,af as So,ag as Lo,ah as jo,ai as Co,aj as Ro,ak as Io,al as Eo,am as Ao,an as Do,ao as To,ap as Fo,aq as Go,ar as Oo,as as Mo,at as No,au as qo,av as Vo,aw as _o,ax as Wo,ay as Bo}from"./pages-C4V07ozl.js";import{eK as Ko,cp as $o,R as Ho,eL as Uo,eM as Yo}from"./components-CUUWyAMo.js";import"./vendor-three-C5WAXd5r.js";import"./vendor-codemirror-CrcGVhB2.js";import"./vendor-shiki-OPjag7Hm.js";import"./vendor-recharts-Yyg3G-Rq.js";(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const g of c)if(g.type==="childList")for(const n of g.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function u(c){const g={};return c.integrity&&(g.integrity=c.integrity),c.referrerPolicy&&(g.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?g.credentials="include":c.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function i(c){if(c.ep)return;c.ep=!0;const g=u(c);fetch(c.href,g)}})();const Jo=e`
|
|
2
2
|
:root {
|
|
3
3
|
--ac-global-dimension-scale-factor: 1;
|
|
4
4
|
--ac-global-dimension-size-0: 0px;
|
|
@@ -1199,4 +1199,4 @@ import{F as e,j as o,cA as f,ew as v,ex as y,ey as h,l as r,bY as x,ez as a,r as
|
|
|
1199
1199
|
.ac-theme--dark .react-resizable-handle {
|
|
1200
1200
|
filter: invert(1);
|
|
1201
1201
|
}
|
|
1202
|
-
`;function ea(){const{theme:l="dark"}=k();return o(f,{styles:e(Xo,Qo,l==="dark"?Zo:oa,aa(l),
|
|
1202
|
+
`;function ea(){const{theme:l="dark"}=k();return o(f,{styles:e(Xo,Qo,l==="dark"?Zo:oa,aa(l),Jo,la,ra,ca,ga)})}const ba=v(y(r(a,{path:"/",errorElement:o(Vo,{}),children:[o(a,{path:"/v1/*",element:o(x,{to:"/",replace:!0})}),o(a,{path:"/login",element:o(L,{})}),o(a,{path:"/logout",element:o(j,{})}),o(a,{path:"/reset-password",element:o(R,{}),loader:C}),o(a,{path:"/reset-password-with-token",element:o(I,{})}),o(a,{path:"/forgot-password",element:o(E,{})}),o(a,{element:o(qo,{}),loader:A,children:r(a,{element:o(No,{}),children:[o(a,{path:"/profile",handle:{crumb:()=>"profile"},element:o(D,{})}),o(a,{index:!0,loader:T}),r(a,{path:"/model",handle:{crumb:()=>"model"},element:o(N,{}),children:[o(a,{index:!0,element:o(s,{})}),o(a,{element:o(s,{}),children:o(a,{path:"dimensions",children:o(a,{path:":dimensionId",element:o(G,{}),loader:F})})}),o(a,{path:"embeddings",children:o(a,{path:":embeddingDimensionId",element:o(M,{}),loader:O,handle:{crumb:l=>l.embedding.name}})})]}),r(a,{path:"/projects",handle:{crumb:()=>"projects"},element:o(Q,{}),children:[o(a,{index:!0,element:o(q,{})}),r(a,{path:":projectId",loader:V,handle:{crumb:l=>l.project.name},element:o(J,{}),children:[o(a,{index:!0,element:o(_,{})}),r(a,{element:o(Y,{}),children:[o(a,{path:"traces",element:o(W,{}),children:o(a,{path:":traceId",element:o(t,{})})}),o(a,{path:"spans",element:o(B,{}),children:o(a,{path:":traceId",element:o(t,{})})}),o(a,{path:"sessions",element:o(H,{}),children:o(a,{path:":sessionId",element:o($,{}),loader:K})}),o(a,{path:"config",element:o(U,{})})]})]})]}),r(a,{path:"/dashboards",handle:{crumb:()=>"dashboards"},element:o(ro,{}),children:[o(a,{index:!0,element:o(Z,{}),loader:X}),o(a,{path:"projects/:projectId",element:o(ao,{}),loader:oo,handle:{crumb:l=>l.project.name}}),o(a,{path:":dashboardId",handle:{crumb:()=>"dashboard"},element:o(lo,{})})]}),r(a,{path:"/datasets",handle:{crumb:()=>"datasets"},children:[o(a,{index:!0,element:o(co,{})}),r(a,{path:":datasetId",loader:d,handle:{crumb:l=>l.dataset.name},children:[r(a,{element:o(no,{}),loader:d,children:[o(a,{index:!0,element:o(p,{}),loader:m}),o(a,{path:"experiments",element:o(p,{}),loader:m}),o(a,{path:"examples",element:o(bo,{}),loader:go,children:o(a,{path:":exampleId",element:o(eo,{})})})]}),o(a,{path:"compare",handle:{crumb:()=>"compare"},loader:io,element:o(so,{})})]})]}),r(a,{path:"/playground",handle:{crumb:()=>"Playground"},children:[o(a,{index:!0,element:o(to,{})}),o(a,{path:"spans/:spanId",element:o(po,{}),loader:mo,handle:{crumb:l=>l.span.__typename==="Span"?`span ${l.span.spanId}`:"span unknown"}})]}),r(a,{path:"/prompts",handle:{crumb:()=>"prompts"},children:[o(a,{index:!0,element:o(fo,{}),loader:uo}),r(a,{path:":promptId",loader:vo,shouldRevalidate:()=>!0,handle:{crumb:l=>l.prompt.__typename==="Prompt"?l.prompt.name:"unknown"},children:[r(a,{element:o(So,{}),children:[o(a,{index:!0,element:o(yo,{})}),o(a,{path:"versions",loader:ho,element:o(wo,{}),children:o(a,{path:":versionId",loader:xo,element:o(zo,{})})}),o(a,{path:"config",element:o(ko,{}),loader:Po})]}),o(a,{path:"playground",element:o(jo,{}),loader:Lo,handle:{crumb:()=>"playground"}})]})]}),o(a,{path:"/apis",element:o(Co,{}),handle:{crumb:()=>"APIs"}}),o(a,{path:"/support",element:o(Ro,{}),handle:{crumb:()=>"support"}}),r(a,{path:"/settings",element:o(Mo,{}),handle:{crumb:()=>"settings"},children:[o(a,{path:"general",loader:Io,element:o(Eo,{}),handle:{crumb:()=>"general"}}),o(a,{path:"providers",loader:Ao,element:o(Do,{}),handle:{crumb:()=>"providers"}}),o(a,{path:"annotations",loader:To,element:o(Fo,{}),handle:{crumb:()=>"annotations"}}),o(a,{path:"data",element:o(Oo,{}),handle:{crumb:()=>"data retention"},loader:Go})]})]})})]})),{basename:window.Config.basename});function na(){return o(h,{router:ba})}function ia(){return o(_o,{children:o(Ko,{children:o(sa,{})})})}function sa(){const{theme:l}=$o();return o(S,{theme:l,mountGlobalStyles:!1,children:r(w.RelayEnvironmentProvider,{environment:Ho,children:[o(ea,{}),o(Wo,{children:o(Uo,{children:o(Bo,{children:o(z.Suspense,{children:o(Yo,{children:o(na,{})})})})})})]})})}const ta=document.getElementById("root"),da=P.createRoot(ta);da.render(o(ia,{}));
|