Prompt Prompt Engineering Limited info

Pick Which Agent Prompts a Piece of Feedback Should Change

Given an agent trajectory, user feedback and a list of prompt types, asks the model to choose which prompts are worth updating, and allows an empty answer.

  • 🤖 Any chat LLM
  • 🗂️ Prompt Engineering

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

Pick Which Agent Prompts a Piece of Feedback Should Change — prompt preview

The prompt

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

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

Here is the user's feedback:

<feedback>
{feedback}
</feedback>

These are the different types of prompts that you can update in order to change their behavior:

<types_of_prompts>
{types_of_prompts}
</types_of_prompts>

Please choose the types of prompts that are worth updating based on this trajectory + feedback. Only do this if the feedback seems like it has info relevant to the prompt. You will update the prompts themselves in a separate step. You do not have to update any memory types if you don't want to! Just leave it empty.

What it is

Given an agent trajectory, user feedback and a list of prompt types, asks the model to choose which prompts are worth updating, and allows an empty answer. 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 with several prompts
  • Teams adding a feedback loop

بعد مسار وكيل وملاحظات مستخدم وقائمة بأنواع الموجّهات، يطلب من النموذج اختيار الموجّهات التي تستحق التحديث، ويسمح بإجابة فارغة.

Tips

  • Fill {trajectory}, {feedback} and {types_of_prompts} with your own text; the prompt types are one line each.
  • It only chooses; the actual rewriting happens in a separate step (see the update prompt in the same file).
  • The empty-answer option is part of the design: not every piece of feedback should change a prompt.