arize-phoenix 11.30.0__py3-none-any.whl → 11.31.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.

Files changed (25) hide show
  1. {arize_phoenix-11.30.0.dist-info → arize_phoenix-11.31.0.dist-info}/METADATA +17 -17
  2. {arize_phoenix-11.30.0.dist-info → arize_phoenix-11.31.0.dist-info}/RECORD +24 -23
  3. phoenix/db/types/trace_retention.py +1 -1
  4. phoenix/server/api/dataloaders/document_evaluations.py +6 -9
  5. phoenix/server/api/routers/v1/annotations.py +128 -5
  6. phoenix/server/api/routers/v1/documents.py +47 -79
  7. phoenix/server/api/routers/v1/spans.py +2 -48
  8. phoenix/server/api/routers/v1/traces.py +19 -55
  9. phoenix/server/api/types/Dataset.py +8 -66
  10. phoenix/server/api/types/DatasetExperimentAnnotationSummary.py +10 -0
  11. phoenix/server/api/types/DocumentAnnotation.py +92 -0
  12. phoenix/server/api/types/Span.py +8 -2
  13. phoenix/server/api/types/TraceAnnotation.py +8 -5
  14. phoenix/server/cost_tracking/model_cost_manifest.json +91 -0
  15. phoenix/server/static/.vite/manifest.json +9 -9
  16. phoenix/server/static/assets/{components-BBwXqJXQ.js → components-BjW5gAwL.js} +1 -1
  17. phoenix/server/static/assets/{index-C_gU3x10.js → index-3OI8VV_W.js} +1 -1
  18. phoenix/server/static/assets/{pages-YmQb55Uo.js → pages-CQfUODtD.js} +57 -56
  19. phoenix/trace/projects.py +6 -0
  20. phoenix/version.py +1 -1
  21. phoenix/server/api/types/Evaluation.py +0 -40
  22. {arize_phoenix-11.30.0.dist-info → arize_phoenix-11.31.0.dist-info}/WHEEL +0 -0
  23. {arize_phoenix-11.30.0.dist-info → arize_phoenix-11.31.0.dist-info}/entry_points.txt +0 -0
  24. {arize_phoenix-11.30.0.dist-info → arize_phoenix-11.31.0.dist-info}/licenses/IP_NOTICE +0 -0
  25. {arize_phoenix-11.30.0.dist-info → arize_phoenix-11.31.0.dist-info}/licenses/LICENSE +0 -0
phoenix/trace/projects.py CHANGED
@@ -7,6 +7,8 @@ from opentelemetry.sdk import trace
7
7
  from opentelemetry.sdk.resources import Resource
8
8
  from wrapt import wrap_function_wrapper
9
9
 
10
+ from phoenix.utilities.deprecation import deprecated
11
+
10
12
 
11
13
  def project_override_wrapper(project_name: str) -> Callable[..., None]:
12
14
  def wrapper(
@@ -27,6 +29,10 @@ def project_override_wrapper(project_name: str) -> Callable[..., None]:
27
29
  return wrapper
28
30
 
29
31
 
32
+ @deprecated(
33
+ "This decorator has been moved to openinference-instrumentation via dangerously_using_project"
34
+ " in version 0.1.38 and will be removed in an upcoming major release"
35
+ )
30
36
  class using_project:
31
37
  """
32
38
  A context manager that switches the project for all spans created within the context.
phoenix/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "11.30.0"
1
+ __version__ = "11.31.0"
@@ -1,40 +0,0 @@
1
- import strawberry
2
-
3
- from phoenix.db.models import DocumentAnnotation as DBDocumentAnnotation
4
- from phoenix.db.models import TraceAnnotation
5
-
6
- from .Annotation import Annotation
7
-
8
-
9
- @strawberry.type
10
- class TraceEvaluation(Annotation):
11
- @staticmethod
12
- def from_sql_trace_annotation(annotation: TraceAnnotation) -> "TraceEvaluation":
13
- return TraceEvaluation(
14
- name=annotation.name,
15
- score=annotation.score,
16
- label=annotation.label,
17
- explanation=annotation.explanation,
18
- created_at=annotation.created_at,
19
- updated_at=annotation.updated_at,
20
- )
21
-
22
-
23
- @strawberry.type
24
- class DocumentAnnotation(Annotation):
25
- document_position: int = strawberry.field(
26
- description="The zero-based index among retrieved documents, which "
27
- "is collected as a list (even when ordering is not inherently meaningful)."
28
- )
29
-
30
- @staticmethod
31
- def from_sql_document_annotation(annotation: DBDocumentAnnotation) -> "DocumentAnnotation":
32
- return DocumentAnnotation(
33
- name=annotation.name,
34
- score=annotation.score,
35
- label=annotation.label,
36
- explanation=annotation.explanation,
37
- document_position=annotation.document_position,
38
- created_at=annotation.created_at,
39
- updated_at=annotation.updated_at,
40
- )