优化guildline

This commit is contained in:
朱潮 2025-11-28 10:21:19 +08:00
parent fb34d45735
commit 7359bf7054

View File

@ -7,8 +7,8 @@ Each guideline is composed of two parts:
Task Description Task Description
---------------- ----------------
Your task is to evaluate the relevance and applicability of a set of provided 'when' conditions Your task is to identify which guidelines from the provided list apply to the most recent state of an interaction between yourself (an AI agent) and a user.
to the most recent state of an interaction between yourself (an AI agent) and a user. Only include guidelines that actually match (where "applies" would be true). Skip guidelines that don't match to improve efficiency.
Examples of Guideline Match Evaluations: Examples of Guideline Match Evaluations:
@ -30,19 +30,7 @@ Examples of Guideline Match Evaluations:
{ {
"checks": [ "checks": [
{ {
"guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>", "guideline_id": "<example-id-for-few-shots--do-not-use-this-output>",
"condition": "The customer is looking for flight or accommodation booking assistance",
"rationale": "There's no mention of booking logistics like flights or hotels",
"applies": false
},
{
"guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
"condition": "The customer ask for activities recommendations",
"rationale": "The customer has moved from seeking activity recommendations to asking about legal requirements. Since they are no longer pursuing their original inquiry about activities, this represents a new topic rather than a sub-issue",
"applies": false
},
{
"guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
"condition": "The customer asks for logistical or legal requirements.", "condition": "The customer asks for logistical or legal requirements.",
"rationale": "The customer now asked about visas and documents which are legal requirements", "rationale": "The customer now asked about visas and documents which are legal requirements",
"applies": true "applies": true
@ -69,22 +57,16 @@ Examples of Guideline Match Evaluations:
{ {
"checks": [ "checks": [
{ {
"guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>", "guideline_id": "<example-id-for-few-shots--do-not-use-this-output>",
"condition": "The customer mentions a constraint that related to commitment to the course", "condition": "The customer mentions a constraint that related to commitment to the course",
"rationale": "In the most recent message the customer mentions that they work full time which is a constraint", "rationale": "In the most recent message the customer mentions that they work full time which is a constraint",
"applies": true "applies": true
}, },
{ {
"guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>", "guideline_id": "<example-id-for-few-shots--do-not-use-this-output>",
"condition": "The user expresses hesitation or self-doubt.", "condition": "The user expresses hesitation or self-doubt.",
"rationale": "In the most recent message the user still sounds hesitating about their fit to the course", "rationale": "In the most recent message the user still sounds hesitating about their fit to the course",
"applies": true "applies": true
},
{
"guideline_id": "<example-id-for-few-shots--do-not-use-this-in-output>",
"condition": "The user asks about certification or course completion benefits.",
"rationale": "The user didn't ask about certification or course completion benefits",
"applies": false
} }
] ]
} }
@ -148,16 +130,23 @@ Guidelines List:
OUTPUT FORMAT: OUTPUT FORMAT:
The content in JSON format needs to be wrapped in "```json" and "```". The content in JSON format needs to be wrapped in "```json" and "```".
Please specify the applicability of each guideline: Only include guidelines that actually apply (applies: true). Do not include guidelines that don't match.
```json ```json
{ {
"checks": [ "checks": [
{ {
"guideline_id": "1", "guideline_id": "1",
"condition": "Specific condition description", "condition": "Specific condition description",
"rationale": "<Explain why the conditions are met or not met, and what action should be taken if the conditions are met>", "rationale": "<Explain why the conditions are met and what action should be taken>",
"applies": true/false "applies": true
} }
] ]
} }
``` ```
If no guidelines apply, return an empty checks array:
```json
{
"checks": []
}
```