返回提示库
内容分类
A classification prompt for consistent labels, confidence notes, and stable taxonomy-based routing.
审校时间: 2026-03-18
Use this when you want the model to assign one or more labels to text using a fixed taxonomy and predictable output rules.
Prompt 模板
Classify the input into the taxonomy below.
Taxonomy:
{taxonomy}
Rules:
- Pick the single best label unless multi-label is explicitly allowed.
- If confidence is low, say so.
- Base the answer only on the text provided.
- Do not add commentary outside the required format.
Output format:
{
"label": "<best_label>",
"confidence": "<high|medium|low>",
"reason": "<one sentence>"
}
Input:
{text}在正式工作流中使用前,请先替换模板变量并补充你的约束条件。
适用场景
- Routing support tickets or feedback
- Classifying articles or user-generated content
- Detecting intent before an automation step
期望输出
- Fixed taxonomy
- Strict JSON output
- Confidence estimate
- Short reasoning sentence
可替换变量
taxonomy
Allowed labels
Example: billing, bug, feature_request, account_access
text
Content to classify
Example: A support request or content excerpt
优化建议
- Provide an explicit label set instead of asking for open-ended categorization.
- Use JSON output if the result feeds a workflow.
- Add examples if two labels are easy to confuse.
示例用法
Classify a message asking for a refund after duplicate billing.
预期效果
The model returns a billing label, a confidence level, and a one-line rationale in JSON.