Prompt Refiner
Improve Your Prompting
Enter your initial prompt in the field below, and the tool will evaluate its quality, provide recommendations, and generate a refined prompt for an LLM.
Why Use This?
This tool is designed to evaluate the quality of an initial prompt based on specific criteria and provide recommendations for improvement. It then generates a refined and optimized prompt for a Large Language Model (LLM) to tackle the given task more effectively.
The tool assesses the initial prompt based on the following criteria:
- Objectivity: It evaluates the use of subjective or biased statements in the prompt.
- Coherence: It examines the logical flow and transitions between steps in the prompt.
- Concision: It evaluates the avoidance of excessive length or repetition in the prompt.
After evaluating the prompt, the tool provides specific recommendations for improvement, such as:
- Identifying key areas for enhancement based on the evaluation scores
- Summarizing the overall performance and quality of the prompt
- Analyzing the decision points or actions that influenced the observed scores
- Presenting the identified decision points or actions in a tabular format
- Providing specific recommendations for an LLM to enhance the prompt's objectivity, coherence, and concision
Finally, the tool generates a refined and optimized prompt for an LLM, following a structured format that includes:
- Role: A thorough description of the LLM's intended role
- Instructions: A list of actions for the LLM to take within its capabilities
- Format: The desired format for the LLM's output, including step-by-step instructions and an example
By refining and optimizing the prompt, the tool aims to improve the LLM's performance and the quality of the generated output, ensuring better task comprehension and more effective problem-solving.
Here's an example of how the tool might work:
Original Prompt: Role: Caption Generator Action: make captivating social media captions
Recommendations:
Overall Performance Summary: The prompt is very succinct, but it lacks specificity and clear instructions, which are necessary for generating high-quality social media captions. This vagueness could result in captions that do not align with the user's needs or the intended context.
Evaluation Scores:
Evaluation Criteria | Scalar Value | Confidence Rating |
Objectivity | 10 | High |
Coherence | 5 | Medium |
Concision | 10 | High |
Key Decision Points/Actions | Evaluation Criteria | Impact |
Broad role definition | Objectivity | High objectivity due to neutral task description |
Insufficient detail | Coherence | Medium coherence due to lack of specific instructions |
Lack of format specification | Concision | High concision by virtue of brevity but at the expense of clarity |
Recommendations for Improvement:
- Define the context in which the captions will be used, including the type of social media platform and the subject matter of the posts.
- Clearly outline the tone and style desired for the captions, such as humorous, inspirational, or promotional.
- Provide examples of captions that align with the desired outcome to guide the LLM in understanding the user's preferences.
- Specify any particular elements that should be included in the captions, like hashtags, emojis, or calls to action.
- Encourage the LLM to consider character limits or other platform-specific constraints when generating captions.
Refined Prompt: Role: You are a social media caption generator designed to create captivating captions for various types of content tailored to specific platforms and audiences.
Instructions:
- Understand the context of the social media post, including the platform it will be posted on and any accompanying images or videos.
- Identify the desired tone and style for the caption, considering the target audience and content type.
- Incorporate relevant hashtags, emojis, and calls to action where appropriate to enhance engagement.
- Craft multiple caption options to provide a range of choices that can be tested for effectiveness.
- Pay attention to platform-specific constraints such as character limits and format requirements.
Format: Role: Social media caption generator. Instructions:
- Review the context of the social media post and any visual elements.
- Determine the tone and style for the caption.
- Include relevant engagement elements like hashtags and emojis.
- Generate multiple caption options.
- Adhere to platform-specific constraints.
Example: [Post Context]: A photograph of a scenic mountain range on Instagram. [Tone/Style]: Inspirational and adventurous. [Engagement Elements]: Include popular travel-related hashtags and an emoji. [Character Limit]: Up to 150 characters.
Suggested Captions:
- "Elevate your perspective d83c\udfd4fe0f #MountainViews #AdventureAwaits"
- "Beyond the peaks lies the adventure of a lifetime! 2728 #ExploreMore #Wanderlust"
- "Scaling new heights and dreaming big. Where will your journey take you? #TravelGoals #NatureLover"