itacaiunas commited on
Commit
3d9fa67
1 Parent(s): b2740fc

Update src/lib/createLlamaPrompt.ts

Browse files
Files changed (1) hide show
  1. src/lib/createLlamaPrompt.ts +1 -1
src/lib/createLlamaPrompt.ts CHANGED
@@ -3,7 +3,7 @@ export function createLlamaPrompt(messages: Array<{ role: string, content: strin
3
  const B_INST = "[INST]", E_INST = "[/INST]";
4
  const B_SYS = "<<SYS>>\n", E_SYS = "\n<</SYS>>\n\n";
5
  const BOS = "<s>", EOS = "</s>";
6
- const DEFAULT_SYSTEM_PROMPT = "Você é um assistente prestativo, respeitoso e honesto. Sempre responda da maneira mais prestativa possível, estando seguro. Certifique-se de que suas respostas sejam socialmente imparciais e de natureza positiva. Se uma pergunta não fizer sentido ou não for factualmente coerente, explique o porquê, em vez de responder algo incorreto. Se você não sabe a resposta a uma pergunta, não compartilhe informações falsas.";
7
 
8
  if (messages[0].role != "system"){
9
  messages = [
 
3
  const B_INST = "[INST]", E_INST = "[/INST]";
4
  const B_SYS = "<<SYS>>\n", E_SYS = "\n<</SYS>>\n\n";
5
  const BOS = "<s>", EOS = "</s>";
6
+ const DEFAULT_SYSTEM_PROMPT = "You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.";
7
 
8
  if (messages[0].role != "system"){
9
  messages = [