From bdb5f2f9fb0a6f455fc1c9727d645b624eb789cd Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Mon, 24 Apr 2023 11:30:06 -0700 Subject: [PATCH] update notebook --- .../autonomous_agents/meta_prompt.ipynb | 45 ++++++++++--------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/docs/use_cases/autonomous_agents/meta_prompt.ipynb b/docs/use_cases/autonomous_agents/meta_prompt.ipynb index 2eeb10c9..42f60d12 100644 --- a/docs/use_cases/autonomous_agents/meta_prompt.ipynb +++ b/docs/use_cases/autonomous_agents/meta_prompt.ipynb @@ -15,28 +15,29 @@ "\n", "Here is a description from the [original blog post](https://noahgoodman.substack.com/p/meta-prompt-a-simple-self-improving):\n", "\n", - "> The agent is a simple loop that starts with no instructions and follows these steps:\n", - ">\n", - "> Engage in conversation with a user, who may provide requests, instructions, or feedback.\n", - ">\n", - "> At the end of the episode, generate self-criticism and a new instruction using the meta-prompt:\n", - "> ```\n", + "\n", + "The agent is a simple loop that starts with no instructions and follows these steps:\n", + "\n", + "Engage in conversation with a user, who may provide requests, instructions, or feedback.\n", + "\n", + "At the end of the episode, generate self-criticism and a new instruction using the meta-prompt\n", + "```\n", "Assistant has just had the below interactions with a User. Assistant followed their \"system: Instructions\" closely. Your job is to critique the Assistant's performance and then revise the Instructions so that Assistant would quickly and correctly respond in the future.\n", - "> \n", - "> ####\n", - "> {hist}\n", - "> ####\n", - "> \n", - "> Please reflect on these interactions.\n", - "> \n", - "> You should first critique Assistant's performance. What could Assistant have done better? What should the Assistant remember about this user? Are there things this user always wants? Indicate this with \"Critique: ...\".\n", - "> \n", - "> You should next revise the Instructions so that Assistant would quickly and correctly respond in the future. Assistant's goal is to satisfy the user in as few interactions as possible. Assistant will only see the new Instructions, not the interaction history, so anything important must be summarized in the Instructions. Don't forget any important details in the current Instructions! Indicate the new Instructions by \"Instructions: ...\".\n", - "> ```\n", - "> \n", - "> Repeat.\n", - "> \n", - "> The only fixed instructions for this system (which I call Meta-prompt) is the meta-prompt that governs revision of the agent’s instructions. The agent has no memory between episodes except for the instruction it modifies for itself each time. Despite its simplicity, this agent can learn over time and self-improve by incorporating useful details into its instructions.\n" + " \n", + "####\n", + "{hist}\n", + "####\n", + " \n", + "Please reflect on these interactions.\n", + "\n", + "You should first critique Assistant's performance. What could Assistant have done better? What should the Assistant remember about this user? Are there things this user always wants? Indicate this with \"Critique: ...\".\n", + "\n", + "You should next revise the Instructions so that Assistant would quickly and correctly respond in the future. Assistant's goal is to satisfy the user in as few interactions as possible. Assistant will only see the new Instructions, not the interaction history, so anything important must be summarized in the Instructions. Don't forget any important details in the current Instructions! Indicate the new Instructions by \"Instructions: ...\".\n", + "```\n", + "\n", + "Repeat.\n", + "\n", + "The only fixed instructions for this system (which I call Meta-prompt) is the meta-prompt that governs revision of the agent’s instructions. The agent has no memory between episodes except for the instruction it modifies for itself each time. Despite its simplicity, this agent can learn over time and self-improve by incorporating useful details into its instructions.\n" ] }, { @@ -414,7 +415,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.16" + "version": "3.9.1" } }, "nbformat": 4,