Please help me refine this prompt to work with Gemma3 and get me the correct emotion…
- User
Please help me refine this prompt to work with Gemma3 and get me the correct emotion prediction "I am looking to build n application that is capable of deliversing facial expression recognition and predict the emotion of the human based on the facial expression and found that the best way to do this is by extracting the ARKit blendshapes from the images of a dataset and I want you to help me and predict one of the basic emotions (Disgust, Surprise, Neutral, Anger, Afraid, Sad, and Happy) to be the most obvious to understand from the ARkit face blendshapes values that were extracted from the and provided between the square brackets:{str(blendshapes.split(","))}, then please respond by outputing one word only. please do not provide analysis or reason and do not write the input"
Assistant
Of course. Here is a refined prompt that is more direct, structured, and likely to produce the desired single-word output from a large language model like Gemma.Refined Prompt:Analyze the provided ARKit face blendshape values to predict the most prominent human emotion.
Choose one emotion from the following list: Disgust, Surprise, Neutral, Anger, Afraid, Sad, Happy
Respond with a single word only. Do not provide analysis, reasons, or repeat the input.
[Input Blendshape Data Here] Key Improvements ExplainedHere’s a breakdown of why this refined prompt is more effective:🎯 Direct and UnambiguousYour original prompt included a lot of conversational background about building an application. The refined version removes this and gets straight to the point. The model is given a clear task immediately: "Analyze the provided... values to predict the... emotion."🧱 Clear StructureThe new prompt uses clear headings and lists to separate the different parts of the instruction:Core Task: What the model needs to do.Output Options: The specific list of allowed emotions (Disgust, Surprise, etc.). This significantly constrains the model and prevents it from inventing other emotions.Strict Formatting Rules: The constraints ("Respond with a single word only...") are stated plainly.Data Placeholder: A simple [Input Blendshape Data Here] is used. When you implement this, you'll replace this placeholder with the actual numerical data.⚙️ Simplified InputYour original placeholder, {str(blendshapes.split(","))}, is a piece of Python code. While you would execute this before creating the prompt, it's better to simply insert the clean data. The model doesn't need to know how the data was generated. Providing just the numbers (e.g., 0.12, 0.45, 0.0, ...) is cleaner and less likely to confuse the model.By making these changes, you are giving the model a very precise and machine-readable task, which greatly increases the chance of getting the exact, single-word output you need for your application.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.