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 25, 2024
1 parent 8c867ac commit 050c92d
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ This way, RAG and Summarization follow a similar prompt template. It is the Augm
> <br />
> <span class="dark-sangria-text">## Style Guide</span>
> <span class="dark-sangria-text">\{STYLE_GUIDE}</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="orange-text">\{RETRIEVED_SNIPPETS_FOR_RAG or TEXT_TO_SUMMARIZE}</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="orange-text">\{INSTRUCTIONS}</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="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="orange-text">\{RETRIEVED_SNIPPETS_FOR_RAG or TEXT_TO_SUMMARIZE}</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="orange-text">\{INSTRUCTIONS}</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>"""

We can see that the prompt is set up in a structured way where we have sections for things like the <span class="green-text">basic rules</span> we want the model to follow, the <span class="purple-text">task</span> we want it to solve, and the <span class="pink-text">style</span> in which it should write its output in.
Expand Down

0 comments on commit 050c92d

Please sign in to comment.