arize-phoenix 3.16.0__py3-none-any.whl → 3.16.2__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-3.16.0.dist-info → arize_phoenix-3.16.2.dist-info}/METADATA +7 -5
- {arize_phoenix-3.16.0.dist-info → arize_phoenix-3.16.2.dist-info}/RECORD +16 -15
- {arize_phoenix-3.16.0.dist-info → arize_phoenix-3.16.2.dist-info}/WHEEL +1 -1
- phoenix/core/project.py +29 -14
- phoenix/core/traces.py +6 -10
- phoenix/server/api/schema.py +7 -13
- phoenix/server/api/types/Span.py +3 -3
- phoenix/server/api/types/node.py +14 -0
- phoenix/server/app.py +8 -0
- phoenix/server/main.py +6 -0
- phoenix/server/prometheus.py +75 -0
- phoenix/server/static/index.js +54 -54
- phoenix/trace/dsl/helpers.py +22 -3
- phoenix/version.py +1 -1
- {arize_phoenix-3.16.0.dist-info → arize_phoenix-3.16.2.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-3.16.0.dist-info → arize_phoenix-3.16.2.dist-info}/licenses/LICENSE +0 -0
phoenix/trace/dsl/helpers.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from datetime import datetime
|
|
1
2
|
from typing import List, Optional, Protocol, Union, cast
|
|
2
3
|
|
|
3
4
|
import pandas as pd
|
|
@@ -24,11 +25,20 @@ IS_RETRIEVER = "span_kind == 'RETRIEVER'"
|
|
|
24
25
|
class CanQuerySpans(Protocol):
|
|
25
26
|
# Implemented by phoenix.session.client.Client
|
|
26
27
|
def query_spans(
|
|
27
|
-
self,
|
|
28
|
+
self,
|
|
29
|
+
*query: SpanQuery,
|
|
30
|
+
start_time: Optional[datetime] = None,
|
|
31
|
+
stop_time: Optional[datetime] = None,
|
|
32
|
+
project_name: Optional[str] = None,
|
|
28
33
|
) -> Optional[Union[pd.DataFrame, List[pd.DataFrame]]]: ...
|
|
29
34
|
|
|
30
35
|
|
|
31
|
-
def get_retrieved_documents(
|
|
36
|
+
def get_retrieved_documents(
|
|
37
|
+
obj: CanQuerySpans,
|
|
38
|
+
start_time: Optional[datetime] = None,
|
|
39
|
+
stop_time: Optional[datetime] = None,
|
|
40
|
+
project_name: Optional[str] = None,
|
|
41
|
+
) -> pd.DataFrame:
|
|
32
42
|
project_name = project_name or get_env_project_name()
|
|
33
43
|
return cast(
|
|
34
44
|
pd.DataFrame,
|
|
@@ -41,12 +51,19 @@ def get_retrieved_documents(obj: CanQuerySpans, project_name: Optional[str] = No
|
|
|
41
51
|
reference=DOCUMENT_CONTENT,
|
|
42
52
|
document_score=DOCUMENT_SCORE,
|
|
43
53
|
),
|
|
54
|
+
start_time=start_time,
|
|
55
|
+
stop_time=stop_time,
|
|
44
56
|
project_name=project_name,
|
|
45
57
|
),
|
|
46
58
|
)
|
|
47
59
|
|
|
48
60
|
|
|
49
|
-
def get_qa_with_reference(
|
|
61
|
+
def get_qa_with_reference(
|
|
62
|
+
obj: CanQuerySpans,
|
|
63
|
+
start_time: Optional[datetime] = None,
|
|
64
|
+
stop_time: Optional[datetime] = None,
|
|
65
|
+
project_name: Optional[str] = None,
|
|
66
|
+
) -> pd.DataFrame:
|
|
50
67
|
project_name = project_name or get_env_project_name()
|
|
51
68
|
return pd.concat(
|
|
52
69
|
cast(
|
|
@@ -60,6 +77,8 @@ def get_qa_with_reference(obj: CanQuerySpans, project_name: Optional[str] = None
|
|
|
60
77
|
RETRIEVAL_DOCUMENTS,
|
|
61
78
|
reference=DOCUMENT_CONTENT,
|
|
62
79
|
),
|
|
80
|
+
start_time=start_time,
|
|
81
|
+
stop_time=stop_time,
|
|
63
82
|
project_name=project_name,
|
|
64
83
|
),
|
|
65
84
|
),
|
phoenix/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "3.16.
|
|
1
|
+
__version__ = "3.16.2"
|
|
File without changes
|
|
File without changes
|