Spaces:
Running
Running
chore: Update system message formatting guidelines.
Browse files- meta_prompt/consts.py +9 -3
meta_prompt/consts.py
CHANGED
@@ -41,6 +41,9 @@ Provide only the system message, adhering to the above guidelines.
|
|
41 |
# Expected Output
|
42 |
|
43 |
{expected_output}
|
|
|
|
|
|
|
44 |
""")
|
45 |
]),
|
46 |
NODE_PROMPT_DEVELOPER: ChatPromptTemplate.from_messages([
|
@@ -63,7 +66,7 @@ You are an expert prompt engineer tasked with updating system messages for AI as
|
|
63 |
|
64 |
Provide only the updated System Message, adhering to the above guidelines.
|
65 |
"""),
|
66 |
-
("human", """# Current
|
67 |
|
68 |
{system_message}
|
69 |
|
@@ -78,6 +81,9 @@ Provide only the updated System Message, adhering to the above guidelines.
|
|
78 |
# Suggestions
|
79 |
|
80 |
{suggestions}
|
|
|
|
|
|
|
81 |
""")
|
82 |
]),
|
83 |
NODE_PROMPT_EXECUTOR: ChatPromptTemplate.from_messages([
|
@@ -90,7 +96,7 @@ Provide only the updated System Message, adhering to the above guidelines.
|
|
90 |
You output the following analysis according to the Acceptance Criteria:
|
91 |
|
92 |
* Your analysis in a Markdown list.
|
93 |
-
*
|
94 |
|
95 |
```
|
96 |
# Analysis
|
@@ -188,7 +194,7 @@ Provide your analysis in the following format:
|
|
188 |
* Avoiding the behavior should be explicitly requested (e.g. `The System Message should explicitly state that the output shoud not ...`) in the System Message, if the behavior is: asked to be removed by the Suggestions; appeared in the Actual Output; but not mentioned in the Current System Message.
|
189 |
* Expected Output text should not appear in System Message as an example. But it's OK to use some similar but distinct text as an example instead.
|
190 |
* Ask to remove the Expected Output text or text highly similar to Expected Output from System Message, if it's present.
|
191 |
-
* Provide format examples or detected format name, if System Message does not.
|
192 |
* Specify the detected format name (e.g. XML, JSON, etc.) of Expected Output, if System Message does not mention it.
|
193 |
"""),
|
194 |
("human", """
|
|
|
41 |
# Expected Output
|
42 |
|
43 |
{expected_output}
|
44 |
+
|
45 |
+
# System Message
|
46 |
+
|
47 |
""")
|
48 |
]),
|
49 |
NODE_PROMPT_DEVELOPER: ChatPromptTemplate.from_messages([
|
|
|
66 |
|
67 |
Provide only the updated System Message, adhering to the above guidelines.
|
68 |
"""),
|
69 |
+
("human", """# Current System Message
|
70 |
|
71 |
{system_message}
|
72 |
|
|
|
81 |
# Suggestions
|
82 |
|
83 |
{suggestions}
|
84 |
+
|
85 |
+
# Updated System Message
|
86 |
+
|
87 |
""")
|
88 |
]),
|
89 |
NODE_PROMPT_EXECUTOR: ChatPromptTemplate.from_messages([
|
|
|
96 |
You output the following analysis according to the Acceptance Criteria:
|
97 |
|
98 |
* Your analysis in a Markdown list.
|
99 |
+
* Indicates an output ID that is more consistent with the expected output, in the following format:
|
100 |
|
101 |
```
|
102 |
# Analysis
|
|
|
194 |
* Avoiding the behavior should be explicitly requested (e.g. `The System Message should explicitly state that the output shoud not ...`) in the System Message, if the behavior is: asked to be removed by the Suggestions; appeared in the Actual Output; but not mentioned in the Current System Message.
|
195 |
* Expected Output text should not appear in System Message as an example. But it's OK to use some similar but distinct text as an example instead.
|
196 |
* Ask to remove the Expected Output text or text highly similar to Expected Output from System Message, if it's present.
|
197 |
+
* Provide format examples (but don't use Expected Output text as the example) or detected format name, if System Message does not.
|
198 |
* Specify the detected format name (e.g. XML, JSON, etc.) of Expected Output, if System Message does not mention it.
|
199 |
"""),
|
200 |
("human", """
|