arize-phoenix 4.32.0__py3-none-any.whl → 4.33.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.
- {arize_phoenix-4.32.0.dist-info → arize_phoenix-4.33.1.dist-info}/METADATA +20 -17
- {arize_phoenix-4.32.0.dist-info → arize_phoenix-4.33.1.dist-info}/RECORD +29 -29
- phoenix/config.py +11 -1
- phoenix/db/README.md +28 -2
- phoenix/db/engines.py +13 -1
- phoenix/db/migrate.py +1 -0
- phoenix/db/models.py +3 -2
- phoenix/experiments/functions.py +1 -1
- phoenix/server/api/dataloaders/average_experiment_run_latency.py +1 -1
- phoenix/server/api/dataloaders/dataset_example_spans.py +1 -1
- phoenix/server/api/dataloaders/experiment_annotation_summaries.py +1 -1
- phoenix/server/api/dataloaders/experiment_error_rates.py +1 -1
- phoenix/server/api/dataloaders/experiment_run_annotations.py +2 -2
- phoenix/server/api/dataloaders/experiment_run_counts.py +1 -1
- phoenix/server/api/dataloaders/experiment_sequence_number.py +1 -1
- phoenix/server/api/dataloaders/span_dataset_examples.py +1 -1
- phoenix/server/api/dataloaders/span_projects.py +1 -1
- phoenix/server/api/mutations/api_key_mutations.py +2 -1
- phoenix/server/app.py +18 -19
- phoenix/server/grpc_server.py +2 -2
- phoenix/server/main.py +14 -8
- phoenix/server/static/.vite/manifest.json +9 -9
- phoenix/server/static/assets/{components-Ddr-5VpM.js → components-r5FGhZ3q.js} +86 -87
- phoenix/server/static/assets/{index-BvNNAF8n.js → index-D97e4SiJ.js} +1 -1
- phoenix/server/static/assets/{pages-CU_QMYRP.js → pages-Dtpf5TRQ.js} +220 -196
- phoenix/version.py +1 -1
- {arize_phoenix-4.32.0.dist-info → arize_phoenix-4.33.1.dist-info}/WHEEL +0 -0
- {arize_phoenix-4.32.0.dist-info → arize_phoenix-4.33.1.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-4.32.0.dist-info → arize_phoenix-4.33.1.dist-info}/licenses/LICENSE +0 -0
phoenix/server/main.py
CHANGED
|
@@ -11,6 +11,7 @@ from time import sleep, time
|
|
|
11
11
|
from typing import List, Optional
|
|
12
12
|
from urllib.parse import urljoin
|
|
13
13
|
|
|
14
|
+
from jinja2 import BaseLoader, Environment
|
|
14
15
|
from uvicorn import Config, Server
|
|
15
16
|
|
|
16
17
|
import phoenix.trace.v1 as pb
|
|
@@ -18,6 +19,7 @@ from phoenix.config import (
|
|
|
18
19
|
EXPORT_DIR,
|
|
19
20
|
get_auth_settings,
|
|
20
21
|
get_env_database_connection_str,
|
|
22
|
+
get_env_database_schema,
|
|
21
23
|
get_env_enable_prometheus,
|
|
22
24
|
get_env_grpc_port,
|
|
23
25
|
get_env_host,
|
|
@@ -60,14 +62,14 @@ from phoenix.trace.schemas import Span
|
|
|
60
62
|
logger = logging.getLogger(__name__)
|
|
61
63
|
logger.addHandler(logging.NullHandler())
|
|
62
64
|
|
|
63
|
-
_WELCOME_MESSAGE = """
|
|
65
|
+
_WELCOME_MESSAGE = Environment(loader=BaseLoader()).from_string("""
|
|
64
66
|
|
|
65
67
|
██████╗ ██╗ ██╗ ██████╗ ███████╗███╗ ██╗██╗██╗ ██╗
|
|
66
68
|
██╔══██╗██║ ██║██╔═══██╗██╔════╝████╗ ██║██║╚██╗██╔╝
|
|
67
69
|
██████╔╝███████║██║ ██║█████╗ ██╔██╗ ██║██║ ╚███╔╝
|
|
68
70
|
██╔═══╝ ██╔══██║██║ ██║██╔══╝ ██║╚██╗██║██║ ██╔██╗
|
|
69
71
|
██║ ██║ ██║╚██████╔╝███████╗██║ ╚████║██║██╔╝ ██╗
|
|
70
|
-
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝ v{version}
|
|
72
|
+
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝ v{{ version }}
|
|
71
73
|
|
|
72
74
|
|
|
|
73
75
|
| 🌎 Join our Community 🌎
|
|
@@ -80,12 +82,15 @@ _WELCOME_MESSAGE = """
|
|
|
80
82
|
| https://docs.arize.com/phoenix
|
|
81
83
|
|
|
|
82
84
|
| 🚀 Phoenix Server 🚀
|
|
83
|
-
| Phoenix UI: {ui_path}
|
|
85
|
+
| Phoenix UI: {{ ui_path }}
|
|
84
86
|
| Log traces:
|
|
85
|
-
| - gRPC: {grpc_path}
|
|
86
|
-
| - HTTP: {http_path}
|
|
87
|
-
| Storage: {storage}
|
|
88
|
-
|
|
87
|
+
| - gRPC: {{ grpc_path }}
|
|
88
|
+
| - HTTP: {{ http_path }}
|
|
89
|
+
| Storage: {{ storage }}
|
|
90
|
+
{% if schema -%}
|
|
91
|
+
| - Schema: {{ schema }}
|
|
92
|
+
{% endif -%}
|
|
93
|
+
""")
|
|
89
94
|
|
|
90
95
|
_EXPERIMENTAL_WARNING = """
|
|
91
96
|
🚨 WARNING: Phoenix is running in experimental mode. 🚨
|
|
@@ -346,12 +351,13 @@ if __name__ == "__main__":
|
|
|
346
351
|
)
|
|
347
352
|
# Print information about the server
|
|
348
353
|
root_path = urljoin(f"http://{host}:{port}", host_root_path)
|
|
349
|
-
msg = _WELCOME_MESSAGE.
|
|
354
|
+
msg = _WELCOME_MESSAGE.render(
|
|
350
355
|
version=version("arize-phoenix"),
|
|
351
356
|
ui_path=root_path,
|
|
352
357
|
grpc_path=f"http://{host}:{get_env_grpc_port()}",
|
|
353
358
|
http_path=urljoin(root_path, "v1/traces"),
|
|
354
359
|
storage=get_printable_db_url(db_connection_str),
|
|
360
|
+
schema=get_env_database_schema(),
|
|
355
361
|
)
|
|
356
362
|
if authentication_enabled:
|
|
357
363
|
msg += _EXPERIMENTAL_WARNING.format(auth_enabled=True)
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_components-
|
|
3
|
-
"file": "assets/components-
|
|
2
|
+
"_components-r5FGhZ3q.js": {
|
|
3
|
+
"file": "assets/components-r5FGhZ3q.js",
|
|
4
4
|
"name": "components",
|
|
5
5
|
"imports": [
|
|
6
6
|
"_vendor-Dpio9q2e.js",
|
|
7
7
|
"_vendor-arizeai-DDzwX9A6.js",
|
|
8
|
-
"_pages-
|
|
8
|
+
"_pages-Dtpf5TRQ.js",
|
|
9
9
|
"_vendor-three-DwGkEfCM.js",
|
|
10
10
|
"_vendor-codemirror-xRvQKK1G.js"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
|
-
"_pages-
|
|
14
|
-
"file": "assets/pages-
|
|
13
|
+
"_pages-Dtpf5TRQ.js": {
|
|
14
|
+
"file": "assets/pages-Dtpf5TRQ.js",
|
|
15
15
|
"name": "pages",
|
|
16
16
|
"imports": [
|
|
17
17
|
"_vendor-Dpio9q2e.js",
|
|
18
|
-
"_components-
|
|
18
|
+
"_components-r5FGhZ3q.js",
|
|
19
19
|
"_vendor-arizeai-DDzwX9A6.js",
|
|
20
20
|
"_vendor-recharts-DoxlB_Wo.js",
|
|
21
21
|
"_vendor-codemirror-xRvQKK1G.js"
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"name": "vendor-three"
|
|
62
62
|
},
|
|
63
63
|
"index.tsx": {
|
|
64
|
-
"file": "assets/index-
|
|
64
|
+
"file": "assets/index-D97e4SiJ.js",
|
|
65
65
|
"name": "index",
|
|
66
66
|
"src": "index.tsx",
|
|
67
67
|
"isEntry": true,
|
|
68
68
|
"imports": [
|
|
69
69
|
"_vendor-Dpio9q2e.js",
|
|
70
70
|
"_vendor-arizeai-DDzwX9A6.js",
|
|
71
|
-
"_pages-
|
|
72
|
-
"_components-
|
|
71
|
+
"_pages-Dtpf5TRQ.js",
|
|
72
|
+
"_components-r5FGhZ3q.js",
|
|
73
73
|
"_vendor-three-DwGkEfCM.js",
|
|
74
74
|
"_vendor-recharts-DoxlB_Wo.js",
|
|
75
75
|
"_vendor-codemirror-xRvQKK1G.js"
|