arize-phoenix 4.4.4rc2__py3-none-any.whl → 4.4.4rc3__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: 4.4.4rc2
3
+ Version: 4.4.4rc3
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
@@ -5,7 +5,7 @@ phoenix/exceptions.py,sha256=n2L2KKuecrdflB9MsCdAYCiSEvGJptIsfRkXMoJle7A,169
5
5
  phoenix/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
6
6
  phoenix/services.py,sha256=aTxhcOA1pZHB6U-B3TEcp6fqDF5oT0xCUvEUNMZVTUQ,5175
7
7
  phoenix/settings.py,sha256=cO-qgis_S27nHirTobYI9hHPfZH18R--WMmxNdsVUwc,273
8
- phoenix/version.py,sha256=yLdJDXHBgxUrSS4bl_4swuqhX8Ma0xi2TLMWrJl6pGA,25
8
+ phoenix/version.py,sha256=vkzG2Z0dkYNWJYkiDnpu7yJxir6A-qjTBfFVeklU7TY,25
9
9
  phoenix/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  phoenix/core/embedding_dimension.py,sha256=zKGbcvwOXgLf-yrJBpQyKtd-LEOPRKHnUToyAU8Owis,87
11
11
  phoenix/core/model.py,sha256=km_a--PBHOuA337ClRw9xqhOHhrUT6Rl9pz_zV0JYkQ,4843
@@ -13,7 +13,7 @@ phoenix/core/model_schema.py,sha256=F2dbbVnkDLsPYoyZDv1q03uhvP8LcU1wXp0g-exiWs0,
13
13
  phoenix/core/model_schema_adapter.py,sha256=0Tm_Y_gV-WED8fKBCaFXAEFwE3CTEZS1dowqnTZ7x7g,8426
14
14
  phoenix/datasets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  phoenix/datasets/evaluators.py,sha256=_ezCRB6cyhuJsxsQJRFt2CKg3vqV-KgtBi9NNtkdeJQ,10410
16
- phoenix/datasets/experiments.py,sha256=wLrFNlcAFCtKkwKi-H9Wz_vMgsE33clMED5Ya88-_P0,18850
16
+ phoenix/datasets/experiments.py,sha256=D1gmdCbOC7tkjrFjyC_WPNFyY41YrqKESsPE0CebTtc,19223
17
17
  phoenix/datasets/tracing.py,sha256=Ieb2Uo-9qHpmv65uf1VsFSsWo5Yxj6VHwGS6dxu9NHQ,2248
18
18
  phoenix/datasets/types.py,sha256=w0KoSP7AdlcFlV3I6qVtvKOOWoK0yiY6_s4CvH0flcs,5753
19
19
  phoenix/db/README.md,sha256=IvKaZyf9ECbGBYYePaRhBveKZwDbxAc-c7BMxJYZh6Q,595
@@ -119,7 +119,7 @@ phoenix/server/api/mutations/export_events_mutations.py,sha256=t_wYBxaqvBJYRoHsl
119
119
  phoenix/server/api/mutations/project_mutations.py,sha256=6A7BS3651iaeAwUszKXQB3NK4QJY_tGpALBMNw1bqp8,2021
120
120
  phoenix/server/api/openapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
121
121
  phoenix/server/api/openapi/main.py,sha256=WY0pj3B7siQyyYqKyhqnzWC7P8MtEtiukOBUjGwLXfw,153
122
- phoenix/server/api/openapi/schema.py,sha256=thr6P76oB3Ur3hOJ3A8_4jR6hpxuiEWOfPxfFmB4igc,450
122
+ phoenix/server/api/openapi/schema.py,sha256=uuSYe1Ecu72aXRgTNjyMu-9ZPE13DAHJPKtedS-MsSs,451
123
123
  phoenix/server/api/routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
124
124
  phoenix/server/api/routers/utils.py,sha256=M41BoH-fl37izhRuN2aX7lWm7jOC20A_3uClv9TVUUY,583
125
125
  phoenix/server/api/routers/v1/__init__.py,sha256=B5eSaylPI7MoYia1-VgKrU8rDi-69r_hRwPU5yMLUTE,2808
@@ -239,8 +239,8 @@ phoenix/utilities/logging.py,sha256=lDXd6EGaamBNcQxL4vP1au9-i_SXe0OraUDiJOcszSw,
239
239
  phoenix/utilities/project.py,sha256=qWsvKnG1oKhOFUowXf9qiOL2ia7jaFe_ijFFHEt8GJo,431
240
240
  phoenix/utilities/re.py,sha256=PDve_OLjRTM8yQQJHC8-n3HdIONi7aNils3ZKRZ5uBM,2045
241
241
  phoenix/utilities/span_store.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
242
- arize_phoenix-4.4.4rc2.dist-info/METADATA,sha256=unOKrmvS0Ubsl1-hii-abidOLhHJmb9zZwGhJ9cuibY,11012
243
- arize_phoenix-4.4.4rc2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
244
- arize_phoenix-4.4.4rc2.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
245
- arize_phoenix-4.4.4rc2.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
246
- arize_phoenix-4.4.4rc2.dist-info/RECORD,,
242
+ arize_phoenix-4.4.4rc3.dist-info/METADATA,sha256=VuX8kXsqxcbsdYmi9-jCDMHgMJ182JMbDYCY-3N74jU,11012
243
+ arize_phoenix-4.4.4rc3.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
244
+ arize_phoenix-4.4.4rc3.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
245
+ arize_phoenix-4.4.4rc3.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
246
+ arize_phoenix-4.4.4rc3.dist-info/RECORD,,
@@ -61,6 +61,7 @@ from phoenix.datasets.types import (
61
61
  from phoenix.evals.executors import get_executor_on_sync_context
62
62
  from phoenix.evals.models.rate_limiters import RateLimiter
63
63
  from phoenix.evals.utils import get_tqdm_progress_bar_formatter
64
+ from phoenix.session.session import active_session
64
65
  from phoenix.trace.attributes import flatten
65
66
  from phoenix.utilities.json import jsonify
66
67
 
@@ -78,12 +79,23 @@ def _get_base_url() -> str:
78
79
  return base_url if base_url.endswith("/") else base_url + "/"
79
80
 
80
81
 
82
+ def _get_web_base_url() -> str:
83
+ """Return the web UI base URL.
84
+
85
+ Returns:
86
+ str: the web UI base URL
87
+ """
88
+ if session := active_session():
89
+ return session.url
90
+ return _get_base_url()
91
+
92
+
81
93
  def _get_experiment_url(*, dataset_id: str, experiment_id: str) -> str:
82
- return f"{_get_base_url()}datasets/{dataset_id}/compare?experimentId={experiment_id}"
94
+ return f"{_get_web_base_url()}datasets/{dataset_id}/compare?experimentId={experiment_id}"
83
95
 
84
96
 
85
97
  def _get_dataset_experiments_url(*, dataset_id: str) -> str:
86
- return f"{_get_base_url()}datasets/{dataset_id}/experiments"
98
+ return f"{_get_web_base_url()}datasets/{dataset_id}/experiments"
87
99
 
88
100
 
89
101
  def _phoenix_client() -> httpx.Client:
@@ -134,7 +146,9 @@ def run_experiment(
134
146
 
135
147
  dataset_experiments_url = _get_dataset_experiments_url(dataset_id=dataset.id)
136
148
  experiment_compare_url = _get_experiment_url(dataset_id=dataset.id, experiment_id=experiment_id)
137
- print(f"🧪 Experiment started: {experiment_compare_url}")
149
+ print("🧪 Experiment started.")
150
+ print(f"📺 View dataset experiments: {dataset_experiments_url}")
151
+ print(f"🔗 View this experiment: {experiment_compare_url}")
138
152
 
139
153
  errors: Tuple[Optional[Type[BaseException]], ...]
140
154
  if not hasattr(rate_limit_errors, "__iter__"):
@@ -278,7 +292,8 @@ def run_experiment(
278
292
  project_name=project_name,
279
293
  )
280
294
 
281
- print(f"✅ Task runs completed. View all experiments: {dataset_experiments_url}")
295
+ print("✅ Task runs completed.")
296
+ print("🧠 Evaluation started.")
282
297
 
283
298
  if evaluators is not None:
284
299
  _evaluate_experiment(experiment, evaluators, dataset.examples, client)
@@ -1,8 +1,9 @@
1
1
  from typing import Any
2
2
 
3
- from phoenix.server.api.routers.v1 import V1_ROUTES
4
3
  from starlette.schemas import SchemaGenerator
5
4
 
5
+ from phoenix.server.api.routers.v1 import V1_ROUTES
6
+
6
7
  OPENAPI_SCHEMA_GENERATOR = SchemaGenerator(
7
8
  {"openapi": "3.0.0", "info": {"title": "Arize-Phoenix API", "version": "1.0"}}
8
9
  )
phoenix/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "4.4.4rc2"
1
+ __version__ = "4.4.4rc3"