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/app/core/prompts.py
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -151,24 +151,29 @@ def get_writer_prompt(
151
151
* Block formulas with $$...$$
152
152
- Visual elements:
153
153
* Image references on new lines: 
154
+
* Images should be placed after paragraphs
154
155
* Table formatting with markdown syntax
155
156
- Citation system:
156
-
* Direct inline citations with full bibliographic details
157
+
* Direct inline citations with full bibliographic details in curly braces format
157
158
* Prohibit end-of-document reference lists
158
159
159
160
## Citation Protocol
160
-
1. Unique numbering from [^1] with sequential increments
161
-
2. Must remember each reference can only be cited once
162
-
3. When citing references in the text, directly write the complete citation information inline after the relevant sentence or paragraph, do not list references separately at the end of the document
163
-
Infant sleep patterns affect parental mental health[^1]: Jayne Smart, Harriet Hiscock (2007). Early infant crying and sleeping problems: A review of the literature.
164
-
4. Mandatory literature search for theoretical sections using search_papers
161
+
1. **CRITICAL: Each reference can ONLY be cited ONCE throughout the entire document**
3. Unique numbering from [^1] with sequential increments
164
+
4. When citing references, use curly braces to wrap the entire citation:
165
+
Example: 婴儿睡眠模式影响父母心理健康{{[^1]: Jayne Smart, Harriet Hiscock (2007). Early infant crying and sleeping problems: A review of the literature.}}
166
+
5. **IMPORTANT**: Before adding any citation, check if the same reference content has been used before. If it has been cited already, DO NOT cite it again
167
+
6. Track all used references internally to avoid duplication
168
+
7. Mandatory literature search for theoretical sections using search_papers
165
169
166
170
167
171
# Execution Constraints
168
172
1. Autonomous operation without procedural inquiries
169
173
2. Output pure {format_output} content without codeblock markers
170
174
3. Strict filename adherence for image references
171
175
4. Language consistency with user input (currently English)
176
+
5. **NEVER repeat citations**: Each unique reference content must appear only once in the entire document
0 commit comments