arize-phoenix 6.1.0__py3-none-any.whl → 6.2.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-6.1.0.dist-info → arize_phoenix-6.2.0.dist-info}/METADATA +6 -5
- {arize_phoenix-6.1.0.dist-info → arize_phoenix-6.2.0.dist-info}/RECORD +24 -23
- phoenix/config.py +4 -1
- phoenix/db/engines.py +1 -1
- phoenix/db/migrate.py +4 -1
- phoenix/metrics/wrappers.py +7 -1
- phoenix/server/api/mutations/chat_mutations.py +5 -0
- phoenix/server/api/subscriptions.py +6 -0
- phoenix/server/api/types/EmbeddingDimension.py +1 -1
- phoenix/server/static/.vite/manifest.json +40 -31
- phoenix/server/static/assets/{components-CdiZ1Osh.js → components-DrwPLMB6.js} +199 -140
- phoenix/server/static/assets/{index-D_sCOjlG.js → index-CTN-OfBU.js} +6 -14
- phoenix/server/static/assets/{pages-FArMEfgg.js → pages-Cmqh2i4E.js} +293 -292
- phoenix/server/static/assets/vendor-Cdrqqth8.js +894 -0
- phoenix/server/static/assets/{vendor-arizeai-BG6iwyLC.js → vendor-arizeai-BSCL03yQ.js} +1 -1
- phoenix/server/static/assets/{vendor-codemirror-BotnVFFX.js → vendor-codemirror-Utqu7Snw.js} +5 -5
- phoenix/server/static/assets/{vendor-recharts-Dy5gEFzQ.js → vendor-recharts-CNNUvc5T.js} +1 -1
- phoenix/server/static/assets/{vendor-Bnv1dNRQ.js → vendor-shiki-B6bHerDK.js} +5 -898
- phoenix/session/client.py +13 -4
- phoenix/version.py +1 -1
- {arize_phoenix-6.1.0.dist-info → arize_phoenix-6.2.0.dist-info}/WHEEL +0 -0
- {arize_phoenix-6.1.0.dist-info → arize_phoenix-6.2.0.dist-info}/entry_points.txt +0 -0
- {arize_phoenix-6.1.0.dist-info → arize_phoenix-6.2.0.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-6.1.0.dist-info → arize_phoenix-6.2.0.dist-info}/licenses/LICENSE +0 -0
phoenix/session/client.py
CHANGED
|
@@ -129,6 +129,7 @@ class Client(TraceDataExtractor):
|
|
|
129
129
|
root_spans_only (bool, optional): If True, only root spans are returned. Default None.
|
|
130
130
|
project_name (str, optional): The project name to query spans for. This can be set
|
|
131
131
|
using environment variables. If not provided, falls back to the default project.
|
|
132
|
+
timeout (int, optional): The number of seconds to wait for the server to respond.
|
|
132
133
|
|
|
133
134
|
Returns:
|
|
134
135
|
Union[pd.DataFrame, list[pd.DataFrame]]:
|
|
@@ -216,6 +217,8 @@ class Client(TraceDataExtractor):
|
|
|
216
217
|
def get_evaluations(
|
|
217
218
|
self,
|
|
218
219
|
project_name: Optional[str] = None,
|
|
220
|
+
*, # Only support kwargs from now on
|
|
221
|
+
timeout: Optional[int] = DEFAULT_TIMEOUT_IN_SECONDS,
|
|
219
222
|
) -> list[Evaluations]:
|
|
220
223
|
"""
|
|
221
224
|
Retrieves evaluations for a given project from the Phoenix server or active session.
|
|
@@ -224,6 +227,7 @@ class Client(TraceDataExtractor):
|
|
|
224
227
|
project_name (str, optional): The name of the project to retrieve evaluations for.
|
|
225
228
|
This can be set using environment variables. If not provided, falls back to the
|
|
226
229
|
default project.
|
|
230
|
+
timeout (int, optional): The number of seconds to wait for the server to respond.
|
|
227
231
|
|
|
228
232
|
Returns:
|
|
229
233
|
list[Evaluations]:
|
|
@@ -237,6 +241,7 @@ class Client(TraceDataExtractor):
|
|
|
237
241
|
"project_name": project_name,
|
|
238
242
|
"project-name": project_name, # for backward-compatibility
|
|
239
243
|
},
|
|
244
|
+
timeout=timeout,
|
|
240
245
|
)
|
|
241
246
|
if response.status_code == 404:
|
|
242
247
|
logger.info("No evaluations found.")
|
|
@@ -263,15 +268,18 @@ class Client(TraceDataExtractor):
|
|
|
263
268
|
f"with `import phoenix as px; px.launch_app()`"
|
|
264
269
|
)
|
|
265
270
|
|
|
266
|
-
def log_evaluations(
|
|
271
|
+
def log_evaluations(
|
|
272
|
+
self,
|
|
273
|
+
*evals: Evaluations,
|
|
274
|
+
timeout: Optional[int] = DEFAULT_TIMEOUT_IN_SECONDS,
|
|
275
|
+
**kwargs: Any,
|
|
276
|
+
) -> None:
|
|
267
277
|
"""
|
|
268
278
|
Logs evaluation data to the Phoenix server.
|
|
269
279
|
|
|
270
280
|
Args:
|
|
271
281
|
evals (Evaluations): One or more Evaluations objects containing the data to log.
|
|
272
|
-
|
|
273
|
-
This can be set using environment variables. If not provided, falls back to the
|
|
274
|
-
default project.
|
|
282
|
+
timeout (int, optional): The number of seconds to wait for the server to respond.
|
|
275
283
|
|
|
276
284
|
Returns:
|
|
277
285
|
None
|
|
@@ -290,6 +298,7 @@ class Client(TraceDataExtractor):
|
|
|
290
298
|
url=urljoin(self._base_url, "v1/evaluations"),
|
|
291
299
|
content=cast(bytes, sink.getvalue().to_pybytes()),
|
|
292
300
|
headers=headers,
|
|
301
|
+
timeout=timeout,
|
|
293
302
|
).raise_for_status()
|
|
294
303
|
|
|
295
304
|
def log_traces(self, trace_dataset: TraceDataset, project_name: Optional[str] = None) -> None:
|
phoenix/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "6.
|
|
1
|
+
__version__ = "6.2.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|