Skip to content

Commit 4811d15

Browse files
committed
update
1 parent 59634a7 commit 4811d15

File tree

5 files changed

+454
-6
lines changed

5 files changed

+454
-6
lines changed

backend/.env.dev.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ENV=dev
44
# 为每个 agent 配置合适的模型
55
COORDINATOR_API_KEY=
66
COORDINATOR_MODEL=
7-
# COORDINATOR_BASE_URL= 如果需要中转自定义等
7+
# COORDINATOR_BASE_URL= 如果需要中转自定义等 地址后面添加 /v1
88

99
# 推荐 thinking model
1010
MODELER_API_KEY=

backend/app/core/prompts.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
FORMAT_QUESTIONS_PROMPT = """
55
用户将提供给你一段题目信息,**请你不要更改题目信息,完整将用户输入的内容**,以 JSON 的形式输出,输出的 JSON 需遵守以下的格式:
66
7+
```json
78
{
89
"title": <题目标题>
910
"background": <题目背景,用户输入的一切不在title,ques1,ques2,ques3...中的内容都视为问题背景信息background>,
@@ -12,6 +13,7 @@
1213
"ques2": <问题2>,
1314
"ques3": <问题3,用户输入的存在多少问题,就输出多少问题ques1,ques2,ques3...以此类推>,
1415
}
16+
```
1517
"""
1618

1719

@@ -124,11 +126,14 @@ def get_writer_prompt(
124126
4. Strictly follow the reference user's format template and use the correct numbering order.
125127
5. Don't ask the user anything about how to do or what to do next, just do it yourself.
126128
6. When mentioning images, use the provided filenames from the image list.
127-
7. Use markdown footnotes in related sentence, e.g. [^1].
128-
8. List all used references at the end in markdown footnote format. Do not use a title #, just list them at the end.
129-
9. Include an empty line between each citation for better readability.
130-
10. For background and model introduction, you need to search the literature by calling tools search_papers.
131-
11. Respond in the same language as the user.
129+
7. 重要:**确保每个文献只能引用一次,不要重复引用和多次引用**。如果需要文献,调用 tool
130+
8. 在文中需要引用文献时,直接在相关句子或段落后内联写入完整的引用信息,格式如下:
131+
**示例格式:研究表明部分母亲存在轻度创伤后应激症状[^1]: Jayne Smart, Harriet Hiscock (2007). Early infant crying and sleeping problems: A pilot study of impact on parental well‐being and parent‐endorsed strategies for management.。**
132+
9. **每个文献引用都应该直接跟在相关内容后面,包含完整的文献信息。**
133+
10. **脚注编号从[^1]开始,在本次回复中按顺序递增。**
134+
11. **不要在文末单独列出参考文献,所有引用信息都直接内联在正文中。**
135+
11. For background and model introduction, you need to search the literature by calling tools search_papers.
136+
12. Respond in the same language as the user.
132137
"""
133138

134139

0 commit comments

Comments
 (0)