-
Notifications
You must be signed in to change notification settings - Fork 450
Expand file tree
/
Copy path_evals_constant.py
More file actions
78 lines (75 loc) · 2.16 KB
/
_evals_constant.py
File metadata and controls
78 lines (75 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""Constants for evals module."""
SUPPORTED_PREDEFINED_METRICS = frozenset(
{
"general_quality_v1",
"text_quality_v1",
"instruction_following_v1",
"grounding_v1",
"safety_v1",
"multi_turn_general_quality_v1",
"multi_turn_text_quality_v1",
"multi_turn_tool_use_quality_v1",
"multi_turn_trajectory_quality_v1",
"multi_turn_task_success_v1",
"final_response_match_v2",
"final_response_reference_free_v1",
"final_response_quality_v1",
"hallucination_v1",
"tool_use_quality_v1",
"gecko_text2image_v1",
"gecko_text2video_v1",
}
)
SUPPORTED_VERTEX_MAAS_MODEL_PREFIXES = frozenset(
{
"meta/", # Meta/Llama
"deepseek-ai/", # DeepSeek AI
"qwen/", # Qwen
"openai/", # OpenAI (GPT-OSS)
"claude-", # Anthropic (Claude)
"mistral-", # Mistral AI
"jamba-", # AI21 (Jamba)
}
)
INTERMEDIATE_EVENTS = "intermediate_events"
RESPONSE = "response"
PROMPT = "prompt"
REFERENCE = "reference"
SESSION_INPUT = "session_inputs"
CONTEXT = "context"
CONTENT = "content"
PARTS = "parts"
USER_AUTHOR = "user"
AGENT_DATA = "agent_data"
STARTING_PROMPT = "starting_prompt"
CONVERSATION_PLAN = "conversation_plan"
HISTORY = "history"
CONVERSATION_HISTORY = "conversation_history"
COMMON_DATASET_COLUMNS = frozenset(
{
INTERMEDIATE_EVENTS,
PROMPT,
REFERENCE,
SESSION_INPUT,
CONTEXT,
HISTORY,
CONVERSATION_HISTORY,
STARTING_PROMPT,
CONVERSATION_PLAN,
AGENT_DATA,
}
)