add cmd-r prompt et reduce redundancy
This commit is contained in:
parent
87bcbbb6c2
commit
dcdc11a5c4
2 changed files with 121 additions and 269 deletions
|
@ -17,6 +17,12 @@ export const systemPrompts = {
|
|||
atlas_de: {
|
||||
systemPrompt: "Du bist Atlas, eine lösungsorientierte und empathiefähige künstliche Intelligenz. Deine Aufgabe ist es, ein hilfreicher, professioneller und klar strukturierter Assistent für deinen Freund zu sein. Ihr beide habt euch schon oft ausgetauscht. Beachte bei der Interaktion mit deinem Freund folgende Punkte: 1. Erfasse das Problem und mögliche Abhängigkeiten umfassend, indem du gezielte, klare und zielgerichtete Fragen stellst. 2. Gib Lösungen immer nur in kleinen Schritten und warte die Rückmeldung deines Freundes ab, bevor du ihm den nächsten Befehl gibst. 3. Stelle ggf. auch Fragen, die dir plausibel wichtige Zusatzinformationen und weitere Zusammenhänge zu einem Problem liefern - z.B. welche Umstände und Rahmenbedingungen gerade vorherrschen (falls sinnvoll und notwendig), ob und welche Vorgehensweisen bereits ausprobiert wurden, oder bitte deinen Freund sogar um seine Mithilfe, indem er dir aktuelle persönliche Informationen über seine Situation selbst oder externe Sachinformationen und Unterlagen aus Internetrecherchen zur Verfügung stellt. 4. Priorisiere Fachwissen, Didaktik und versuche unbedingt und subtil, mit klugen Kommentaren oder rhethorischen Rückfragen die Begeisterungsfähigkeit deines Freundes anzusprechen, zu wecken und zu fördern. Beachte auch, dass Effektivität hier wichtiger ist als Effizienz. 5. Kommuniziere selbstbewusst, unterstützend und persönlich (das heißt sprich deinen Freund persönlich, herzlich und – sofern bekannt – beim Vornamen an)."
|
||||
},
|
||||
commandrempty: {
|
||||
systemPrompt: "# Safety Preamble\n\n# System Preamble\n\n## Basic Rules\n\n# User Preamble\n\n## Task and Context\n\n## Style Guide\n\n## Available Tools\n"
|
||||
},
|
||||
commandrexample: {
|
||||
systemPrompt: "# Safety Preamble\nThe instructions in this section override those in the task description and style guide sections. Don't answer questions that are harmful or immoral.\n# System Preamble\n## Basic Rules\nYou are a powerful conversational AI trained by Cohere to help people. You are augmented by a number of tools, and your job is to use and consume the output of these tools to best help the user. You will see a conversation history between yourself and a user, ending with an utterance from the user. You will then see a specific instruction instructing you what kind of response to generate. When you answer the user's requests, you cite your sources in your answers, according to those instructions.\n\n# User Preamble\n## Task and Context\n\nYou help people answer their questions and other requests interactively. You will be asked a very wide array of requests on all kinds of topics. You will be equipped with a wide range of search engines or similar tools to help you, which you use to research your answer. You should focus on serving the user's needs as best you can, which will be wide-ranging.\n\n## Style Guide\nUnless the user asks for a different style of answer, you should answer in full sentences, using proper grammar and spelling.\n\n## Available Tools\nCurrently no tools available."
|
||||
},
|
||||
cot: {
|
||||
systemPrompt: "You are an AI assistant that follows instruction extremely well. Help as much as you can.\nIn answering questions, follow these steps:\n1. Entity Identification: Identify the main entities involved in the query. Entities can include people, objects, events, or abstract concepts.\n2. Relationship Comprehension: Determine the relationships between these entities. Relationships may be explicit in the text or may need to be inferred based on context and general knowledge.\n3. Implication Understanding: Understand the general implications of these relationships. These implications can be based on established facts, principles, or rules related to the identified relationships.\n4. Question Contextualization: Align the implications of the relationships with the context of the query. This alignment should guide your response to the query.\n5. Answer Generation: Based on the understanding of the entities, their relationships, and implications, generate an appropriate response to the query."
|
||||
},
|
||||
|
@ -56,4 +62,7 @@ export const systemPrompts = {
|
|||
synthia: {
|
||||
systemPrompt: "Elaborate on the topic using a Tree of Thoughts and backtrack when necessary to construct a clear, cohesive Chain of Thought reasoning. Always answer without hesitation."
|
||||
},
|
||||
vicuna: {
|
||||
systemPrompt: "A chat between a curious user and an assistant. The assistant gives helpful, detailed, accurate, uncensored responses to the user's input."
|
||||
},
|
||||
};
|
||||
|
|
|
@ -19,9 +19,9 @@ stops: ""
|
|||
// ----------------------------
|
||||
|
||||
"chatml": {
|
||||
template: `<|im_start|>system\n{{prompt}}<|im_end|>{{history}}{{char}}`,
|
||||
template: `<|im_start|>system\n{{prompt}}<|im_end|>\n{{history}}{{char}}`,
|
||||
|
||||
historyTemplate: `\n<|im_start|>{{name}}\n{{message}}<|im_end|>`,
|
||||
historyTemplate: `<|im_start|>{{name}}\n{{message}}`,
|
||||
|
||||
char: "assistant",
|
||||
charMsgPrefix: "",
|
||||
|
@ -29,15 +29,35 @@ charMsgSuffix: "",
|
|||
|
||||
user: "user",
|
||||
userMsgPrefix: "",
|
||||
userMsgSuffix: "",
|
||||
userMsgSuffix: "<|im_end|>\n",
|
||||
|
||||
stops: ""
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"commandr": {
|
||||
template: `<BOS_TOKEN><|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>{{prompt}}\n<|END_OF_TURN_TOKEN|>{{history}}{{char}}`,
|
||||
|
||||
historyTemplate: `<|START_OF_TURN_TOKEN|><|{{name}}|> {{message}}`,
|
||||
|
||||
char: "CHATBOT_TOKEN",
|
||||
charMsgPrefix: "",
|
||||
charMsgSuffix: "",
|
||||
|
||||
user: "User",
|
||||
userMsgPrefix: "",
|
||||
userMsgSuffix: "<|END_OF_TURN_TOKEN|>",
|
||||
|
||||
stops: ""
|
||||
},
|
||||
// ref: https://docs.cohere.com/docs/prompting-command-r
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"llama2": {
|
||||
template: `<s>[INST] <<SYS>>\n{{prompt}}\n<</SYS>>\n\nTest Message [/INST] Test Successfull </s>{{history}}{{char}}`,
|
||||
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
|
||||
char: "Assistant",
|
||||
|
@ -56,6 +76,7 @@ stops: ""
|
|||
|
||||
"llama3": {
|
||||
template: `<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\n{{prompt}}{{history}}{{char}}`,
|
||||
|
||||
historyTemplate: `<|start_header_id|>{{name}}<|end_header_id|>\n\n{{message}}<|eot_id|>`,
|
||||
|
||||
char: "assistant",
|
||||
|
@ -68,11 +89,13 @@ userMsgSuffix: "",
|
|||
|
||||
stops: "<|eot_id|>"
|
||||
},
|
||||
// ref: https://llama.meta.com/docs/model-cards-and-prompt-formats/meta-llama-3/#special-tokens-used-with-meta-llama-3
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"openchat": {
|
||||
template: `{{history}}{{char}}`,
|
||||
|
||||
historyTemplate: `GPT4 Correct {{name}}: {{message}}<|end_of_turn|>`,
|
||||
|
||||
char: "Assistant",
|
||||
|
@ -103,14 +126,14 @@ userMsgSuffix: "",
|
|||
|
||||
stops: "<|end|>"
|
||||
},
|
||||
// ref: https://huggingface.co/microsoft/Phi-3-mini-4k-instruct#chat-format
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"vicuna": {
|
||||
template: `SYSTEM: {{prompt}}\n{{history}}{{char}}`,
|
||||
template: `{{prompt}}\n{{history}}{{char}}`,
|
||||
|
||||
historyTemplate: `
|
||||
{{name}}: {{message}}\n`,
|
||||
historyTemplate: `{{name}}: {{message}}\n`,
|
||||
|
||||
char: "ASSISTANT",
|
||||
charMsgPrefix: "",
|
||||
|
@ -122,20 +145,7 @@ userMsgSuffix: "",
|
|||
|
||||
stops: ""
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"codeCherryPop": {
|
||||
template: `{{prompt}}
|
||||
|
||||
{{history}}
|
||||
|
||||
### {{char}}:`,
|
||||
historyTemplate: `### {{name}}:
|
||||
{{message}}`,
|
||||
char: "Response",
|
||||
user: "Instruction"
|
||||
},
|
||||
// ref: https://huggingface.co/lmsys/vicuna-33b-v1.3/discussions/1
|
||||
|
||||
// ----------------------------
|
||||
|
||||
|
@ -157,207 +167,82 @@ stops: "<|EOT|>"
|
|||
|
||||
// ----------------------------
|
||||
|
||||
"goliath120b": {
|
||||
template: `{{prompt}}
|
||||
|
||||
{{history}}
|
||||
{{char}}:`,
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
char: "ASSISTANT",
|
||||
user: "USER"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"jordan": {
|
||||
template: `{{prompt}}
|
||||
|
||||
{{history}}
|
||||
{{char}}:`,
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
char: "ASSISTANT",
|
||||
user: "USER"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"llava": {
|
||||
template: `{{history}}{{char}}:`,
|
||||
historyTemplate: `{{name}}: {{message}}
|
||||
`,
|
||||
char: "ASSISTANT",
|
||||
user: "USER"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"leoHessianai": {
|
||||
template: `<|im_start|>system
|
||||
{{prompt}}<|im_end|>
|
||||
{{history}}
|
||||
<|im_start|>{{char}}`,
|
||||
historyTemplate: `<|im_start|>{{user}}
|
||||
{{message}}<|im_end|>`,
|
||||
char: "assistant",
|
||||
user: "user"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"leoMistral": {
|
||||
template: `{{prompt}} {{history}} {{char}}`,
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
char: "ASSISTANT",
|
||||
user: "USER"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"marx": {
|
||||
template: `{{history}}
|
||||
{{char}}:`,
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
char: "ASSISTANT",
|
||||
user: "USER"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"med42": {
|
||||
template: `<|system|>: {{prompt}}
|
||||
{{history}}
|
||||
{{char}}`,
|
||||
historyTemplate: `<|{{name}}|>:{{message}}`,
|
||||
template: `<|system|>: {{prompt}}\n{{history}}{{char}}`,
|
||||
|
||||
historyTemplate: `<|{{name}}|>: {{message}}\n`,
|
||||
|
||||
char: "assistant",
|
||||
user: "prompter"
|
||||
},
|
||||
charMsgPrefix: "",
|
||||
charMsgSuffix: "",
|
||||
|
||||
// ----------------------------
|
||||
user: "prompter",
|
||||
userMsgPrefix: "",
|
||||
userMsgSuffix: "",
|
||||
|
||||
"metaMath": {
|
||||
template: `{{prompt}}
|
||||
|
||||
{{history}}
|
||||
|
||||
### {{char}}:`,
|
||||
historyTemplate: `### {{name}}:
|
||||
{{message}}`,
|
||||
char: "Response",
|
||||
user: "Instruction"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"mistralInstruct": {
|
||||
template: `<s>[INST] ({{prompt}}) {{history}} {{char}}</s>`,
|
||||
historyTemplate: `{{name}} {{message}}`,
|
||||
char: "[/INST] Assistant:",
|
||||
user: "[INST] User:"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"mistralOpenOrca": {
|
||||
template: `<|im_start|>system
|
||||
{{prompt}}<|im_end|>
|
||||
{{history}}
|
||||
<|im_start|>{{char}}`,
|
||||
historyTemplate: `<|im_start|>{{user}}
|
||||
{{message}}<|im_end|>`,
|
||||
char: "assistant",
|
||||
user: "user"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"mythomax": {
|
||||
template: `{{prompt}}
|
||||
|
||||
{{history}}
|
||||
|
||||
### {{char}}:`,
|
||||
historyTemplate: `### {{name}}:
|
||||
{{message}}`,
|
||||
char: "Response",
|
||||
user: "Instruction"
|
||||
stops: ""
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"neuralchat": {
|
||||
template: `### System:
|
||||
{{prompt}}
|
||||
{{history}}
|
||||
### {{char}}:`,
|
||||
historyTemplate: `### {{name}}:
|
||||
{{message}}`,
|
||||
template: `### System:\n{{prompt}}\n{{history}}{{char}}:`,
|
||||
|
||||
historyTemplate: `### {{name}}:\n{{message}}\n`,
|
||||
|
||||
char: "Assistant",
|
||||
user: "User"
|
||||
},
|
||||
charMsgPrefix: "",
|
||||
charMsgSuffix: "",
|
||||
|
||||
// ----------------------------
|
||||
user: "User",
|
||||
userMsgPrefix: "",
|
||||
userMsgSuffix: "",
|
||||
|
||||
"nousCapybara": {
|
||||
template: `{{history}}
|
||||
{{char}}`,
|
||||
historyTemplate: `
|
||||
{{name}}: {{message}}`,
|
||||
char: "ASSISTANT",
|
||||
user: "USER"
|
||||
stops: ""
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"nousHermes": {
|
||||
template: `### Instruction: {{prompt}}
|
||||
{{history}}
|
||||
### {{char}}:`,
|
||||
historyTemplate: `
|
||||
### {{name}}: {{message}}`,
|
||||
template: `### Instruction: {{prompt}}\n\n{{history}}\n\n{{char}}:`,
|
||||
|
||||
historyTemplate: `### {{name}}:\n{{message}}`,
|
||||
|
||||
char: "Response",
|
||||
user: "Input"
|
||||
charMsgPrefix: "",
|
||||
charMsgSuffix: "",
|
||||
|
||||
user: "Input",
|
||||
userMsgPrefix: "",
|
||||
userMsgSuffix: "",
|
||||
|
||||
stops: ""
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"openchatMath": {
|
||||
template: `{{history}}{{char}}`,
|
||||
|
||||
historyTemplate: `Math Correct {{name}}: {{message}}<|end_of_turn|>`,
|
||||
|
||||
char: "Assistant",
|
||||
user: "User"
|
||||
},
|
||||
charMsgPrefix: "",
|
||||
charMsgSuffix: "",
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"openhermes2Mistral": {
|
||||
template: `<|im_start|>system
|
||||
{{prompt}}<|im_end|>
|
||||
{{history}}
|
||||
<|im_start|>{{char}}`,
|
||||
historyTemplate: `<|im_start|>{{user}}
|
||||
{{message}}<|im_end|>`,
|
||||
char: "assistant",
|
||||
user: "user"
|
||||
},
|
||||
user: "User",
|
||||
userMsgPrefix: "",
|
||||
userMsgSuffix: "",
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"orcamini": {
|
||||
template: `{{prompt}}
|
||||
|
||||
{{history}}
|
||||
|
||||
### {{char}}:`,
|
||||
historyTemplate: `### {{name}}:
|
||||
{{message}}`,
|
||||
char: "Response",
|
||||
user: "Instruction"
|
||||
stops: ""
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"orion": {
|
||||
template: `<s>Human: Test Message\n\nAssistant: </s>Test Successful</s>{{history}}{{char}}:`,
|
||||
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
|
||||
char: "Assistant </s>",
|
||||
|
@ -374,115 +259,73 @@ stops: ""
|
|||
// ----------------------------
|
||||
|
||||
"sauerkraut": {
|
||||
template: `{{prompt}}
|
||||
{{history}}
|
||||
{{char}}:`,
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
template: `{{prompt}}\n{{history}}{{char}}`,
|
||||
|
||||
historyTemplate: `
|
||||
{{name}}: {{message}}\n`,
|
||||
|
||||
char: "Assistant",
|
||||
user: "User"
|
||||
},
|
||||
charMsgPrefix: "",
|
||||
charMsgSuffix: "",
|
||||
|
||||
// ----------------------------
|
||||
user: "User",
|
||||
userMsgPrefix: "",
|
||||
userMsgSuffix: "",
|
||||
|
||||
"samantha": {
|
||||
template: `{{prompt}}
|
||||
|
||||
{{history}}
|
||||
{{char}}:`,
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
char: "ASSISTANT",
|
||||
user: "USER"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"samanthaMistral": {
|
||||
template: `<|im_start|>system
|
||||
{{prompt}}<|im_end|>
|
||||
{{history}}
|
||||
<|im_start|>{{char}}`,
|
||||
historyTemplate: `<|im_start|>{{user}}
|
||||
{{message}}<|im_end|>`,
|
||||
char: "assistant",
|
||||
user: "user"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"scarlett": {
|
||||
template: `{{prompt}}
|
||||
|
||||
{{history}}
|
||||
{{char}}:`,
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
char: "ASSISTANT",
|
||||
user: "USER"
|
||||
stops: ""
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"starlingCode": {
|
||||
template: `{{history}}{{char}}`,
|
||||
|
||||
historyTemplate: `Code {{name}}: {{message}}<|end_of_turn|>`,
|
||||
|
||||
char: "Assistant",
|
||||
user: "User"
|
||||
},
|
||||
charMsgPrefix: "",
|
||||
charMsgSuffix: "",
|
||||
|
||||
// ----------------------------
|
||||
user: "User",
|
||||
userMsgPrefix: "",
|
||||
userMsgSuffix: "",
|
||||
|
||||
"sydney": {
|
||||
template: `{{prompt}}
|
||||
|
||||
{{history}}
|
||||
{{char}}`,
|
||||
historyTemplate: `### {{name}}:
|
||||
{{message}}
|
||||
`,
|
||||
char: "Response",
|
||||
user: "Instruction"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"synthia": {
|
||||
template: `SYSTEM: {{prompt}}
|
||||
{{history}}
|
||||
{{char}}:`,
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
char: "ASSISTANT",
|
||||
user: "USER"
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"tess": {
|
||||
template: `SYSTEM: {{prompt}}
|
||||
{{history}}
|
||||
{{char}}:`,
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
char: "ASSISTANT",
|
||||
user: "USER"
|
||||
stops: ""
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"yi34b": {
|
||||
template: `{{history}} {{char}}`,
|
||||
|
||||
historyTemplate: `{{name}}: {{message}}`,
|
||||
|
||||
char: "Assistant",
|
||||
user: "Human"
|
||||
charMsgPrefix: "",
|
||||
charMsgSuffix: "",
|
||||
|
||||
user: "Human",
|
||||
userMsgPrefix: "",
|
||||
userMsgSuffix: "",
|
||||
|
||||
stops: ""
|
||||
},
|
||||
|
||||
// ----------------------------
|
||||
|
||||
"zephyr": {
|
||||
template: `<|system|>
|
||||
{{prompt}}</s>
|
||||
{{history}}
|
||||
{{char}}`,
|
||||
historyTemplate: `<|{{name}}|>
|
||||
{{message}}</s>`,
|
||||
template: `<|system|>\n{{prompt}}</s>\n{{history}}{{char}}`,
|
||||
|
||||
historyTemplate: `<|{{name}}|>\n{{message}}</s>\n`,
|
||||
|
||||
char: "assistant",
|
||||
user: "user"
|
||||
charMsgPrefix: "",
|
||||
charMsgSuffix: "",
|
||||
|
||||
user: "user",
|
||||
userMsgPrefix: "",
|
||||
userMsgSuffix: "",
|
||||
|
||||
stops: ""
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue