arize-phoenix 4.0.0__py3-none-any.whl → 4.0.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.0.0.dist-info → arize_phoenix-4.0.1.dist-info}/METADATA +1 -1
- {arize_phoenix-4.0.0.dist-info → arize_phoenix-4.0.1.dist-info}/RECORD +8 -8
- phoenix/db/insertion/helpers.py +2 -5
- phoenix/trace/otel.py +11 -1
- phoenix/version.py +1 -1
- {arize_phoenix-4.0.0.dist-info → arize_phoenix-4.0.1.dist-info}/WHEEL +0 -0
- {arize_phoenix-4.0.0.dist-info → arize_phoenix-4.0.1.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-4.0.0.dist-info → arize_phoenix-4.0.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -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=haZUWKuxfI5lm0o61HgW_4B6RTBg9CUbXC8y92ZMsw4,5121
|
|
7
7
|
phoenix/settings.py,sha256=cO-qgis_S27nHirTobYI9hHPfZH18R--WMmxNdsVUwc,273
|
|
8
|
-
phoenix/version.py,sha256=
|
|
8
|
+
phoenix/version.py,sha256=v4mcX8QEz7plObRyvTdDblE04TUjya-nJkDSAikxv9Y,22
|
|
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=SBO8BZg_CeQuH5LrSgzlQfqMModzirkQePdhnbLw7dE,4756
|
|
@@ -21,7 +21,7 @@ phoenix/db/migrate.py,sha256=Rd7rnmYLFlSGO3R3rSzXCCvDkYkhxguqDbQNhI6rm5o,2251
|
|
|
21
21
|
phoenix/db/models.py,sha256=Atd61_8I2uiP6tUPW3As4X3UKU2edbS-W4LGGzkJ9KM,12125
|
|
22
22
|
phoenix/db/insertion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
23
|
phoenix/db/insertion/evaluation.py,sha256=nvKXGWv0XD23G3ISw2u9_SqbwtGaB0Vd63wL59nPlCA,7189
|
|
24
|
-
phoenix/db/insertion/helpers.py,sha256
|
|
24
|
+
phoenix/db/insertion/helpers.py,sha256=2oBbzwx_Q0JJ9WlvbGl_a8hWySHyGhzbMNv-SHtcM-4,2022
|
|
25
25
|
phoenix/db/insertion/span.py,sha256=DNBjSrx5g2W5KuTB1dkHwtkb0SFnMIxN1jB-BAdGKFY,5634
|
|
26
26
|
phoenix/db/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
phoenix/db/migrations/env.py,sha256=QbzB5zrRs6XQQmrYeUpuzeilcMlM-MsbaAgHHYcIHTI,3626
|
|
@@ -155,7 +155,7 @@ phoenix/trace/errors.py,sha256=wB1z8qdPckngdfU-TORToekvg3344oNFAA83_hC2yFY,180
|
|
|
155
155
|
phoenix/trace/evaluation_conventions.py,sha256=t8jydM3U0-T5YpiQKRJ3tWdWGlHtzKyttYdw-ddvPOk,1048
|
|
156
156
|
phoenix/trace/exporter.py,sha256=vh2RO1CpP143HxIX94KV0qks8p1x66RE3Tgf8kcBCCg,4519
|
|
157
157
|
phoenix/trace/fixtures.py,sha256=kupizPlPLoQyCxZfrIU7ZC87dYiL8uEhZEmdia__5qQ,9644
|
|
158
|
-
phoenix/trace/otel.py,sha256=
|
|
158
|
+
phoenix/trace/otel.py,sha256=WA720jvRadiZBAKjsYoPyXzypHwbyEK2OZRVUwtbjB8,9976
|
|
159
159
|
phoenix/trace/projects.py,sha256=2BwlNjFE-uwpqYtCu5YyBiYZk9wRPpM13vh3-Cv7GkA,2157
|
|
160
160
|
phoenix/trace/schemas.py,sha256=JiFKhGD2JF6Eai7UOhPF5urcuKGkpMLHc3Vltbe1msk,5967
|
|
161
161
|
phoenix/trace/span_evaluations.py,sha256=7DI1EFfpZoOH8iIUYNzL9P6U9j0Hc2Z3u2SD0h1SF_Q,13101
|
|
@@ -183,8 +183,8 @@ phoenix/utilities/error_handling.py,sha256=7b5rpGFj9EWZ8yrZK1IHvxB89suWk3lggDayU
|
|
|
183
183
|
phoenix/utilities/logging.py,sha256=lDXd6EGaamBNcQxL4vP1au9-i_SXe0OraUDiJOcszSw,222
|
|
184
184
|
phoenix/utilities/project.py,sha256=qWsvKnG1oKhOFUowXf9qiOL2ia7jaFe_ijFFHEt8GJo,431
|
|
185
185
|
phoenix/utilities/span_store.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
186
|
-
arize_phoenix-4.0.
|
|
187
|
-
arize_phoenix-4.0.
|
|
188
|
-
arize_phoenix-4.0.
|
|
189
|
-
arize_phoenix-4.0.
|
|
190
|
-
arize_phoenix-4.0.
|
|
186
|
+
arize_phoenix-4.0.1.dist-info/METADATA,sha256=9zMW_kCjqpQuYBy192t-6OqiE61ZJ3rQ9a0bxwLkwH8,30464
|
|
187
|
+
arize_phoenix-4.0.1.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
|
188
|
+
arize_phoenix-4.0.1.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
|
|
189
|
+
arize_phoenix-4.0.1.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
|
|
190
|
+
arize_phoenix-4.0.1.dist-info/RECORD,,
|
phoenix/db/insertion/helpers.py
CHANGED
|
@@ -30,11 +30,8 @@ def insert_stmt(
|
|
|
30
30
|
raise ValueError(
|
|
31
31
|
"Both `constraint` and `column_names` must be provided or omitted at the same time."
|
|
32
32
|
)
|
|
33
|
-
if (
|
|
34
|
-
dialect is SupportedSQLDialect.
|
|
35
|
-
and constraint is None
|
|
36
|
-
or dialect is SupportedSQLDialect.SQLITE
|
|
37
|
-
and not column_names
|
|
33
|
+
if (dialect is SupportedSQLDialect.POSTGRESQL and constraint is None) or (
|
|
34
|
+
dialect is SupportedSQLDialect.SQLITE and not column_names
|
|
38
35
|
):
|
|
39
36
|
return insert(table).values(values)
|
|
40
37
|
if dialect is SupportedSQLDialect.POSTGRESQL:
|
phoenix/trace/otel.py
CHANGED
|
@@ -17,7 +17,11 @@ from typing import (
|
|
|
17
17
|
|
|
18
18
|
import numpy as np
|
|
19
19
|
import opentelemetry.proto.trace.v1.trace_pb2 as otlp
|
|
20
|
-
from openinference.semconv.trace import
|
|
20
|
+
from openinference.semconv.trace import (
|
|
21
|
+
DocumentAttributes,
|
|
22
|
+
OpenInferenceMimeTypeValues,
|
|
23
|
+
SpanAttributes,
|
|
24
|
+
)
|
|
21
25
|
from opentelemetry.proto.common.v1.common_pb2 import AnyValue, ArrayValue, KeyValue
|
|
22
26
|
from opentelemetry.util.types import Attributes, AttributeValue
|
|
23
27
|
from typing_extensions import TypeAlias, assert_never
|
|
@@ -70,6 +74,12 @@ def decode_otlp_span(otlp_span: otlp.Span) -> Span:
|
|
|
70
74
|
status_code, status_message = _decode_status(otlp_span.status)
|
|
71
75
|
events = [_decode_event(event) for event in otlp_span.events]
|
|
72
76
|
|
|
77
|
+
if (input_value := get_attribute_value(attributes, INPUT_VALUE)) and not isinstance(
|
|
78
|
+
input_value, str
|
|
79
|
+
):
|
|
80
|
+
attributes["input"]["value"] = json.dumps(input_value)
|
|
81
|
+
attributes["input"]["mime_type"] = OpenInferenceMimeTypeValues.JSON.value
|
|
82
|
+
|
|
73
83
|
return Span(
|
|
74
84
|
name=otlp_span.name,
|
|
75
85
|
context=SpanContext(
|
phoenix/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "4.0.
|
|
1
|
+
__version__ = "4.0.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|