You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Get clustering prompt with optional task description context.
9
-
9
+
10
10
Args:
11
11
task_description: Optional task description to provide context.
12
-
12
+
13
13
Returns:
14
14
Clustering prompt string with task context if provided.
15
15
"""
16
16
base_prompt="""You are an expert machine learning engineer tasked with summarizing LLM response behaviors. Given a list of properties seen in LLM responses that belong to the same cluster, create a clear description (1-3 sentences) that accurately describes most or all properties in the cluster. This should be a specific behavior of a model response, not a category of behaviors. Think: if a user saw this property, would they be able to understand the model behavior and gain valuable insight about the models specific behavior on a task?
17
17
18
18
To improve readability, provide a 2-5 word summary of the behavior in bold before the description. Format: **[Summary]**: [Description]. If the behavior is abstract or complex, you MUST provide a short, concrete example within the description to ensure it is clearly understood (e.g. "...such as repeating the same search query"). Avoid vague phrases like "fails to adapt" or "inefficiently" without specifying *how*."""
19
-
19
+
20
20
iftask_description:
21
21
context=f"\n\n**Task Context:** The properties in this cluster were extracted from responses to the following task:\n{task_description}\n\nUse this context to ensure your cluster description is relevant and specific to this task."
22
22
returnbase_prompt+context
23
-
23
+
24
24
returnbase_prompt
25
25
26
26
clustering_systems_prompt=f"""You are an expert machine learning engineer tasked with summarizing LLM response behaviors. Given a list of properties seen in LLM responses that belong to the same cluster, create a clear description (1-3 sentences) that accurately describes most or all properties in the cluster. This should be a specific behavior of a model response, not a category of behaviors. Think: if a user saw this property, would they be able to understand the model behavior and gain valuable insight about the models specific behavior on a task?
0 commit comments