Skip to content

Commit

Permalink
Update prompting-command-r.mdx
Browse files Browse the repository at this point in the history
Signed-off-by: maximevoisincohere <[email protected]>
  • Loading branch information
maximevoisincohere authored Aug 26, 2024
1 parent 9bbce5a commit a799661
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,15 @@ This iterative process continues for as many steps as the model deems necessary.
**Here is the template for Step i of the agent:**


> <b>multistep_tooluse_step_2_prompt_template =</b>
> <b>"""<span class="dark-blue-text">\<BOS_TOKEN></span><span class="brown-text">\<|START_OF_TURN_TOKEN|></span><span class="dark-orange-text">\<|SYSTEM_TOKEN|></span><span class="red-text"># Safety Preamble</span></b>
> <b><span class="red-text">\{SAFETY_PREAMBLE}</span><br /><br /><span class="dark-green-text"># System Preamble</span></b>
> <b><span class="green-text">## Basic Rules</span></b>
> <b><span class="green-text">\{BASIC_RULES}</span><br /><br /><span class="dark-purple-text"># User Preamble</span></b>
> <b><span class="purple-text">## Task and Context</span></b>
> <b><span class="purple-text">\{TASK_CONTEXT}</span><br /><br /><span class="dark-sangria-text">## Style Guide</span></b>
> <b><span class="dark-sangria-text">\{STYLE_GUIDE}</span><br /><br /><span class="magenta-text">## Available Tools</span></b>
> <b><span class="magenta-text">\{TOOLS}</span><span class="brown-text"><|END_OF_TURN_TOKEN|></span><span class="orange-text">{CHAT_HISTORY}</span><span class="brown-text"><|START_OF_TURN_TOKEN|></span><span class="dark-orange-text"><|SYSTEM_TOKEN|></span><span class="dark-pink-text">{INSTRUCTIONS_FOR_MULTI_STEP_TOOL_USE}</span><span class="brown-text"><|END_OF_TURN_TOKEN|></span><span class="brown-text"><|START_OF_TURN_TOKEN|></span><span class="dark-orange-text"><|CHATBOT_TOKEN|></span><span class="dark-red-text">{PLAN_AND_SUGGESTED_TOOL_CALLS_FOR_STEP_1}</span><span class="brown-text"><|END_OF_TURN_TOKEN|></span><span class="brown-text"><|START_OF_TURN_TOKEN|></span><span class="dark-orange-text"><|SYSTEM_TOKEN|></span><span class="dark-red-text">{TOOL_RESULTS_FROM_STEP_1}</span><span class="brown-text"><|END_OF_TURN_TOKEN|></span><span class="brown-text"><|START_OF_TURN_TOKEN|></span><span class="dark-orange-text"><|CHATBOT_TOKEN|></span><span class="dark-red-text">{PLAN_AND_SUGGESTED_TOOL_CALLS_FOR_STEP_2}</span><span class="brown-text"><|END_OF_TURN_TOKEN|></span><span class="brown-text"><|START_OF_TURN_TOKEN|></span><span class="dark-orange-text"><|SYSTEM_TOKEN|></span><span class="dark-red-text">{TOOL_RESULTS_FROM_STEP_2}</span><span class="brown-text"><|END_OF_TURN_TOKEN|></span><span class="brown-text"><|START_OF_TURN_TOKEN|></span><span class="dark-orange-text"><|CHATBOT_TOKEN|></span><span class="dark-red-text">{PLAN_AND_SUGGESTED_TOOL_CALLS_FOR_STEP_3}</span><span class="brown-text"><|END_OF_TURN_TOKEN|></span><span class="brown-text"><|START_OF_TURN_TOKEN|></span><span class="dark-orange-text"><|SYSTEM_TOKEN|></span><span class="dark-red-text">{TOOL_RESULTS_FROM_STEP_3}</span><span class="brown-text"><|END_OF_TURN_TOKEN|></span>...etc...<span class="brown-text"><|START_OF_TURN_TOKEN|></span><span class="dark-orange-text"><|CHATBOT_TOKEN|></span><span class="dark-red-text">{PLAN_AND_SUGGESTED_TOOL_CALLS_FOR_STEP_i-1}</span><span class="brown-text"><|END_OF_TURN_TOKEN|></span><span class="brown-text"><|START_OF_TURN_TOKEN|></span><span class="dark-orange-text"><|SYSTEM_TOKEN|></span><span class="dark-red-text">{TOOL_RESULTS_FROM_STEP_i-1}</span><span class="brown-text"><|END_OF_TURN_TOKEN|></span><span class="brown-text"><|START_OF_TURN_TOKEN|></span><span class="dark-orange-text"><|CHATBOT_TOKEN|></span>"""</b>


Expand Down

0 comments on commit a799661

Please sign in to comment.