arize-phoenix 11.29.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 (29) hide show
  1. {arize_phoenix-11.29.0.dist-info → arize_phoenix-11.31.0.dist-info}/METADATA +17 -17
  2. {arize_phoenix-11.29.0.dist-info → arize_phoenix-11.31.0.dist-info}/RECORD +28 -26
  3. phoenix/db/types/trace_retention.py +1 -1
  4. phoenix/server/api/dataloaders/average_experiment_run_latency.py +1 -4
  5. phoenix/server/api/dataloaders/document_evaluations.py +6 -9
  6. phoenix/server/api/dataloaders/experiment_annotation_summaries.py +1 -1
  7. phoenix/server/api/routers/v1/__init__.py +2 -0
  8. phoenix/server/api/routers/v1/annotations.py +128 -5
  9. phoenix/server/api/routers/v1/documents.py +143 -0
  10. phoenix/server/api/routers/v1/spans.py +7 -51
  11. phoenix/server/api/routers/v1/traces.py +24 -58
  12. phoenix/server/api/types/Dataset.py +8 -66
  13. phoenix/server/api/types/DatasetExperimentAnnotationSummary.py +10 -0
  14. phoenix/server/api/types/DocumentAnnotation.py +92 -0
  15. phoenix/server/api/types/Experiment.py +2 -2
  16. phoenix/server/api/types/Span.py +9 -3
  17. phoenix/server/api/types/TraceAnnotation.py +8 -5
  18. phoenix/server/cost_tracking/model_cost_manifest.json +91 -0
  19. phoenix/server/static/.vite/manifest.json +9 -9
  20. phoenix/server/static/assets/{components-dCdVienD.js → components-BjW5gAwL.js} +1 -1
  21. phoenix/server/static/assets/{index-Bp44T8N2.js → index-3OI8VV_W.js} +1 -1
  22. phoenix/server/static/assets/{pages-CA4bKhm9.js → pages-CQfUODtD.js} +312 -307
  23. phoenix/trace/projects.py +6 -0
  24. phoenix/version.py +1 -1
  25. phoenix/server/api/types/Evaluation.py +0 -39
  26. {arize_phoenix-11.29.0.dist-info → arize_phoenix-11.31.0.dist-info}/WHEEL +0 -0
  27. {arize_phoenix-11.29.0.dist-info → arize_phoenix-11.31.0.dist-info}/entry_points.txt +0 -0
  28. {arize_phoenix-11.29.0.dist-info → arize_phoenix-11.31.0.dist-info}/licenses/IP_NOTICE +0 -0
  29. {arize_phoenix-11.29.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.29.0"
1
+ __version__ = "11.31.0"
@@ -1,39 +0,0 @@
1
- import strawberry
2
-
3
- from phoenix.db.models import DocumentAnnotation, TraceAnnotation
4
-
5
- from .Annotation import Annotation
6
-
7
-
8
- @strawberry.type
9
- class TraceEvaluation(Annotation):
10
- @staticmethod
11
- def from_sql_trace_annotation(annotation: TraceAnnotation) -> "TraceEvaluation":
12
- return TraceEvaluation(
13
- name=annotation.name,
14
- score=annotation.score,
15
- label=annotation.label,
16
- explanation=annotation.explanation,
17
- created_at=annotation.created_at,
18
- updated_at=annotation.updated_at,
19
- )
20
-
21
-
22
- @strawberry.type
23
- class DocumentEvaluation(Annotation):
24
- document_position: int = strawberry.field(
25
- description="The zero-based index among retrieved documents, which "
26
- "is collected as a list (even when ordering is not inherently meaningful)."
27
- )
28
-
29
- @staticmethod
30
- def from_sql_document_annotation(annotation: DocumentAnnotation) -> "DocumentEvaluation":
31
- return DocumentEvaluation(
32
- name=annotation.name,
33
- score=annotation.score,
34
- label=annotation.label,
35
- explanation=annotation.explanation,
36
- document_position=annotation.document_position,
37
- created_at=annotation.created_at,
38
- updated_at=annotation.updated_at,
39
- )