Hands-on4
Lesson 4 · Authoring High-Precision Questions
模块Hands-on预计学习12 分钟难度
🎯 What You'll Learn
- Master the schema syntax for Noul, Choice, and Score
- Use a production-ready template to write questions
- Avoid common formulation mistakes
Golden Rules
Keep State concise—include only data relevant to the decision. Write instructions in clear human terms before binding them to types.
Production Schema Template
json
{
"is_urgent": {
"type": "noul",
"instructions": "Does this customer demand immediate same-day resolution?"
},
"department": {
"type": "choice",
"instructions": "Which team should handle this inquiry?",
"criteria": {
"billing": "Payment, double charge, refund, invoice",
"technical": "Outage, connection error, API failure",
"sales": "Pricing plan, custom contract, upgrade"
}
},
"frustration": {
"type": "score",
"instructions": "How frustrated is the customer?",
"criteria": [
"Calm, presenting facts",
"Mildly annoyed but polite",
"Highly agitated with harsh words"
]
}
}📌 Takeaway
Clear human instructions first, correct schema primitives second.
学完后记得保存进度
完成状态只保存在当前浏览器,不会上传你的学习记录。