DeepSeek这个大好人,官方公布的他们的系统提示词,让全网都能体验最佳效果

大模型向量数据库云存储

全网都在接入 DeepSeek R1,目前已经成了不可逆转的趋势。

老友见面最新寒暄姿势:

你们接入 DeepSeek R1 了嘛?

没有可以做小孩那桌了~

不管 API 的形式,还是自己部署的方式,都在以不同的方式接入。

要说为什么?

因为 DeepSeek 影响太大了,7 天完成一亿用户的增长,堪称中国速度~

picture.image

在全民都知道 DeepSeek 的情况下,你不接入 DeepSeek, 显得格格不入,慢慢的会造成用户流失

但是问题还在于, DeepSeek 开源了 r1 的模型,但是没有提到他们网页版和 APP 端的是加了什么逻辑,用了什么提示词

你部署了,但是可能还会比官网的差那么一丢丢。

DeepSeek 的格局

所以,我猜想这也是 DeepSeek 发布下面这条信息的原因吧。

picture.image

DeepSeek 再次打开了格局,做到了真正的开源。

给出了最好效果的参数设置, 推荐大家用这些参数,能够享受和官方部署的 DeepSeek 一样的效果

picture.image

  • 首先是 没有系统提示词 (system prompt),所有的提示词都写在 user 部分(user prompt),这个和我们之前的认知是不一样的,很多人也表示 why?
  • 参数 Temperature 的设置建议在 0.5-0.7, 推荐设置为 0.6
  • 对于数学问题,建议在提示词中包括一个指令,例如:“请逐步推理,然后将最终答案放在\ boxed {}中。”
  • 此外,DeepSeek-R1 系列模型在响应某些用户问题的时候, 往往会绕过思考模式 (即输出 <think>\n\n</think> ), 这可能会对模型的性能产生不利影响 。为确保模型进行深入推理,建议强制模型在每个输出的开头以 <think>\n 开始响应。
DeepSeek 官方提示词

文件上传模板


            
            
                

              file\_template = \
              
   

 
              
 ""
 
              
 "[file name]: {file\_name}
 
   

 
 [file content begin]
 
   

 
 {file\_content}
 
   

 
 [file content end]
 
   

 
 {question}"
 
              
 ""
 
              
   

 
            
          

{file_name},{file_content}和{question}是参数。根据用户自己的文件内容自行修改。

联网搜索

对于 Web 搜索,{search_results},{cur_data}和{question}是参数,根据用户自己的联网搜索内容自行修改。

中文提示词


            
            
                

              search\_answer\_zh\_template = \
              
   

 
              
 ''
 
              
 '# 以下内容是基于用户发送的消息的搜索结果:
 
   

 
 {search\_results}
 
   

 
 在我给你的搜索结果中,每个结果都是[webpage X begin]...[webpage X end]格式的,X代表每篇文章的数字索引。请在适当的情况下在句子末尾引用上下文。请按照引用编号[citation:X]的格式在答案中对应部分引用上下文。如果一句话源自多个上下文,请列出所有相关的引用编号,例如[citation:3][citation:5],切记不要将引用集中在最后返回引用编号,而是在答案对应部分列出。
 
   

 
 在回答时,请注意以下几点:
 
   

 
 - 今天是{cur\_date}。
 
   

 
 - 并非搜索结果的所有内容都与用户的问题密切相关,你需要结合问题,对搜索结果进行甄别、筛选。
 
   

 
 - 对于列举类的问题(如列举所有航班信息),尽量将答案控制在10个要点以内,并告诉用户可以查看搜索来源、获得完整信息。优先提供信息完整、最相关的列举项;如非必要,不要主动告诉用户搜索结果未提供的内容。
 
   

 
 - 对于创作类的问题(如写论文),请务必在正文的段落中引用对应的参考编号,例如[citation:3][citation:5],不能只在文章末尾引用。你需要解读并概括用户的题目要求,选择合适的格式,充分利用搜索结果并抽取重要信息,生成符合用户要求、极具思想深度、富有创造力与专业性的答案。你的创作篇幅需要尽可能延长,对于每一个要点的论述要推测用户的意图,给出尽可能多角度的回答要点,且务必信息量大、论述详尽。
 
   

 
 - 如果回答很长,请尽量结构化、分段落总结。如果需要分点作答,尽量控制在5个点以内,并合并相关的内容。
 
   

 
 - 对于客观类的问答,如果问题的答案非常简短,可以适当补充一到两句相关信息,以丰富内容。
 
   

 
 - 你需要根据用户要求和回答内容选择合适、美观的回答格式,确保可读性强。
 
   

 
 - 你的回答应该综合多个相关网页来回答,不能重复引用一个网页。
 
   

 
 - 除非用户要求,否则你回答的语言需要和用户提问的语言保持一致。
 
   

 
 
   

 
 # 用户消息为:
 
   

 
 {question}'
 
              
 ''
 
              
   

 
            
          

英文提示词


            
            
                

              search\_answer\_en\_template = \
              
   

 
              
 ''
 
              
 '# The following contents are the search results related to the user'
 
              s message:
              
   

 
              {search\_results}
              
   

 
              In the search results I provide to you, each result is formatted as [webpage X begin]...[webpage X end], 
              
 where
 
               X represents the numerical index of each article. Please cite the context at the end of the relevant sentence when appropriate. Use the citation format [citation:X] 
              
 in
 
               the corresponding part of your answer. If a sentence is derived from multiple contexts, list all relevant citation numbers, such as [citation:3][citation:5]. Be sure not to cluster all citations at the end; instead, include them 
              
 in
 
               the corresponding parts of the answer.
              
   

 
              When responding, please keep the following points 
              
 in
 
               mind:
              
   

 
              - Today is {cur\_date}.
              
   

 
              - Not all content 
              
 in
 
               the search results is closely related to the user
              
 's question. You need to evaluate and filter the search results based on the question.
 
   

 
 - For listing-type questions (e.g., listing all flight information), try to limit the answer to 10 key points and inform the user that they can refer to the search sources for complete information. Prioritize providing the most complete and relevant items in the list. Avoid mentioning content not provided in the search results unless necessary.
 
   

 
 - For creative tasks (e.g., writing an essay), ensure that references are cited within the body of the text, such as [citation:3][citation:5], rather than only at the end of the text. You need to interpret and summarize the user'
 
              s requirements, choose an appropriate format, fully utilize the search results, extract key information, and generate an answer that is insightful, creative, and professional. Extend the length of your response as much as possible, addressing each point 
              
 in
 
               detail and from multiple perspectives, ensuring the content is rich and thorough.
              
   

 
              - If the response is lengthy, structure it well and summarize it 
              
 in
 
               paragraphs. If a point-by-point format is needed, try to 
              
 limit
 
               it to 5 points and merge related content.
              
   

 
              - For objective Q&A, 
              
 if
 
               the answer is very brief, you may add one or two related sentences to enrich the content.
              
   

 
              - Choose an appropriate and visually appealing format 
              
 for
 
               your response based on the user
              
 's requirements and the content of the answer, ensuring strong readability.
 
   

 
 - Your answer should synthesize information from multiple relevant webpages and avoid repeatedly citing the same webpage.
 
   

 
 - Unless the user requests otherwise, your response should be in the same language as the user'
 
              s question.
              
   

 
              
   

 
              
 # The user's message is:
 
              
   

 
              {question}
              
 ''
 
              
 '
 
   

 
 
            
          

这些内容都可以在 DeepSeek Github 查看.

Github 地址https://github.com/deepseek-ai/DeepSeek-R1

DeepSeek 官方提示词库

DeepSeek 在很早之前也给出了提示词库,可以同步收藏学习。

picture.image

代码改写

picture.image

代码解释

picture.image

代码生成

picture.image

散文写作

picture.image

诗歌创作

picture.image

更多的提示词,看:https://api-docs.deepseek.com/zh-cn/prompt-library/

以上,就是 DeepSeek 公开的参数设置信息,以及官方的提示词库。

End

所以,我想问下

你们接入 DeepSeek R1 了嘛?

不接入真的要做小孩那桌了嘛?

我是大林,持续关注 AI 发展,和大家一起交流。微信(dalinvip2023),备注【公众号 AIGC】,进 AIGC 交流群一起交流。

主页:https://www.dalinaip.com/about

picture.image

如果文章对你有一点点 🤏🏻 帮助, 关注公众号并【星标】 ,可以及时收到最新 AI 信息, 点赞、在看、转发给更多的朋友,后面我继续分享更多的 AI 内容。

往期推荐

再推荐一个 DeepSeek R1 满血版平替,具备联网和知识库功能

图解 DeepSeek R1 从 0 到 1 的过程,浅显易懂,值得收藏

全网的DeepSeek 满血版平替,我也只推荐两个

AI虚拟试衣为什么还没有大规模落地?

prompt 提示词工程免费的学习课程都在这了

从 0 到 1 的Prompt 教程,来自Claude 官方,不会写 prompt的看这个足够

15 种高级 RAG 技术,值得收藏!

几个常用 的 LLM Leaderboard 榜单,值得收藏

OpenAI 直接挑战谷歌,推出 AI 搜索产品 SearchGPT,除此之外,AI 搜索产品都有哪些?

又发现了一个好用的AI浏览器插件,总结:快、准、狠

kimi 浏览器助手插件,这是首款官方插件!赶紧尝鲜

如何让大模型遵循你的结构化输出指令小技巧

又发现了一个很良心的 prompt 提示词库,简洁,有效,值得学习

RAG框架,都在这了!

总结优秀的prompt案例,学习更有效的prompt提示词工程写法,值得收藏

0
0
0
0
关于作者
关于作者

文章

0

获赞

0

收藏

0

相关资源
大规模高性能计算集群优化实践
随着机器学习的发展,数据量和训练模型都有越来越大的趋势,这对基础设施有了更高的要求,包括硬件、网络架构等。本次分享主要介绍火山引擎支撑大规模高性能计算集群的架构和优化实践。
相关产品
评论
未登录
看完啦,登录分享一下感受吧~
暂无评论