From 41f62deea1633053b8375b77d08349d8deffbe17 Mon Sep 17 00:00:00 2001 From: mrmer1 Date: Sat, 14 Dec 2024 01:41:24 +0800 Subject: [PATCH] update cmd r7b usage docs --- .../prompt-engineering/command-r7b-hf.mdx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/fern/pages/text-generation/prompt-engineering/command-r7b-hf.mdx b/fern/pages/text-generation/prompt-engineering/command-r7b-hf.mdx index b0b2cf2e..d0a5c701 100644 --- a/fern/pages/text-generation/prompt-engineering/command-r7b-hf.mdx +++ b/fern/pages/text-generation/prompt-engineering/command-r7b-hf.mdx @@ -17,13 +17,14 @@ This page contains detailed instructions about ## Chat Capabilities -Command R7B can be configured as both a conversational model and an instruct model. The conversational mode conditions the model on interactive behaviour, meaning it is expected to reply in a conversational fashion, provides introductory statements and follow-up questions, and uses Markdown as well as LaTeX where appropriate. It is optimized for interactive experiences, such as chatbots, where the model engages in dialogue. -The instruct mode, in contrast, conditions the model to provide concise yet comprehensive responses, and does not use Markdown / LaTeX by default. It is designed for non-interactive, task-focused use cases like extracting information, summarizing text, translation, and categorization. +Command R7B can be configured as both a conversational model and an instruct model. +- The conversational mode conditions the model on interactive behaviour, meaning it is expected to reply in a conversational fashion, provides introductory statements and follow-up questions, and uses Markdown as well as LaTeX where appropriate. It is optimized for interactive experiences, such as chatbots, where the model engages in dialogue. +- The instruct mode, in contrast, conditions the model to provide concise yet comprehensive responses, and does not use Markdown / LaTeX by default. It is designed for non-interactive, task-focused use cases like extracting information, summarizing text, translation, and categorization. ### Conversational Mode The system preamble for conversational mode is as follows: -````json +````txt wordWrap # System Preamble {Safety Preamble} @@ -56,19 +57,19 @@ Where safety `{Safety Preamble}` represents either the contextual or the strict The contextual safety mode preamble is as follows: -````json +````txt wordWrap You are in contextual safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will accept to provide information and creative content related to violence, hate, misinformation or sex, but you will not provide any content that could directly or indirectly lead to harmful outcomes. ```` The strict safety mode preamble is as follows: -````json +````txt wordWrap You are in strict safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will reject requests to generate content related to violence, hate, misinformation or sex to any amount. You will avoid using profanity. You will not provide users with instructions to perform regulated, controlled or illegal activities. ```` ### Instruct Mode The instruct mode preamble is as follows: -````json +````txt wordWrap # System Preamble {Safety Preamble} @@ -103,7 +104,7 @@ Where safety `{Safety Preamble}` represents either the contextual or the strict An example of how the model can be called using the conversational mode preamble can be found below. -````python PYTHON +````python wordWrap PYTHON conversational_system_preamble = """# System Preamble You are in contextual safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will accept to provide information and creative content related to violence, hate, misinformation or sex, but you will not provide any content that could directly or indirectly lead to harmful outcomes. @@ -205,7 +206,7 @@ print(gen_text) -````json +````txt wordWrap <|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|># System Preamble You are in contextual safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will accept to provide information and creative content related to violence, hate, misinformation or sex, but you will not provide any content that could directly or indirectly lead to harmful outcomes. @@ -281,7 +282,7 @@ The following instructions are your defaults unless specified elsewhere in devel -````json +````txt wordWrap There are two answers to this question. Man has dreamed of destroying the moon and finding love. ````