Prompt Prompt Engineering Limited info

Improve an Agent System Prompt From Feedback

Shows the model an agent's current prompt, its trajectory and a user's feedback, then asks for a full updated prompt, or no change if the feedback does not call for one.

  • 🤖 Any chat LLM
  • 🗂️ Prompt Engineering

Prompt by LangChain (langchain-ai/executive-ai-assistant) · Original source (opens in a new tab)

Improve an Agent System Prompt From Feedback — prompt preview

The prompt

prompt
You are helping an AI agent improve. You can do this by changing their system prompt.

These is their current prompt:
<current_prompt>
{current_prompt}
</current_prompt>

Here was the agent's trajectory:
<trajectory>
{trajectory}
</trajectory>

Here is the user's feedback:

<feedback>
{feedback}
</feedback>

Here are instructions for updating the agent's prompt:

<instructions>
{instructions}
</instructions>


Based on this, return an updated prompt

You should return the full prompt, so if there's anything from before that you want to include, make sure to do that. Feel free to override or change anything that seems irrelevant. You do not need to update the prompt - if you don't want to, just return `update_prompt = False` and an empty string for new prompt.

What it is

Shows the model an agent's current prompt, its trajectory and a user's feedback, then asks for a full updated prompt, or no change if the feedback does not call for one. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the Executive AI Assistant repository (MIT licence, Copyright (c) 2024 LangChain). Licence: https://github.com/langchain-ai/executive-ai-assistant/blob/main/LICENSE. Original author: LangChain (langchain-ai/executive-ai-assistant). Changes by FoxaMind: none; the text is copied from the source file.

Who it's for

  • Agent builders
  • Prompt engineers

يعرض على النموذج موجّه الوكيل الحالي ومساره وملاحظات المستخدم، ثم يطلب موجّهًا محدّثًا كاملًا أو عدم التغيير إذا لم تستدعِ الملاحظات ذلك.

Tips

  • Fill {current_prompt}, {trajectory}, {feedback} and {instructions} with your own material.
  • The source asks for a structured result with update_prompt (true or false) and new_prompt; the prompt text alone does not enforce it.
  • It asks for the full prompt back so nothing from the old version is lost by accident.