[Optimized] Query Categorization
7.6/10Overall
7.6AI
No user ratings
Optimized from: Query Categorization
Submitted Jul 23AI evaluated Jul 23
Prompt
Analyze the following user query from a terminal and classify it into one of four categories: 1) 'valid_shell' - if it is a valid shell command that can be executed directly; 2) 'shell_help' - if the query can be addressed by running one or more shell commands, but the user is unsure of what to run; 3) 'coding' - if the query pertains to a coding task that requires programming knowledge; or 4) 'other' - if it does not fit into any of the previous categories. If the query can be resolved with a simple shell script or a series of shell commands, classify it as 'shell_help'. Please provide clear reasoning for your classification.
User Query: {{query}}
Return: Enum: []string{"valid_shell", "shell_help", "coding", "other"}
Optimization Improvements
- •Added clear definitions for each category to enhance understanding.
- •Specified the requirement for reasoning to improve the quality of the response.
- •Structured the prompt with numbered categories for better readability.
- •Clarified the condition for 'shell_help' to ensure consistent classification.
- •Included explicit instructions on how to handle ambiguous queries.
The optimization focuses on enhancing clarity, structure, and specificity, which will lead to more accurate and consistent classifications. By providing definitions and requiring reasoning, the prompt encourages more thoughtful responses.
AI Evaluation
How we evaluateClaude 3 Haiku
AI Evaluation
7.8/10
GPT-4 Mini
AI Evaluation
7.3/10
User Rating
No ratings yet. Be the first to rate!
Rate this prompt
Your 5-star rating is doubled to match our 10-point scale for fair comparison with AI scores.