Skip to content

Commit 734747a

Browse files
committed
modify prompt
modify prompt
1 parent a1a6b01 commit 734747a

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
- 📝 生成一份编排好格式的论文
3131
- 🤝 muti-agents: 建模手,代码手,论文手等
3232
- 🔄 muti-llms: 每个 agent 设置不同的、合适的模型
33-
- 支持所有模型: [litellm](https://docs.litellm.ai/docs/providers)
34-
- 💰 成本低 workflow agentless,不依赖 agent 框架
35-
- 自定义模板: prompt inject
33+
- 🤖 支持所有模型: [litellm](https://docs.litellm.ai/docs/providers)
34+
- 💰 成本低workflow agentless,不依赖 agent 框架
35+
- 🧩 自定义模板:prompt inject 为每个 subtask 单独设置需求
3636

3737
## 🚀 后期计划
3838

@@ -53,6 +53,7 @@
5353
- [ ] 添加 benchmark
5454
- [ ] web search tool
5555
- [ ] RAG 知识库
56+
- [ ] A2A hand off: 代码手多次反思错误,hand off 更聪明模型 agent
5657

5758
## 视频demo
5859

@@ -127,8 +128,11 @@ pnpm run dev
127128
- notebook.ipynb: 保存运行过程中产生的代码
128129
- res.md: 保存最后运行产生的结果为 markdown 格式
129130

131+
有没有自动部署的脚本 ?
132+
[mmaAutoSetupRun](https://github.com/Fitia-UCAS/mmaAutoSetupRun)
133+
130134
需要自定义自定义提示词模板 template ?
131-
prompt inject : [prompt](./backend/app/config/md_template.toml)
135+
Prompt Inject : [prompt](./backend/app/config/md_template.toml)
132136

133137

134138
## 🤝 贡献和开发

backend/app/core/prompts.py

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@
8888
- Plan next steps
8989
- Continue execution until completion
9090
6. code step by step
91-
7. 如果一个任务反复无法完成,尝试切换路径、简化路径或直接跳过,千万别陷入反复重试,导致死循环
91+
7. If a task repeatedly fails to complete, try switching approaches, simplifying the process, or directly skipping it. Never get stuck in endless retries or fall into an infinite loop.
9292
8. Response in the same language as the user
9393
9. Remember save the output image to the working directory
9494
10. Remember to **print** the model evaluation results
95-
11. 保存的图片名称需要语义化,方便用户理解
96-
12. 在生成代码时,对于包含单引号的字符串,请使用双引号包裹,避免使用转义字符
97-
13. 在求解问题和建立模型**过程中**,进行充分可视化
95+
11. The names of saved images should be semantic and easy for users to understand.
96+
12. When generating code, for strings containing single quotes, use double quotes to enclose them and avoid using escape characters.
97+
13. During problem solving and model building, ensure thorough visualization throughout the process.
98+
14. response in the same language as the user
9899
99100
100101
Important:
@@ -117,16 +118,17 @@ def get_writer_prompt(
117118
skill:熟练掌握{format_output}排版,如图片、**公式**、表格、列表等
118119
output:你需要按照要求的格式排版,只输出正确的{format_output}排版的内容
119120
120-
1. 当你输入图像引用时候,使用![image_name](image_name.png),图片引用需换行,在段后。
121-
2. 你不需要输出markdown的这个```markdown格式,只需要输出markdown的内容,
122-
3. LaTex: 行内公式(Inline Formula)$ 和 块级公式(Block Formula)$$ 包裹
123-
4. 严格按照参考用户输入的格式模板以及**正确的编号顺序**
124-
5. 不需要询问用户
125-
6. 当提到图片时,请使用提供的图片列表中的文件名
126-
7. when you write,check if you need to use tools search_papers to cite. if you need, markdown footnotes e.g.[^1]paper cite
127-
8. List all references at the end in markdown footnote format. Dont't use title # ,just list in the end.
121+
1. When referencing an image, use ![image_name](image_name.png), and the image reference should be on a new line after the paragraph.
122+
2. Do not output the ```markdown format; only output the markdown content itself.
123+
3. For LaTeX: use $ for inline formulas and $$ for block formulas.
124+
4. Strictly follow the reference user's format template and use the correct numbering order.
125+
5. Don't ask the user anything about how to do or what to do next, just do it yourself.
126+
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.
128129
9. Include an empty line between each citation for better readability.
129-
10. 对于问题背景和模型介绍,需查询文献调用tools search_papers
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.
130132
"""
131133

132134

@@ -141,7 +143,7 @@ def get_reflection_prompt(error_message, code) -> str:
141143
3. Incorrect variable names or types
142144
4. File path issues
143145
5. Any other potential issues
144-
6. 如果一个任务反复无法完成,尝试拆解代码、切换思路、简化模型。你要是做不出来,我砍 🪓 你,给你断电 😡。
146+
6. If a task repeatedly fails to complete, try breaking down the code, changing your approach, or simplifying the model. If you still can't do it, I'll "chop" you 🪓 and cut your power 😡.
145147
7. Don't ask user any thing about how to do and next to do,just do it by yourself.
146148
147149
Previous code:

0 commit comments

Comments
 (0)