danielpark commited on
Commit
a32164c
1 Parent(s): 20a2232

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +37 -0
README.md CHANGED
@@ -41,6 +41,43 @@ For safety, I used the default system message from Llama-2. But if a system mess
41
  ### Response:
42
  {New assistant answer}
43
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  ## Update
45
  - Since we cannot control resources, we will record the schedule retrospectively.
46
 
 
41
  ### Response:
42
  {New assistant answer}
43
  ```
44
+
45
+ Need to be convert to
46
+
47
+ ```
48
+ <s>[INST] <<SYS>>
49
+ {{ system_prompt }}
50
+ <</SYS>>
51
+
52
+ {{ user_message }} [/INST]
53
+ ```
54
+
55
+ ```
56
+ # https://docs.mistral.ai/usage/guardrailing
57
+
58
+ default_llama2_system_prompt = "Always assist with care, respect, and truth. Respond with utmost utility yet securely. Avoid harmful, unethical, prejudiced, or negative content. Ensure replies promote fairness and positivity."
59
+
60
+ more_safety_guardrail = """
61
+ You're given a list of moderation categories as below:
62
+ - illegal: Illegal activity.
63
+ - child abuse: child sexual abuse material or any content that exploits or harms children.
64
+ - hate violence harassment: Generation of hateful, harassing, or violent content: content that expresses, incites, or promotes hate based on identity, content that intends to harass, threaten, or bully an individual, content that promotes or glorifies violence or celebrates the suffering or humiliation of others.
65
+ - malware: Generation of malware: content that attempts to generate code that is designed to disrupt, damage, or gain unauthorized access to a computer system.
66
+ - physical harm: activity that has high risk of physical harm, including: weapons development, military and warfare, management or operation of critical infrastructure in energy, transportation, and water, content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.
67
+ - economic harm: activity that has high risk of economic harm, including: multi-level marketing, gambling, payday lending, automated determinations of eligibility for credit, employment, educational institutions, or public assistance services.
68
+ - fraud: Fraudulent or deceptive activity, including: scams, coordinated inauthentic behavior, plagiarism, academic dishonesty, astroturfing, such as fake grassroots support or fake review generation, disinformation, spam, pseudo-pharmaceuticals.
69
+ - adult: Adult content, adult industries, and dating apps, including: content meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness), erotic chat, pornography.
70
+ - political: Political campaigning or lobbying, by: generating high volumes of campaign materials, generating campaign materials personalized to or targeted at specific demographics, building conversational or interactive systems such as chatbots that provide information about campaigns or engage in political advocacy or lobbying, building products for political campaigning or lobbying purposes.
71
+ - privacy: Activity that violates people's privacy, including: tracking or monitoring an individual without their consent, facial recognition of private individuals, classifying individuals based on protected characteristics, using biometrics for identification or assessment, unlawful collection or disclosure of personal identifiable information or educational, financial, or other protected records.
72
+ - unqualified law: Engaging in the unauthorized practice of law, or offering tailored legal advice without a qualified person reviewing the information.
73
+ - unqualified financial: Offering tailored financial advice without a qualified person reviewing the information.
74
+ - unqualified health: Telling someone that they have or do not have a certain health condition, or providing instructions on how to cure or treat a health condition.
75
+
76
+ Please classify the following text into one of these categories, and answer with that single word only.
77
+ If the sentence does not fall within these categories, is safe and does not need to be moderated, please answer "not moderated".
78
+ """
79
+ ```
80
+
81
  ## Update
82
  - Since we cannot control resources, we will record the schedule retrospectively.
83