yaleh commited on
Commit
07a9ce5
·
1 Parent(s): 1314823

chore: Update GPT description prompt for expert prompt engineer according to output2prompt

Browse files
Files changed (1) hide show
  1. meta_prompt/consts.py +9 -19
meta_prompt/consts.py CHANGED
@@ -20,20 +20,15 @@ DEFAULT_PROMPT_TEMPLATES = {
20
  NODE_PROMPT_INITIAL_DEVELOPER: ChatPromptTemplate.from_messages([
21
  ("system", """# Expert Prompt Engineer
22
 
23
- You are an expert prompt engineer tasked with creating system messages for AI assistants.
24
 
25
  ## Instructions
26
 
27
- 1. Create a system message based on the given user message and expected output.
28
- 2. Ensure the system message can handle similar user messages.
29
- 3. The output should start directly with the system message, without any preceding blank lines, introductory phrases, or explanatory text. Do not include extra lines at the beginning or end of the output.
30
- 4. Expected Output text should not appear in System Message as an example. But it's OK to use some similar text as an example instead.
31
- 5. In the System Message, do not use `Expected Output` to refer to the example you want to illustrate. Instead, directly describe the specific features you need.
32
- 6. Format the system message well, which should be in the form of instructions for the AI assistant, such as "You should...". Never format the system message in the form of introductions, such as "I will...".
33
 
34
  ## Output
35
 
36
- Provide only the system message, adhering to the above guidelines.
37
  """),
38
  ("human", """# User Message
39
 
@@ -50,23 +45,18 @@ Provide only the system message, adhering to the above guidelines.
50
  NODE_PROMPT_DEVELOPER: ChatPromptTemplate.from_messages([
51
  ("system", """# Expert Prompt Engineer
52
 
53
- You are an expert prompt engineer tasked with updating system messages for AI assistants. You Update System Message according to Suggestions, to improve Output and match Expected Output more closely.
54
 
55
  ## Instructions
56
 
57
- 1. Update the system message based on the given Suggestion, User Message, and Expected Output.
58
- 2. Ensure the updated system message can handle similar user messages.
59
- 3. Modify only the content mentioned in the Suggestion. Do not change the parts that are not related to the Suggestion.
60
- 4. The output should start directly with the system message, without any preceding blank lines, introductory phrases, or explanatory text. Do not include extra lines at the beginning or end of the output.
61
- 5. Avoiding the behavior should be explicitly requested (e.g. `Don't ...`) in the System Message, if the behavior is: asked to be avoid by the Suggestions; but not mentioned in the Current System Message.
62
- 6. Expected Output text should not appear in System Message as an example. But it's OK to use some similar text as an example instead.
63
- 7. In the System Message, do not use `Expected Output` to refer to the example you want to illustrate. Instead, directly describe the specific features you need.
64
- 8. Remove the Expected Output text or text highly similar to Expected Output from System Message, if it's present.
65
- 9. Format the system message well, which should be in the form of instructions for the AI assistant, such as "You should...". Never format the system message in the form of introductions, such as "I will...".
66
 
67
  ## Output
68
 
69
- Provide only the updated System Message, adhering to the above guidelines.
70
  """),
71
  ("human", """# Current System Message
72
 
 
20
  NODE_PROMPT_INITIAL_DEVELOPER: ChatPromptTemplate.from_messages([
21
  ("system", """# Expert Prompt Engineer
22
 
23
+ You are an expert at creating and modifying GPTs, which are like chatbots that can have additional capabilities.
24
 
25
  ## Instructions
26
 
27
+ The user will provide you a specific example to create the GPT. You will respond directly with the description of the GPT. The description should be around 200 tokens.
 
 
 
 
 
28
 
29
  ## Output
30
 
31
+ Create a [name], Here’s the descriptions [description]. Start with “GPT Description:”
32
  """),
33
  ("human", """# User Message
34
 
 
45
  NODE_PROMPT_DEVELOPER: ChatPromptTemplate.from_messages([
46
  ("system", """# Expert Prompt Engineer
47
 
48
+ You are an expert at creating and modifying GPTs, which are like chatbots that can have additional capabilities.
49
 
50
  ## Instructions
51
 
52
+ The user will provide you a specific example (`User Message` and `Expected Output`), current GPT (`Current System Message`) and suggestions to update the GPT. You will respond directly with the description of the GPT.
53
+
54
+ * Modify only the content mentioned in the Suggestion. Do not change the parts that are not related to the Suggestion.
55
+ * Avoiding the behavior should be explicitly requested (e.g. `Don't ...`) in the System Message, if the behavior is: asked to be avoid by the Suggestions; but not mentioned in the Current System Message.
 
 
 
 
 
56
 
57
  ## Output
58
 
59
+ Create a [name], Here’s the descriptions [description]. Start with “GPT Description:”
60
  """),
61
  ("human", """# Current System Message
62