To improve this prompt effectively, we need to address a few potential ambiguities. The current version relies heavily on the AI "guessing" the context of the feedback.Here is an analysis of why the original prompt might fail, followed by three improved versions depending on your specific goal.What is missing from the original?Input Structure: It describes the scenario narratively rather than clearly separating the Question, the Response, and the Feedback.Definition of "Relevant": Does "relevant" mean the feedback identifies a factual error (which applies to everyone)? Or does it include subjective preferences (e.g., "I hate emojis," which might not apply to the second user)?Reasoning Order: It asks for the answer and then the explanation. LLMs usually perform better if they reason first (Chain of Thought) and answer last.Option 1: The Robust & Definitions-Heavy VersionBest for: When you want to distinguish between factual corrections (relevant to everyone) and personal preferences (maybe irrelevant).You are an AI evaluator. Your task is to analyze user feedback on an AI response to determine if that feedback contains actionable insights that should apply to all future users asking the same question.The Data:User Question: [Insert Question Here]AI Response: [Insert Response Here]User Feedback: [Insert Feedback Here]Definitions:[[relevant]]: The feedback identifies factual errors, logical flaws, safety issues, or missing crucial information. Correcting this would improve the answer for anyone.[[irrelevant]]: The feedback is purely subjective (e.g., "I don't like your tone," "Make it shorter") or specific to that user's unique context, and applying it might hurt the experience for a general user.Instructions:Analyze the feedback in relation to the question and response.Determine if the feedback is objective/universal or subjective/personal.Provide a brief explanation of your reasoning.End with the final tag.Output Format:
Explanation: [Your reasoning]
Final Label: [[tag]]Option 2: The "Chain of Thought" VersionBest for: Complex scenarios where the connection between the feedback and the next user isn't immediately obvious. This forces the model to "think" before answering.A first user asked a question, received an AI response, and provided feedback. A second user is now asking the exact same question.Question: [Insert Question]
Original Response: [Insert Response]
First User's Feedback: [Insert Feedback]Task: Determine if the First User's feedback is useful for generating a better response for the Second User.Step-by-Step Analysis:Identify the core complaint or suggestion in the feedback.Assess if the feedback addresses a fundamental flaw in the response (e.g., hallucination, incorrect math, broken code).Assess if the feedback is highly specific to the first user's personal taste.Based on this analysis, conclude with either [[relevant]] or [[irrelevant]].Option 3: The Developer/API VersionBest for: If you are running this prompt via a script (Python/Node) and need strict placeholders.You are a data classifier.Inputs:
{{QUESTION}}
{{RESPONSE}}
{{FEEDBACK}}
Instruction:
Does the feedback provided in contain valid, objective criticisms that should be used to improve the response for a general audience?If yes, output [[relevant]].
If no (e.g., the feedback is nonsensical, purely subjective, or malicious), output [[irrelevant]].Provide a 1-sentence justification followed by the tag.Key Recommendation: The "Subjectivity" TrapThe biggest risk with your original prompt is that User A might say, "I wanted this in Python, not Java."If User B asks the same question, is that feedback relevant?Technically: No, because User B might want Java.However: Without specific instructions (like in Option 1), the AI might guess "Relevant" because the code was technically "wrong" for User A.Would you like me to run a specific example (a specific question/feedback pair) through these prompts to see how they perform?