arize-phoenix 2.9.4__py3-none-any.whl → 2.11.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-2.9.4.dist-info → arize_phoenix-2.11.0.dist-info}/METADATA +2 -2
- {arize_phoenix-2.9.4.dist-info → arize_phoenix-2.11.0.dist-info}/RECORD +8 -8
- phoenix/server/static/index.js +434 -434
- phoenix/session/session.py +19 -2
- phoenix/version.py +1 -1
- {arize_phoenix-2.9.4.dist-info → arize_phoenix-2.11.0.dist-info}/WHEEL +0 -0
- {arize_phoenix-2.9.4.dist-info → arize_phoenix-2.11.0.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-2.9.4.dist-info → arize_phoenix-2.11.0.dist-info}/licenses/LICENSE +0 -0
phoenix/session/session.py
CHANGED
|
@@ -21,7 +21,13 @@ from typing import (
|
|
|
21
21
|
|
|
22
22
|
import pandas as pd
|
|
23
23
|
|
|
24
|
-
from phoenix.config import
|
|
24
|
+
from phoenix.config import (
|
|
25
|
+
ENV_NOTEBOOK_ENV,
|
|
26
|
+
ENV_PHOENIX_COLLECTOR_ENDPOINT,
|
|
27
|
+
get_env_host,
|
|
28
|
+
get_env_port,
|
|
29
|
+
get_exported_files,
|
|
30
|
+
)
|
|
25
31
|
from phoenix.core.evals import Evals
|
|
26
32
|
from phoenix.core.model_schema_adapter import create_model_from_datasets
|
|
27
33
|
from phoenix.core.traces import Traces
|
|
@@ -236,8 +242,9 @@ class ProcessSession(Session):
|
|
|
236
242
|
self.trace_dataset.name if self.trace_dataset is not None else None
|
|
237
243
|
),
|
|
238
244
|
)
|
|
245
|
+
host = "127.0.0.1" if self.host == "0.0.0.0" else self.host
|
|
239
246
|
self._client = Client(
|
|
240
|
-
endpoint=self.
|
|
247
|
+
endpoint=f"http://{host}:{self.port}",
|
|
241
248
|
use_active_session_if_available=False,
|
|
242
249
|
)
|
|
243
250
|
|
|
@@ -421,6 +428,16 @@ def launch_app(
|
|
|
421
428
|
)
|
|
422
429
|
_session.end()
|
|
423
430
|
|
|
431
|
+
# Detect mis-configurations and provide warnings
|
|
432
|
+
if (env_collector_endpoint := os.getenv(ENV_PHOENIX_COLLECTOR_ENDPOINT)) is not None:
|
|
433
|
+
logger.warning(
|
|
434
|
+
f"⚠️ {ENV_PHOENIX_COLLECTOR_ENDPOINT} is set to {env_collector_endpoint}.\n"
|
|
435
|
+
"⚠️ This means that traces will be sent to the collector endpoint and not this app.\n"
|
|
436
|
+
"⚠️ If you would like to use this app to view traces, please unset this environment"
|
|
437
|
+
f"variable via e.g. `del os.environ['{ENV_PHOENIX_COLLECTOR_ENDPOINT}']` \n"
|
|
438
|
+
"⚠️ You will need to restart your notebook to apply this change."
|
|
439
|
+
)
|
|
440
|
+
|
|
424
441
|
# Normalize notebook environment
|
|
425
442
|
if isinstance(notebook_environment, str):
|
|
426
443
|
nb_env: Optional[NotebookEnvironment] = NotebookEnvironment(notebook_environment.lower())
|
phoenix/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.
|
|
1
|
+
__version__ = "2.11.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|