[GH-ISSUE #291] 是否应该避免使用系统提示? #221

Closed
opened 2026-10-26 21:17:08 +00:00 by bsakaguchi · 5 comments
Owner

Originally created by @shaoshu98 on GitHub (Feb 6, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/291

readme中这里指出需要避免使用系统提示,尽量使用用户提示:
Avoid adding a system prompt; all instructions should be contained within the user prompt.

但是官网上的提示库给的样例很多都是使用系统提示的:
SYSTEM | 你是一个中英文翻译专家,将用户输入的中文翻译成英文,或将用户输入的英文翻译成中文。对于非中文内容,它将提供中文翻译结果。用户可以向助手发送需要翻译的内容,助手会回答相应的翻译结果,并确保符合中文语言习惯,你可以调整语气和风格,并考虑到某些词语的文化内涵和地区差异。同时作为翻译家,需将原文翻译成具有信达雅标准的译文。"信" 即忠实于原文的内容与意图;"达" 意味着译文应通顺易懂,表达清晰;"雅" 则追求译文的文化审美和语言的优美。目标是创作出既忠于原作精神,又符合目标语言文化和读者审美的翻译。
USER | 牛顿第一定律:任何一个物体总是保持静止状态或者匀速直线运动状态,直到有作用在它上面的外力迫使它改变这种状态为止。 如果作用在物体上的合力为零,则物体保持匀速直线运动。 即物体的速度保持不变且加速度为零。

请问究竟是该使用用户提示,还是可以使用系统提示?

Originally created by @shaoshu98 on GitHub (Feb 6, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/291 readme中这里指出需要避免使用系统提示,尽量使用用户提示: Avoid adding a system prompt; all instructions should be contained within the user prompt. 但是官网上的提示库给的样例很多都是使用系统提示的: SYSTEM | 你是一个中英文翻译专家,将用户输入的中文翻译成英文,或将用户输入的英文翻译成中文。对于非中文内容,它将提供中文翻译结果。用户可以向助手发送需要翻译的内容,助手会回答相应的翻译结果,并确保符合中文语言习惯,你可以调整语气和风格,并考虑到某些词语的文化内涵和地区差异。同时作为翻译家,需将原文翻译成具有信达雅标准的译文。"信" 即忠实于原文的内容与意图;"达" 意味着译文应通顺易懂,表达清晰;"雅" 则追求译文的文化审美和语言的优美。目标是创作出既忠于原作精神,又符合目标语言文化和读者审美的翻译。 USER | 牛顿第一定律:任何一个物体总是保持静止状态或者匀速直线运动状态,直到有作用在它上面的外力迫使它改变这种状态为止。 如果作用在物体上的合力为零,则物体保持匀速直线运动。 即物体的速度保持不变且加速度为零。 请问究竟是该使用用户提示,还是可以使用系统提示?
bsakaguchi 2026-10-26 21:17:08 +00:00
Author
Owner

@Kenwwww commented on GitHub (Feb 10, 2025):

实测好像没啥明显区别

<!-- gh-comment-id:2646718002 --> @Kenwwww commented on GitHub (Feb 10, 2025): 实测好像没啥明显区别
Author
Owner

@planetroger2020 commented on GitHub (Feb 16, 2025):

官网的提示库?在哪里啊?

<!-- gh-comment-id:2661607468 --> @planetroger2020 commented on GitHub (Feb 16, 2025): 官网的提示库?在哪里啊?
Author
Owner

@xmx0632 commented on GitHub (Feb 16, 2025):

官网的提示库?在哪里啊?

https://api-docs.deepseek.com/zh-cn/prompt-library/

<!-- gh-comment-id:2661671868 --> @xmx0632 commented on GitHub (Feb 16, 2025): > 官网的提示库?在哪里啊? https://api-docs.deepseek.com/zh-cn/prompt-library/
Author
Owner

@github-actions[bot] commented on GitHub (Mar 30, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!

<!-- gh-comment-id:2764300207 --> @github-actions[bot] commented on GitHub (Mar 30, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
Author
Owner

@github-actions[bot] commented on GitHub (May 6, 2025):

false

<!-- gh-comment-id:2852806110 --> @github-actions[bot] commented on GitHub (May 6, 2025): false
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-R1#221
No description provided.