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

@@ -22,6 +22,8 @@ IS_ROOT = "parent_id is None"
22
22
  IS_LLM = "span_kind == 'LLM'"
23
23
  IS_RETRIEVER = "span_kind == 'RETRIEVER'"
24
24
 
25
+ DEFAULT_TIMEOUT_IN_SECONDS = 5
26
+
25
27
 
26
28
  class CanQuerySpans(Protocol):
27
29
  # Implemented by phoenix.session.client.Client
@@ -31,6 +33,7 @@ class CanQuerySpans(Protocol):
31
33
  start_time: Optional[datetime] = None,
32
34
  end_time: Optional[datetime] = None,
33
35
  project_name: Optional[str] = None,
36
+ timeout: Optional[int] = DEFAULT_TIMEOUT_IN_SECONDS,
34
37
  ) -> Optional[Union[pd.DataFrame, list[pd.DataFrame]]]: ...
35
38
 
36
39
 
@@ -41,6 +44,7 @@ def get_retrieved_documents(
41
44
  project_name: Optional[str] = None,
42
45
  # Deprecated
43
46
  stop_time: Optional[datetime] = None,
47
+ timeout: Optional[int] = DEFAULT_TIMEOUT_IN_SECONDS,
44
48
  ) -> pd.DataFrame:
45
49
  project_name = project_name or get_env_project_name()
46
50
  if stop_time is not None:
@@ -64,6 +68,7 @@ def get_retrieved_documents(
64
68
  start_time=start_time,
65
69
  end_time=end_time,
66
70
  project_name=project_name,
71
+ timeout=timeout,
67
72
  ),
68
73
  )
69
74
 
@@ -75,6 +80,7 @@ def get_qa_with_reference(
75
80
  project_name: Optional[str] = None,
76
81
  # Deprecated
77
82
  stop_time: Optional[datetime] = None,
83
+ timeout: Optional[int] = DEFAULT_TIMEOUT_IN_SECONDS,
78
84
  ) -> Optional[pd.DataFrame]:
79
85
  project_name = project_name or get_env_project_name()
80
86
  if stop_time:
@@ -101,6 +107,7 @@ def get_qa_with_reference(
101
107
  start_time=start_time,
102
108
  end_time=end_time,
103
109
  project_name=project_name,
110
+ timeout=timeout,
104
111
  ),
105
112
  )
106
113
  if df_qa is None or df_qa.empty:
phoenix/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "8.17.1"
1
+ __version__ = "8.18.0"