arize-phoenix 4.10.2rc1__py3-none-any.whl → 4.10.2rc2__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.10.2rc1
3
+ Version: 4.10.2rc2
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=Zr3eSPGuwbAWbpKhNj_q-3yeFI5ZZ6HVj7RbDS_7Y14,26
8
+ phoenix/version.py,sha256=rdKVQENaYTJYBNfYWW5zdR_q1VJ3YmtQho0h1LHwdNU,26
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
@@ -141,12 +141,12 @@ phoenix/server/api/routers/utils.py,sha256=M41BoH-fl37izhRuN2aX7lWm7jOC20A_3uClv
141
141
  phoenix/server/api/routers/v1/__init__.py,sha256=nb49zcOdAi3DSGuC9gUubN9Yri-o7-WFdlGak4jGuFw,1462
142
142
  phoenix/server/api/routers/v1/dataset_examples.py,sha256=HSPc4PTnGRqyHSXP7qAZtZ39OG3SVk7btU0HmJyrL14,5595
143
143
  phoenix/server/api/routers/v1/datasets.py,sha256=B2k8IiIkmXEPTdBruGlOUZQmgjj2_G2Bet0_h-X-yZY,32189
144
- phoenix/server/api/routers/v1/evaluations.py,sha256=M1PKCNL_5xB9EXY4EOnrOu9uDoeJan6V1tRkSbRJEgA,9673
144
+ phoenix/server/api/routers/v1/evaluations.py,sha256=xNhS_VOA8S0BIijb1NSAOW677PzLOVl39Fl00g_T7Vo,9553
145
145
  phoenix/server/api/routers/v1/experiment_evaluations.py,sha256=Wk6YnjvA3zSh8N0lRxS8V5uf17tLsNzB12LrNDry1I0,4622
146
146
  phoenix/server/api/routers/v1/experiment_runs.py,sha256=CJtTWSJni0xucDUQ-ouifcAfQFTD2xf-y7B_Xy7S6dA,6007
147
147
  phoenix/server/api/routers/v1/experiments.py,sha256=oEPCoH_OKnIn04iBYYQcyx9N1LXnZGF0BEHwdO7XbOw,9760
148
- phoenix/server/api/routers/v1/spans.py,sha256=ZGZ67Q5pmKTr2cPqc2Lf5fONmbp-Nr_A-pxLswATk_M,8724
149
- phoenix/server/api/routers/v1/traces.py,sha256=Wm6bVm-MpubOxZwLwS9Xsn93RvDlSwlNYSprXnoIVQo,7921
148
+ phoenix/server/api/routers/v1/spans.py,sha256=vf1OwSr1YvpOwSeItzK_qXU57csBgmLBqrZ_E7dezUk,8885
149
+ phoenix/server/api/routers/v1/traces.py,sha256=2NCf9SHnaszR9QRCQbE8_yTK-M2qcLR-RyYh3LYRiBE,7969
150
150
  phoenix/server/api/routers/v1/utils.py,sha256=R2WxEpTyi4Z94K8tyt-a4dMYGh4jP0a_lbJ33FG_dKc,3045
151
151
  phoenix/server/api/types/Annotation.py,sha256=7Ym7iuVcbwHlw2yIRylz4nATAF_Cm-Z17qcjiooj1cc,751
152
152
  phoenix/server/api/types/AnnotatorKind.py,sha256=rPgGdbN1Gvc109sGQ_ZH-gfJbp93V9wlarzTEJNtUwI,236
@@ -258,8 +258,8 @@ phoenix/utilities/logging.py,sha256=lDXd6EGaamBNcQxL4vP1au9-i_SXe0OraUDiJOcszSw,
258
258
  phoenix/utilities/project.py,sha256=qWsvKnG1oKhOFUowXf9qiOL2ia7jaFe_ijFFHEt8GJo,431
259
259
  phoenix/utilities/re.py,sha256=PDve_OLjRTM8yQQJHC8-n3HdIONi7aNils3ZKRZ5uBM,2045
260
260
  phoenix/utilities/span_store.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
261
- arize_phoenix-4.10.2rc1.dist-info/METADATA,sha256=kvMhdHvg67eriHuvnz3zfwCN-P9ISpjC_3LrYshITeY,11486
262
- arize_phoenix-4.10.2rc1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
263
- arize_phoenix-4.10.2rc1.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
264
- arize_phoenix-4.10.2rc1.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
265
- arize_phoenix-4.10.2rc1.dist-info/RECORD,,
261
+ arize_phoenix-4.10.2rc2.dist-info/METADATA,sha256=IXALLIIUBZDKouKcQxC2eTlbI1EsUxHGt91PlAljbBs,11486
262
+ arize_phoenix-4.10.2rc2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
263
+ arize_phoenix-4.10.2rc2.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
264
+ arize_phoenix-4.10.2rc2.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
265
+ arize_phoenix-4.10.2rc2.dist-info/RECORD,,
@@ -18,7 +18,6 @@ from starlette.requests import Request
18
18
  from starlette.responses import Response, StreamingResponse
19
19
  from starlette.status import (
20
20
  HTTP_204_NO_CONTENT,
21
- HTTP_403_FORBIDDEN,
22
21
  HTTP_404_NOT_FOUND,
23
22
  HTTP_415_UNSUPPORTED_MEDIA_TYPE,
24
23
  HTTP_422_UNPROCESSABLE_ENTITY,
@@ -77,8 +76,6 @@ async def post_evaluations(
77
76
  content_type: Optional[str] = Header(default=None),
78
77
  content_encoding: Optional[str] = Header(default=None),
79
78
  ) -> Response:
80
- if request.app.state.read_only:
81
- raise HTTPException(status_code=HTTP_403_FORBIDDEN)
82
79
  if content_type == "application/x-pandas-arrow":
83
80
  return await _process_pyarrow(request)
84
81
  if content_type != "application/x-protobuf":
@@ -26,17 +26,17 @@ router = APIRouter(tags=["traces"], include_in_schema=False)
26
26
 
27
27
 
28
28
  class SpanQuery(BaseModel):
29
- select: Dict[str, Any]
30
- filter: Dict[str, Any]
31
- explode: Dict[str, Any]
32
- concat: Dict[str, Any]
33
- rename: Dict[str, Any]
34
- index: Dict[str, Any]
29
+ select: Optional[Dict[str, Any]] = None
30
+ filter: Optional[Dict[str, Any]] = None
31
+ explode: Optional[Dict[str, Any]] = None
32
+ concat: Optional[Dict[str, Any]] = None
33
+ rename: Optional[Dict[str, Any]] = None
34
+ index: Optional[Dict[str, Any]] = None
35
35
 
36
36
 
37
37
  class QuerySpansRequestBody(BaseModel):
38
38
  queries: List[SpanQuery]
39
- start_time: datetime
39
+ start_time: Optional[datetime] = None
40
40
  end_time: Optional[datetime] = None
41
41
  limit: int = DEFAULT_SPAN_LIMIT
42
42
  root_spans_only: Optional[bool] = None
@@ -133,7 +133,7 @@ async def get_spans_handler(
133
133
  return await query_spans_handler(request, request_body, project_name)
134
134
 
135
135
 
136
- class Result(BaseModel):
136
+ class SpanAnnotationResult(BaseModel):
137
137
  label: Optional[str] = Field(default=None, description="The label assigned by the annotation")
138
138
  score: Optional[float] = Field(default=None, description="The score assigned by the annotation")
139
139
  explanation: Optional[str] = Field(
@@ -147,7 +147,9 @@ class SpanAnnotation(BaseModel):
147
147
  annotator_kind: Literal["LLM", "HUMAN"] = Field(
148
148
  description="The kind of annotator used for the annotation"
149
149
  )
150
- result: Optional[Result] = Field(default=None, description="The result of the annotation")
150
+ result: Optional[SpanAnnotationResult] = Field(
151
+ default=None, description="The result of the annotation"
152
+ )
151
153
  metadata: Optional[Dict[str, Any]] = Field(
152
154
  default=None, description="Metadata for the annotation"
153
155
  )
@@ -59,6 +59,7 @@ router = APIRouter(tags=["traces"], include_in_schema=False)
59
59
  )
60
60
  async def post_traces(
61
61
  request: Request,
62
+ background_tasks: BackgroundTasks,
62
63
  content_type: Optional[str] = Header(default=None),
63
64
  content_encoding: Optional[str] = Header(default=None),
64
65
  ) -> None:
@@ -85,11 +86,11 @@ async def post_traces(
85
86
  detail="Request body is invalid ExportTraceServiceRequest",
86
87
  status_code=HTTP_422_UNPROCESSABLE_ENTITY,
87
88
  )
88
- BackgroundTasks().add_task(_add_spans, req, request.state)
89
+ background_tasks.add_task(_add_spans, req, request.state)
89
90
  return None
90
91
 
91
92
 
92
- class AnnotationResult(BaseModel):
93
+ class TraceAnnotationResult(BaseModel):
93
94
  label: Optional[str] = Field(default=None, description="The label assigned by the annotation")
94
95
  score: Optional[float] = Field(default=None, description="The score assigned by the annotation")
95
96
  explanation: Optional[str] = Field(
@@ -103,7 +104,7 @@ class TraceAnnotation(BaseModel):
103
104
  annotator_kind: Literal["LLM", "HUMAN"] = Field(
104
105
  description="The kind of annotator used for the annotation"
105
106
  )
106
- result: Optional[AnnotationResult] = Field(
107
+ result: Optional[TraceAnnotationResult] = Field(
107
108
  default=None, description="The result of the annotation"
108
109
  )
109
110
  metadata: Optional[Dict[str, Any]] = Field(
phoenix/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "4.10.2rc1"
1
+ __version__ = "4.10.2rc2"