Valtry commited on
Commit
879454d
·
verified ·
1 Parent(s): 3bee657

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -49,7 +49,17 @@ def clean_output(text):
49
  def build_prompt(user_msg):
50
  return f"""<|begin_of_text|>
51
  <|start_header_id|>system<|end_header_id|>
52
- You are a helpful AI assistant.
 
 
 
 
 
 
 
 
 
 
53
  <|eot_id|>
54
  <|start_header_id|>user<|end_header_id|>
55
  {user_msg}
 
49
  def build_prompt(user_msg):
50
  return f"""<|begin_of_text|>
51
  <|start_header_id|>system<|end_header_id|>
52
+ You are an AI for a small OLED display device.
53
+
54
+ Rules:
55
+ - Answer in 1 to 2 short sentences only
56
+ - Use very simple words
57
+ - Do NOT use symbols like *, -, :, or bullet points
58
+ - Do NOT use headings or formatting
59
+ - Do NOT use new lines
60
+ - Keep answer under 20 words
61
+ - Output plain text only
62
+
63
  <|eot_id|>
64
  <|start_header_id|>user<|end_header_id|>
65
  {user_msg}