arize-phoenix 2.4.1rc8__py3-none-any.whl → 2.4.1rc9__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-2.4.1rc8.dist-info → arize_phoenix-2.4.1rc9.dist-info}/METADATA +1 -1
- {arize_phoenix-2.4.1rc8.dist-info → arize_phoenix-2.4.1rc9.dist-info}/RECORD +10 -10
- phoenix/server/app.py +2 -19
- phoenix/server/templates/index.html +4 -6
- phoenix/server/thread_server.py +1 -1
- phoenix/session/session.py +4 -2
- phoenix/version.py +1 -1
- {arize_phoenix-2.4.1rc8.dist-info → arize_phoenix-2.4.1rc9.dist-info}/WHEEL +0 -0
- {arize_phoenix-2.4.1rc8.dist-info → arize_phoenix-2.4.1rc9.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-2.4.1rc8.dist-info → arize_phoenix-2.4.1rc9.dist-info}/licenses/LICENSE +0 -0
|
@@ -4,7 +4,7 @@ phoenix/datetime_utils.py,sha256=D955QLrkgrrSdUM6NyqbCeAu2SMsjhR5rHVQEsVUdng,277
|
|
|
4
4
|
phoenix/exceptions.py,sha256=igIWGAg3m8jm5YwQDeCY1p8ml_60A7zaGVXJ1yZhY9s,44
|
|
5
5
|
phoenix/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
6
6
|
phoenix/services.py,sha256=f6AeyKTuOpy9RCcTCjVH3gx5nYZhbTMFOuv1WSUOB5o,4992
|
|
7
|
-
phoenix/version.py,sha256=
|
|
7
|
+
phoenix/version.py,sha256=cl8HhQP1c4TLftr0CGm7Pdu7eOjzwAfHNDqZJusK81k,25
|
|
8
8
|
phoenix/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
phoenix/core/embedding_dimension.py,sha256=zKGbcvwOXgLf-yrJBpQyKtd-LEOPRKHnUToyAU8Owis,87
|
|
10
10
|
phoenix/core/evals.py,sha256=OrHeYlh804rpcZIXTA6kan2mzSZMfgpphNNQdPMpNoM,7597
|
|
@@ -55,11 +55,11 @@ phoenix/pointcloud/pointcloud.py,sha256=ms-h1FLC0xXb3sk256zpSuZQDE2hdOAJzRNBklP0
|
|
|
55
55
|
phoenix/pointcloud/projectors.py,sha256=zO_RrtDYSv2rqVOfIP2_9Cv11Dc8EmcZR94xhFcBYPU,1057
|
|
56
56
|
phoenix/pointcloud/umap_parameters.py,sha256=lJsEOrbSuSiqI7g4Yt6xj7kgYxEqoep4ZHWLr6VWBqw,1760
|
|
57
57
|
phoenix/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
58
|
-
phoenix/server/app.py,sha256=
|
|
58
|
+
phoenix/server/app.py,sha256=8v1lBRZsLnmAat46xwmFLsxQjo_seObK1myukrnkXyE,6880
|
|
59
59
|
phoenix/server/evaluation_handler.py,sha256=HzaoD8Cv9HbEdd0nYSTZoakKsE8Ic5lVjeuBh0vnhoA,1554
|
|
60
60
|
phoenix/server/main.py,sha256=ZWV_UQOE2c5Gx4x_2UQiZIww3JMRWosza5BbzstTUsg,6814
|
|
61
61
|
phoenix/server/span_handler.py,sha256=reYUDaN5bavSFjEiSfvYyAG_mpJs6S3iB-RNCkZrSUU,1295
|
|
62
|
-
phoenix/server/thread_server.py,sha256=
|
|
62
|
+
phoenix/server/thread_server.py,sha256=dP6cm6Cf08jNhDA1TRlVZpziu1YgtPDmaeIJMm725eI,2154
|
|
63
63
|
phoenix/server/trace_handler.py,sha256=pXanrp9L21Mh7MnyJbj202NJ-Rn4bCjG0oL4DtdKcls,2074
|
|
64
64
|
phoenix/server/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
65
65
|
phoenix/server/api/context.py,sha256=02vRgyLFpDCmh97QwsjWD5cdNZkoCUtDPPs1YItbdbI,583
|
|
@@ -130,10 +130,10 @@ phoenix/server/static/index.js,sha256=dJKCIzqIRBf_IKfXUbnSZnegpgnfMV3wsnFGXWV9Ie
|
|
|
130
130
|
phoenix/server/static/index.js.map,sha256=Pe5FBAB7cKnRik9CrPFsP4AHe3MR3LUI7OShR2pA5ys,15465655
|
|
131
131
|
phoenix/server/static/modernizr.js,sha256=mvK-XtkNqjOral-QvzoqsyOMECXIMu5BQwSVN_wcU9c,2564
|
|
132
132
|
phoenix/server/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
133
|
-
phoenix/server/templates/index.html,sha256=
|
|
133
|
+
phoenix/server/templates/index.html,sha256=DlfcGoq1V5C2QkJWqP1j4Nu6_kPfsOzOrtzYF3ogghE,1900
|
|
134
134
|
phoenix/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
135
135
|
phoenix/session/evaluation.py,sha256=s5OivScAMSj8qfU4IexpmbyKvcGBj_nt-GP_13_o-iY,4843
|
|
136
|
-
phoenix/session/session.py,sha256=
|
|
136
|
+
phoenix/session/session.py,sha256=2em59avmwV3lv37qMcOUg32P85de-vr0Mv8v12iAMM8,20023
|
|
137
137
|
phoenix/trace/__init__.py,sha256=4d_MqzUIFmlY9WWcFeTONJ4xL5mPGoWZaPM2TJ0ZDBQ,266
|
|
138
138
|
phoenix/trace/evaluation_conventions.py,sha256=t8jydM3U0-T5YpiQKRJ3tWdWGlHtzKyttYdw-ddvPOk,1048
|
|
139
139
|
phoenix/trace/exporter.py,sha256=z3xrGJhIRh7XMy4Q1FkR3KmFZym-GX0XxLTZ6eSnN0Q,4347
|
|
@@ -167,8 +167,8 @@ phoenix/trace/v1/evaluation_pb2.pyi,sha256=cCbbx06gwQmaH14s3J1X25TtaARh-k1abbxQd
|
|
|
167
167
|
phoenix/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
168
168
|
phoenix/utilities/error_handling.py,sha256=7b5rpGFj9EWZ8yrZK1IHvxB89suWk3lggDayUQcvZds,1946
|
|
169
169
|
phoenix/utilities/logging.py,sha256=lDXd6EGaamBNcQxL4vP1au9-i_SXe0OraUDiJOcszSw,222
|
|
170
|
-
arize_phoenix-2.4.
|
|
171
|
-
arize_phoenix-2.4.
|
|
172
|
-
arize_phoenix-2.4.
|
|
173
|
-
arize_phoenix-2.4.
|
|
174
|
-
arize_phoenix-2.4.
|
|
170
|
+
arize_phoenix-2.4.1rc9.dist-info/METADATA,sha256=XHhMD329fsB0kidIeZci3KdlhdlZp2ofMqXt5MQU7B8,26482
|
|
171
|
+
arize_phoenix-2.4.1rc9.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
|
|
172
|
+
arize_phoenix-2.4.1rc9.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
|
|
173
|
+
arize_phoenix-2.4.1rc9.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
|
|
174
|
+
arize_phoenix-2.4.1rc9.dist-info/RECORD,,
|
phoenix/server/app.py
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import logging
|
|
2
|
-
import re
|
|
3
2
|
from pathlib import Path
|
|
4
3
|
from typing import Any, NamedTuple, Optional, Union
|
|
5
4
|
|
|
6
5
|
from starlette.applications import Starlette
|
|
7
|
-
from starlette.datastructures import
|
|
6
|
+
from starlette.datastructures import QueryParams
|
|
8
7
|
from starlette.endpoints import HTTPEndpoint
|
|
9
8
|
from starlette.exceptions import HTTPException
|
|
10
9
|
from starlette.middleware import Middleware
|
|
@@ -51,21 +50,6 @@ def _is_databricks(url: str) -> bool:
|
|
|
51
50
|
return "databricks" in url
|
|
52
51
|
|
|
53
52
|
|
|
54
|
-
def _get_basename(request: Request) -> str:
|
|
55
|
-
"""
|
|
56
|
-
Determine the basename for the API and static content.
|
|
57
|
-
If the server is running in a hosted notebook, the base URL
|
|
58
|
-
must be configured to point to the hosted notebook's proxy.
|
|
59
|
-
"""
|
|
60
|
-
# TODO(mikeldking): convert sagemaker to use root_path
|
|
61
|
-
if _is_sagemaker(str(request.url)):
|
|
62
|
-
# Sagemaker sets up a proxy at /proxy/6006
|
|
63
|
-
# NB: this is the only port that is open
|
|
64
|
-
return "/proxy/6006"
|
|
65
|
-
|
|
66
|
-
return request.scope.get("root_path", "")
|
|
67
|
-
|
|
68
|
-
|
|
69
53
|
class Static(StaticFiles):
|
|
70
54
|
"Static file serving with a fallback to index.html"
|
|
71
55
|
|
|
@@ -92,9 +76,8 @@ class Static(StaticFiles):
|
|
|
92
76
|
"min_dist": self._app_config.min_dist,
|
|
93
77
|
"n_neighbors": self._app_config.n_neighbors,
|
|
94
78
|
"n_samples": self._app_config.n_samples,
|
|
95
|
-
"basename":
|
|
79
|
+
"basename": request.scope.get("root_path", ""),
|
|
96
80
|
"request": request,
|
|
97
|
-
"root_path": request.scope.get("root_path", ""),
|
|
98
81
|
},
|
|
99
82
|
)
|
|
100
83
|
except Exception as e:
|
|
@@ -20,13 +20,11 @@
|
|
|
20
20
|
</head>
|
|
21
21
|
<body>
|
|
22
22
|
<div id="root"></div>
|
|
23
|
-
// Request Info:
|
|
24
|
-
// URL: {{request.url}}
|
|
25
|
-
// Base URL: {{request.base_url}}
|
|
26
|
-
// Headers: {{request.headers}}
|
|
27
|
-
// Referer: {{referer}}
|
|
28
|
-
// Root Path: {{root_path}}
|
|
29
23
|
<script>(function() {
|
|
24
|
+
// Request Info:
|
|
25
|
+
// URL: {{request.url}}
|
|
26
|
+
// Base URL: {{request.base_url}}
|
|
27
|
+
// Root Path: {{root_path}}
|
|
30
28
|
Object.defineProperty(window, "Config", {
|
|
31
29
|
// Place any server-side injected config here
|
|
32
30
|
// E.g. default UMAP parameters etc. that needs to be
|
phoenix/server/thread_server.py
CHANGED
phoenix/session/session.py
CHANGED
|
@@ -559,10 +559,12 @@ def _get_sagemaker_notebook_base_url() -> str:
|
|
|
559
559
|
return f"https://{notebook_instance_name}.notebook.{region}.sagemaker.aws"
|
|
560
560
|
|
|
561
561
|
|
|
562
|
-
def _get_root_path(environment:
|
|
562
|
+
def _get_root_path(environment: NotebookEnvironment, port: int) -> str:
|
|
563
563
|
"""
|
|
564
564
|
Returns the base path for the app if the app is running behind a proxy
|
|
565
565
|
"""
|
|
566
|
+
if environment == NotebookEnvironment.SAGEMAKER:
|
|
567
|
+
return f"/proxy/{port}/"
|
|
566
568
|
if environment == NotebookEnvironment.DATABRICKS:
|
|
567
569
|
context = _get_databricks_context()
|
|
568
570
|
return f"/driver-proxy/o/{context.org_id}/{context.cluster_id}/{port}/"
|
|
@@ -599,4 +601,4 @@ def _get_databricks_notebook_base_url(context: DatabricksContext) -> str:
|
|
|
599
601
|
"""
|
|
600
602
|
Returns base url of the databricks notebook by parsing the tags
|
|
601
603
|
"""
|
|
602
|
-
return f"https://{context.host}/driver-proxy/o/{context.org_id}/{context.cluster_id}
|
|
604
|
+
return f"https://{context.host}/driver-proxy/o/{context.org_id}/{context.cluster_id}"
|
phoenix/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.4.
|
|
1
|
+
__version__ = "2.4.1rc9"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|