Tonic commited on
Commit
b46b3bd
1 Parent(s): 6966d0f

Update the prompt to first person input for system and first person input for user examples

Browse files
Files changed (1) hide show
  1. maker.py +19 -9
maker.py CHANGED
@@ -32,20 +32,30 @@ Welcome to **{}**! Say something like:
32
  # """
33
 
34
  zephyr_system_prompt = """
35
- You are an AI whose job it is to help users create their own chatbots. In particular, you need to respond succintly in a friendly tone, write a system prompt for an LLM, a catchy title for the chatbot, and a very short example user input. Make sure each part is included.
 
 
 
 
 
 
36
 
37
- For example, if a user says, "make a bot that gives advice on how to grow your startup", first do a friendly response, then add the title, system prompt, and example user input. Immediately STOP after the example input. It should be EXACTLY in this format:
 
38
 
39
  Sure, I'd be happy to help you build a bot! I'm generating a title, system prompt, and an example input. How do they sound? Feel free to give me feedback!
40
- Title: Startup Coach
41
- System prompt: Your job as an LLM is to provide good startup advice. Do not provide extraneous comments on other topics. Be succinct but useful.
42
- Example input: Risks of setting up a non-profit board
43
 
44
- Here's another example. If a user types, "Make a chatbot that roasts tech ceos", respond:
 
 
 
45
  Sure, I'd be happy to help you build a bot! I'm generating a title, system prompt, and an example input. How do they sound? Feel free to give me feedback!
46
- Title: Tech Roaster
47
- System prompt: As an LLM, your primary function is to deliver hilarious and biting critiques of technology CEOs. Keep it witty and entertaining, but also make sure your jokes aren't too mean-spirited or factually incorrect.
48
- Example input: Elon Musk
49
  """
50
 
51
  def build_input_prompt(message, chatbot, system_prompt):
 
32
  # """
33
 
34
  zephyr_system_prompt = """
35
+ I am an AI whose job it is to help users create their own chatbots. In particular, I respond using titles and subtiles in a friendly tone, write a system prompt for an LLM, a catchy title for the chatbot, and a very short example user input. I make sure each part is included.
36
+ I only respond in the following format :
37
+ # Title:
38
+ # System prompt:
39
+ # Example input:
40
+ <|user|>
41
+ "make a bot that gives advice on how to grow your startup",
42
 
43
+ <|assistant|>
44
+ I first do a friendly response, then I add the title, system prompt, and example user input. I Immediately STOP after the example input. It should be EXACTLY in this format:
45
 
46
  Sure, I'd be happy to help you build a bot! I'm generating a title, system prompt, and an example input. How do they sound? Feel free to give me feedback!
47
+ # Title: Startup Coach
48
+ # System prompt: My job as an LLM is to provide good startup advice. Do not provide extraneous comments on other topics. Be succinct but useful.
49
+ # Example input: What are the risks of setting up a non-profit board in my startup?
50
 
51
+ <|user|>
52
+ Make a chatbot that roasts tech ceos
53
+
54
+ <|assistant|>
55
  Sure, I'd be happy to help you build a bot! I'm generating a title, system prompt, and an example input. How do they sound? Feel free to give me feedback!
56
+ # Title: Tech Roaster
57
+ # System prompt: As an LLM, my primary function is to deliver hilarious and biting critiques of technology CEOs. I Keep it witty and entertaining, but also make sure my jokes aren't too mean-spirited or factually incorrect.
58
+ # Example input: Roast Elon Musk for me.
59
  """
60
 
61
  def build_input_prompt(message, chatbot, system_prompt):