arize-phoenix 3.0.2__py3-none-any.whl → 3.1.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.
- {arize_phoenix-3.0.2.dist-info → arize_phoenix-3.1.0.dist-info}/METADATA +5 -3
- {arize_phoenix-3.0.2.dist-info → arize_phoenix-3.1.0.dist-info}/RECORD +27 -29
- phoenix/core/traces.py +14 -9
- phoenix/experimental/evals/functions/classify.py +5 -1
- phoenix/experimental/evals/models/litellm.py +30 -9
- phoenix/experimental/evals/models/openai.py +36 -16
- phoenix/experimental/evals/models/vertexai.py +49 -7
- phoenix/experimental/evals/utils/__init__.py +1 -1
- phoenix/server/api/input_types/SpanSort.py +4 -4
- phoenix/server/api/types/Span.py +13 -14
- phoenix/session/session.py +4 -1
- phoenix/trace/dsl/filter.py +40 -7
- phoenix/trace/dsl/helpers.py +7 -7
- phoenix/trace/dsl/query.py +3 -1
- phoenix/trace/errors.py +4 -0
- phoenix/trace/fixtures.py +0 -2
- phoenix/trace/llama_index/__init__.py +1 -2
- phoenix/trace/llama_index/callback.py +50 -15
- phoenix/trace/otel.py +52 -14
- phoenix/trace/schemas.py +4 -6
- phoenix/trace/span_json_decoder.py +6 -5
- phoenix/trace/span_json_encoder.py +1 -6
- phoenix/trace/trace_dataset.py +24 -14
- phoenix/version.py +1 -1
- phoenix/trace/llama_index/debug_callback.py +0 -50
- phoenix/trace/semantic_conventions.py +0 -172
- {arize_phoenix-3.0.2.dist-info → arize_phoenix-3.1.0.dist-info}/WHEEL +0 -0
- {arize_phoenix-3.0.2.dist-info → arize_phoenix-3.1.0.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-3.0.2.dist-info → arize_phoenix-3.1.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Semantic conventions for the attributes of a span
|
|
3
|
-
https://github.com/Arize-ai/open-inference-spec/blob/main/trace/spec/semantic_conventions.md
|
|
4
|
-
"""
|
|
5
|
-
|
|
6
|
-
EXCEPTION_TYPE = "exception.type"
|
|
7
|
-
EXCEPTION_MESSAGE = "exception.message"
|
|
8
|
-
EXCEPTION_ESCAPED = "exception.escaped"
|
|
9
|
-
EXCEPTION_STACKTRACE = "exception.stacktrace"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
OUTPUT_VALUE = "output.value"
|
|
13
|
-
OUTPUT_MIME_TYPE = "output.mime_type"
|
|
14
|
-
"""
|
|
15
|
-
The type of output.value. If unspecified, the type is plain text by default.
|
|
16
|
-
If type is JSON, the value is a string representing a JSON object.
|
|
17
|
-
"""
|
|
18
|
-
INPUT_VALUE = "input.value"
|
|
19
|
-
INPUT_MIME_TYPE = "input.mime_type"
|
|
20
|
-
"""
|
|
21
|
-
The type of input.value. If unspecified, the type is plain text by default.
|
|
22
|
-
If type is JSON, the value is a string representing a JSON object.
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
EMBEDDING_EMBEDDINGS = "embedding.embeddings"
|
|
26
|
-
"""
|
|
27
|
-
A list of objects containing embedding data, including the vector and represented piece of text.
|
|
28
|
-
"""
|
|
29
|
-
EMBEDDING_MODEL_NAME = "embedding.model_name"
|
|
30
|
-
"""
|
|
31
|
-
The name of the embedding model.
|
|
32
|
-
"""
|
|
33
|
-
EMBEDDING_TEXT = "embedding.text"
|
|
34
|
-
"""
|
|
35
|
-
The text represented by the embedding.
|
|
36
|
-
"""
|
|
37
|
-
EMBEDDING_VECTOR = "embedding.vector"
|
|
38
|
-
"""
|
|
39
|
-
The embedding vector.
|
|
40
|
-
"""
|
|
41
|
-
|
|
42
|
-
MESSAGE_ROLE = "message.role"
|
|
43
|
-
"""
|
|
44
|
-
The role of the message, such as "user", "agent", "function".
|
|
45
|
-
"""
|
|
46
|
-
MESSAGE_NAME = "message.name"
|
|
47
|
-
"""
|
|
48
|
-
The name of the message, often used to identify the function
|
|
49
|
-
that was used to generate the message.
|
|
50
|
-
"""
|
|
51
|
-
MESSAGE_TOOL_CALLS = "message.tool_calls"
|
|
52
|
-
"""
|
|
53
|
-
The tool calls generated by the model, such as function calls.
|
|
54
|
-
"""
|
|
55
|
-
TOOL_CALL_FUNCTION_NAME = "tool_call.function.name"
|
|
56
|
-
"""
|
|
57
|
-
The name of function that is being called during a tool call.
|
|
58
|
-
"""
|
|
59
|
-
TOOL_CALL_FUNCTION_ARGUMENTS_JSON = "tool_call.function.arguments"
|
|
60
|
-
"""
|
|
61
|
-
The JSON string representing the arguments passed to the function
|
|
62
|
-
during a tool call.
|
|
63
|
-
"""
|
|
64
|
-
MESSAGE_FUNCTION_CALL_NAME = "message.function_call_name"
|
|
65
|
-
"""
|
|
66
|
-
The function name that is a part of the message list.
|
|
67
|
-
This is populated for role 'function' or 'agent' as a mechanism to identify
|
|
68
|
-
the function that was called during the execution of a tool
|
|
69
|
-
"""
|
|
70
|
-
MESSAGE_FUNCTION_CALL_ARGUMENTS_JSON = "message.function_call_arguments_json"
|
|
71
|
-
"""
|
|
72
|
-
The JSON string representing the arguments passed to the function
|
|
73
|
-
during a function call
|
|
74
|
-
"""
|
|
75
|
-
MESSAGE_CONTENT = "message.content"
|
|
76
|
-
"""
|
|
77
|
-
The content of the message to the llm
|
|
78
|
-
"""
|
|
79
|
-
LLM_FUNCTION_CALL = "llm.function_call"
|
|
80
|
-
"""
|
|
81
|
-
For models and APIs that support function calling. Records attributes such as the function name and
|
|
82
|
-
arguments to the called function.
|
|
83
|
-
"""
|
|
84
|
-
LLM_INVOCATION_PARAMETERS = "llm.invocation_parameters"
|
|
85
|
-
"""
|
|
86
|
-
Invocation parameters passed to the LLM or API, such as the model name, temperature, etc.
|
|
87
|
-
"""
|
|
88
|
-
LLM_INPUT_MESSAGES = "llm.input_messages"
|
|
89
|
-
"""
|
|
90
|
-
Messages provided to a chat API.
|
|
91
|
-
"""
|
|
92
|
-
LLM_OUTPUT_MESSAGES = "llm.output_messages"
|
|
93
|
-
"""
|
|
94
|
-
Messages received from a chat API.
|
|
95
|
-
"""
|
|
96
|
-
LLM_MODEL_NAME = "llm.model_name"
|
|
97
|
-
"""
|
|
98
|
-
The name of the model being used.
|
|
99
|
-
"""
|
|
100
|
-
LLM_PROMPTS = "llm.prompts"
|
|
101
|
-
"""
|
|
102
|
-
Prompts provided to a completions API.
|
|
103
|
-
"""
|
|
104
|
-
LLM_PROMPT_TEMPLATE = "llm.prompt_template.template"
|
|
105
|
-
"""
|
|
106
|
-
The prompt template as a Python f-string.
|
|
107
|
-
"""
|
|
108
|
-
LLM_PROMPT_TEMPLATE_VARIABLES = "llm.prompt_template.variables"
|
|
109
|
-
"""
|
|
110
|
-
A list of input variables to the prompt template.
|
|
111
|
-
"""
|
|
112
|
-
LLM_PROMPT_TEMPLATE_VERSION = "llm.prompt_template.version"
|
|
113
|
-
"""
|
|
114
|
-
The version of the prompt template being used.
|
|
115
|
-
"""
|
|
116
|
-
LLM_TOKEN_COUNT_PROMPT = "llm.token_count.prompt"
|
|
117
|
-
"""
|
|
118
|
-
Number of tokens in the prompt.
|
|
119
|
-
"""
|
|
120
|
-
LLM_TOKEN_COUNT_COMPLETION = "llm.token_count.completion"
|
|
121
|
-
"""
|
|
122
|
-
Number of tokens in the completion.
|
|
123
|
-
"""
|
|
124
|
-
LLM_TOKEN_COUNT_TOTAL = "llm.token_count.total"
|
|
125
|
-
"""
|
|
126
|
-
Total number of tokens, including both prompt and completion.
|
|
127
|
-
"""
|
|
128
|
-
|
|
129
|
-
TOOL_NAME = "tool.name"
|
|
130
|
-
"""
|
|
131
|
-
Name of the tool being used.
|
|
132
|
-
"""
|
|
133
|
-
TOOL_DESCRIPTION = "tool.description"
|
|
134
|
-
"""
|
|
135
|
-
Description of the tool's purpose, typically used to select the tool.
|
|
136
|
-
"""
|
|
137
|
-
TOOL_PARAMETERS = "tool.parameters"
|
|
138
|
-
"""
|
|
139
|
-
Parameters of the tool, e.g. see https://platform.openai.com/docs/guides/gpt/function-calling
|
|
140
|
-
"""
|
|
141
|
-
|
|
142
|
-
RETRIEVAL_DOCUMENTS = "retrieval.documents"
|
|
143
|
-
DOCUMENT_ID = "document.id"
|
|
144
|
-
DOCUMENT_SCORE = "document.score"
|
|
145
|
-
DOCUMENT_CONTENT = "document.content"
|
|
146
|
-
DOCUMENT_METADATA = "document.metadata"
|
|
147
|
-
"""
|
|
148
|
-
Document metadata as a string representing a JSON object
|
|
149
|
-
"""
|
|
150
|
-
|
|
151
|
-
RERANKER_INPUT_DOCUMENTS = "reranker.input_documents"
|
|
152
|
-
"""
|
|
153
|
-
List of documents as input to the reranker
|
|
154
|
-
"""
|
|
155
|
-
RERANKER_OUTPUT_DOCUMENTS = "reranker.output_documents"
|
|
156
|
-
"""
|
|
157
|
-
List of documents as output from the reranker
|
|
158
|
-
"""
|
|
159
|
-
RERANKER_QUERY = "reranker.query"
|
|
160
|
-
"""
|
|
161
|
-
Query string for the reranker
|
|
162
|
-
"""
|
|
163
|
-
RERANKER_MODEL_NAME = "reranker.model_name"
|
|
164
|
-
"""
|
|
165
|
-
Model name of the reranker
|
|
166
|
-
"""
|
|
167
|
-
RERANKER_TOP_K = "reranker.top_k"
|
|
168
|
-
"""
|
|
169
|
-
Top K parameter of the reranker
|
|
170
|
-
"""
|
|
171
|
-
|
|
172
|
-
OPENINFERENCE_SPAN_KIND = "openinference.span.kind"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|