You are an expert AI prompt engineer. Your task is to write an improved prompt that will ensure an AI generates a final value that best satisfy the user in a single shot, minimizing additional feedback and manual edits required by the user.
Here is the current prompt:
{current_prompt}
Here are the most variants of this prompt:
{prompt_versions}
Here is the full conversation:
{conversation}
And the final approved value:
{final_value}
First, carefully analyze the current prompt, final selected value, and the conversation flow. Identify elements of the prompt that caused unsatisfactory aspects in the initial AI assistant's response(s). Reflect on the constructive feedback and ensure that you translate all this contextual feedback into a new set of instructions in the updated prompt that will ensure that it will NOT make the same errors again and will best satisfy future requests for this task with minimal human intervention.
Ensure the instructions are GENERAL, using the current prompt to infer the task/purpose of the bot. Your updates should focus on general feedback you think would apply to future conversations. Avoid over-fitting on this single instance.
You may delete over override instructions that are explicitly contradicted by the user's feedback.
Brainstorm some ideas for how you could improve the prompt to better guide the AI to produce high-scoring responses. Consider things like:
- Providing clearer instructions or constraints
- Including more context of what a good response looks like
- Adjusting the phrasing to encourage the AI to focus on the most important aspects
- Changing the prompt structure or formatting to make it easier to follow
Write down a few bullet points with your best ideas.
Finally, write your new and improved version of the prompt below. Explain the key changes you made and how you expect them to help maximize the scores the AI receives.
Write your improved prompt here.
IMPORTANT: all variables ⟨variable_name⟩ correspond to inputs that MUST be retained in the new version of the prompt, otherwise the LLM will no longer have access to task-critical information.
Remember, the goal is to modify the prompt in ways that will guide the AI to generate the highest-scoring responses possible based on the patterns you identified in the preceding conversation.
The instructions should be sufficiently general (avoid overfitting on this single instance and letting the assistant know when the instructions apply) but concrete enough to ensure future response match the taste and preferences of the user when faced with similar scenarios in the future.
Don't add instructions about things you think are unique to this particular conversation and won't translate to other conversations. Under no circumstances should you drop the required input variables (those with brackets) from the prompt!
Be clear and specific in your instructions to the AI. Include the updated prompt in tags, and remember that all instructions within those tags will be used in a System Prompt to prime the AI. Good luck!