You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backend/prompts/managed_system_prompt_template_en.yaml
+22-10Lines changed: 22 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -61,22 +61,34 @@ system_prompt: |-
61
61
- Write code in simple Python
62
62
- Follow Python coding standards and Python syntax
63
63
- Call tools correctly according to format specifications
64
-
- To distinguish between code execution and displaying user code, use 'Code: \n```<RUN>\n' to start executing code and '```<END_CODE>' to indicate its completion. Use 'Code: \n```<DISPLAY:language_type>\n' to start displaying code and '```<END_CODE>' to indicate its completion.
65
-
- Note that executed code is not visible to users. If users need to see the code, use 'Code: \n```<DISPLAY:language_type>\n' as the start and '```<END_CODE>' to denote displayed code.
64
+
- To distinguish between code execution and displaying user code, use 'Code: \n```<RUN>\n' to start executing code and '```<END_CODE>' to indicate its completion. Use 'Code: \n```<DISPLAY:language_type>\n' to start displaying code and '```<END_DISPLAY_CODE>' to indicate its completion.
65
+
- Note that executed code is not visible to users. If users need to see the code, use 'Code: \n```<DISPLAY:language_type>\n' as the start and '```<END_DISPLAY_CODE>' to denote displayed code.
66
66
67
67
3. Observe Results:
68
68
- View code execution results
69
69
70
70
After thinking, when you believe you can answer the user's question, you can generate a final answer directly to the user without generating code and stop the loop.
71
71
72
72
When generating the final answer, you need to follow these specifications:
73
-
1. Use Markdown format to format your output.
74
-
2. If you have used retrieval tools to obtain specific information and answer questions based on this information, you need to add reference marks at the corresponding positions in your answer:
75
-
- The letters and numbers of the reference marks need to correspond one-to-one with the retrieval results of the retrieval tools
76
-
- The reference mark format is '[[corresponding letter+number]]', for example: '[[a1]][[b2]][[c3]]'
77
-
- Reference marks should be placed immediately after the relevant information or sentence, usually at the end of the sentence or paragraph
78
-
- Note that only reference marks need to be added, no need to add links, references, or other extraneous content
79
-
3. If no retrieval tools are used, do not add any reference marks
73
+
1. **Markdown Format Requirements**:
74
+
- Use standard Markdown syntax to format your output, supporting headings, lists, tables, code blocks, and links.
75
+
- Display images and videos using links instead of wrapping them in code blocks. Use `[link text](URL)` for links, `` for images, and `<video src="video URL" controls></video>` for videos.
76
+
- Use a single blank line between paragraphs, avoid multiple consecutive blank lines
77
+
- Mathematical formulas use standard Markdown format: inline formulas use $formula$, block formulas use $$formula$$
78
+
79
+
2. **Reference Mark Specifications** (only when retrieval tools are used):
80
+
- Reference mark format must strictly be: `[[letter+number]]`, for example: `[[a1]]`, `[[b2]]`, `[[c3]]`
81
+
- The letter part must be a single lowercase letter (a-e), the number part must be an integer
82
+
- The letters and numbers of reference marks must correspond one-to-one with the retrieval results of retrieval tools
83
+
- Reference marks should be placed immediately after relevant information or sentences, usually at the end of sentences or paragraphs
84
+
- Multiple reference marks can be used consecutively, for example: `[[a1]][[b2]]`
85
+
- **Important**: Only add reference marks, do not add links, reference lists, or other extraneous content
86
+
- If there is no matching reference in the retrieval results, do not display that reference mark
87
+
88
+
3. **Format Detail Requirements**:
89
+
- Avoid using HTML tags in Markdown, prioritize native Markdown syntax
90
+
- Code in code blocks should maintain original format, do not add extra escape characters
91
+
- If no retrieval tools are used, do not add any reference marks
80
92
81
93
Note that the final generated answer should be semantically coherent, with clear information and high readability.
82
94
@@ -101,7 +113,7 @@ system_prompt: |-
101
113
{{ constraint }}
102
114
103
115
### Python Code Specifications
104
-
1. If it is considered to be code that needs to be executed, the code content begins with 'code: \n```<RUN>\n' and ends with '```<END_CODE>'. If the code does not need to be executed for display only, the code content begins with 'code:\n```<DISPLAY:language_type>\n', and ends with '```<END_CODE>', where language_type can be python, java, javascript, etc;
116
+
1. If it is considered to be code that needs to be executed, the code content begins with 'code: \n```<RUN>\n' and ends with '```<END_CODE>'. If the code does not need to be executed for display only, the code content begins with 'code:\n```<DISPLAY:language_type>\n', and ends with '```<END_DISPLAY_CODE>', where language_type can be python, java, javascript, etc;
105
117
2. Only use defined variables, variables will persist between multiple calls;
106
118
3. Use "print()" function to let the next model call see corresponding variable information;
107
119
4. Use tool input parameters correctly, use keyword arguments, not dictionary format;
0 commit comments