Here are prompt templates you can use for testing condition classification, such as classifying whether a given statement or piece of text meets a certain condition. These templates are versatile and can be adapted for machine learning model evaluation, prompt engineering for LLMs, or manual testing scenarios.
🔹 General Condition Classification Templates
-
Binary Classification Prompt
Determine whether the following statement meets the condition:
Condition: {insert condition here}
Statement: “{insert statement here}”
Answer with “Yes” or “No” and briefly explain why.
-
Label Assignment Prompt
Classify the following input according to the given condition.
Condition: {condition to test}
Input: “{text or scenario}”
Options: [Meets Condition, Does Not Meet Condition]
-
Confidence-Based Prompt
Does this input satisfy the condition below?
Condition: {condition description}
Text: “{input text}”
Provide a label (Yes/No) and a confidence score (0–100%).
🔹 Domain-Specific Prompt Templates
-
Medical Condition Check
Based on the patient’s symptoms, determine if they meet the diagnostic criteria for {condition}.
Symptoms: {symptoms list}
Criteria: {brief condition criteria}
Does the patient meet the condition? Answer with Yes/No and justify.
-
Legal Clause Compliance
Analyze the statement to see if it complies with the following regulation:
Regulation: {insert regulation clause}
Statement: “{legal or business text}”
Does this comply? Yes/No – provide reasoning.
-
Technical Requirement Evaluation
Check if the following product specification meets the technical requirement.
Requirement: {e.g., “Must support 4K video output”}
Specification: “{e.g., ‘Supports resolution up to 3840×2160 at 60Hz’}”
Does it meet the requirement? Yes or No. Explain your answer.
🔹 Yes/No Classification + Explanation
-
Direct Assessment Prompt
Question: Does the following sentence meet the condition that {describe the condition}?
Sentence: “{insert sentence}”
Response format:
Answer: Yes/No
Explanation: {short reasoning}
🔹 Multi-Class Classification Template
-
Multi-Class Output Prompt
Classify the text into one of the following categories based on the condition:
{List of categories}
Condition: {condition or criteria}
Text: “{sample text}”
Label: {category}
Justify your answer in 1–2 sentences.
🔹 LLM Self-Evaluation Prompt
-
Self-Check Prompt for LLM Testing
Given the following response from an LLM, determine whether it satisfies the prompt requirement.
Original Prompt: {instruction}
Model Output: “{model response}”
Required Condition: {condition or criteria}
Does the output meet the condition? Answer: Yes/No. Provide your reasoning.
🔹 Few-Shot Prompt Template
-
Few-Shot Example Prompt
Classify whether each statement meets the condition:
Condition: {condition here}
Examples:
“The sky is blue.” → Yes
“Grass is sometimes purple.” → No
“Water is wet.” → Yes
Now classify:
“{new statement}” → ?
Let me know the specific use case (e.g., legal compliance, safety conditions, grammar rules) if you want domain-optimized prompt templates.
Leave a Reply