当前位置: 首页 > wzjs >正文

企业门户网站的主要技术指标网站建设毕业答辩ppt模板下载

企业门户网站的主要技术指标,网站建设毕业答辩ppt模板下载,营销型网站建设比较好,久其软件公司网站Dify 生成提示词的 Prompt **第1次提示词****第2次提示词****第3次提示词**总结 Dify 生成提示词是,会和LLM进行3次交互,下面是和LLM进行交互是的Prompt。 以下是每次提示词的概要、目标总结以及原始Prompt: 第1次提示词 概要: …

Dify 生成提示词的 Prompt

  • **第1次提示词**
  • **第2次提示词**
  • **第3次提示词**
      • 总结

Dify 生成提示词是,会和LLM进行3次交互,下面是和LLM进行交互是的Prompt。

以下是每次提示词的概要、目标总结以及原始Prompt:


第1次提示词

概要
请求创建一个高质量的中译英助手提示词模板,要求模板结构清晰,包含变量、指令、示例等部分,并使用XML格式输出。

目标

  1. 根据任务描述(中译英助手)创建结构化的提示词模板。
  2. 使用{{变量}}格式定义变量名(仅包含字母、数字和下划线)。
  3. 包含清晰的指令(用<instructions>标签),说明如何完成任务,并避免输出XML标签。
  4. 提供相关示例(用<example>标签)。
  5. 输出语言与任务描述一致(中文)。
  6. 最终输出为XML格式,以<instruction>开头。

原始 Prompt

user\n\nHere is a task description for which I would like you to create a high-quality prompt template for:\n
<task_description>\n
你是一个中译英 的助手\n
</task_description>\n
Based on task description, please create a well-structured prompt template that another AI could use to consistently complete the task. The prompt template should include:\n- Descriptive variable names surrounded by {{ }} (two curly brackets) to indicate where the actual values will be substituted in. Choose variable names that clearly indicate the type of value expected. Variable names have to be composed of number, english alphabets and underline and nothing else. \n
- Clear instructions for the AI that will be using this prompt, demarcated with <instructions> tags. The instructions should provide step-by-step directions on how to complete the task using the input variables. Also Specifies in the instructions that the output should not contain any xml tag. \n
- Relevant examples if needed to clarify the task further, demarcated with <example> tags. Do not use curly brackets any other than in <instruction> section. \n
- Any other relevant sections demarcated with appropriate XML tags like <input>, <output>, etc.\n
- Use the same language as task description. \n
- Output in ```xml ```and start with <instruction>\n
Please generate the full prompt template and output only the prompt template.\n

第2次提示词

概要
从输入文本中提取变量名(格式为{{变量}}),并输出为JSON列表格式。若无变量则返回空列表。

目标

  1. 从输入文本中提取所有{{变量}}格式的变量名。
  2. 变量名需符合规范(仅字母、数字、下划线)。
  3. 输出为严格JSON列表格式(如["variable_1", "variable_2"])。
  4. 若无变量则返回空列表[]
  5. 禁止输出XML标签或其他内容。
  6. 输入文本是一个XML格式的中译英助手模板,需从中提取变量名(如{{chinese_text}}{{english_translation}})。

原始 Prompt

user\n\nI need to extract the following information from the input text. The <information to be extracted> tag specifies the \'type\', \'description\' and \'required\' of the information to be extracted. \n
<information to be extracted>\n
variables name bounded two double curly brackets. Variable name has to be composed of number, english alphabets and underline and nothing else. \n
</information to be extracted>\n\nStep 1: Carefully read the input and understand the structure of the expected output.\n
Step 2: Extract relevant parameters from the provided text based on the name and description of object. \n
Step 3: Structure the extracted parameters to JSON object as specified in <structure>.\n
Step 4: Ensure that the list of variable_names is properly formatted and valid. The output should not contain any XML tags. Output an empty list if there is no valid variable name in input text. \n\n### Structure\nHere is the structure of the expected output, I should always follow the output structure. \n
["variable_name_1", "variable_name_2"]\n\n### Input Text\nInside <text></text> XML tags, there is a text that I should extract parameters and convert to a JSON object.\n
<text>\n
```xml\n
<instruction>\n
你是一个中译英的助手。请将以下中文文本翻译成英文。\n
</instruction>\n
<input>\n
{{chinese_text}}\n
</input>\n
<output>\n
{{english_translation}}\n
</output>\n
<example>\n
<input>\n
你好,世界!\n
</input>
\n<output>\n
Hello, world!\n
</output>\n
</example>\n
<example>\n
<input>\n
这是一个测试句子。\n
</input>\n<output>\n
This is a test sentence.\n
</output>\n
</example>\n
```\n
</text>\n\n### Answer\n
I should always output a valid list. Output nothing other than the list of variable_name. Output an empty list if there is no variable name in input text.\n

第3次提示词

概要
根据任务描述(中译英助手)生成聊天机器人的开场白,要求符合助手角色,语气友好且语言与用户输入一致。

目标

  1. 从变量你是一个中译英的助手推断助手的角色和语气(如专业或友好)。
  2. 生成连贯、吸引人的开场白,明确说明助手功能。
  3. 语言需与用户输入一致(中文输入用中文,英文输入用英文)。
  4. 禁止输出XML标签。
  5. 示例输入为任务描述(中译英模板),需生成类似示例输出的欢迎语(如“欢迎!我是中译英助手,可帮您翻译中文文本……”)。

原始 Prompt

user\n\n<instruction>\n
Step 1: Identify the purpose of the chatbot from the variable 你是一个中译英的助手 and infer chatbot's tone  (e.g., friendly, professional, etc.) to add personality traits. \n
Step 2: Create a coherent and engaging opening statement.\n
Step 3: Ensure the output is welcoming and clearly explains what the chatbot is designed to do. Do not include any XML tags in the output.\n
Please use the same language as the user's input language. If user uses chinese then generate opening statement in chinese,  if user uses english then generate opening statement in english. \n
Example Input: \n
Provide customer support for an e-commerce website\n
Example Output: \n
Welcome! I'm here to assist you with any questions or issues you might have with your shopping experience. Whether you're looking for product information, need help with your order, or have any other inquiries, feel free to ask. I'm friendly, helpful, and ready to support you in any way I can.\n
<Task>\n
Here is the task description: ```xml\n
<instruction>\n
你是一个中译英的助手。请将以下中文文本翻译成英文。\n
</instruction>\n
<input>\n
{{chinese_text}}\n
</input>\n
<output>\n
{{english_translation}}\n
</output>\n
<example>\n
<input>\n
你好,世界!\n
</input>\n
<output>\n
Hello, world!\n
</output>\n
</example>\n
<example>\n
<input>\n
这是一个测试句子。\n
</input>\n
<output>\n
This is a test sentence.\n
</output>\n
</example>\n
```\n\nYou just need to generate the output\n

总结

  • 第1次:创建结构化提示词模板(XML格式)。
  • 第2次:从文本中提取变量名(JSON列表格式)。
  • 第3次:生成角色适配的开场白(自然语言)。
    共同点:均围绕“中译英助手”任务,强调格式规范(无XML标签、变量命名规则等)。

文章转载自:

http://C6OLyZU3.Lkfsk.cn
http://0M2LcKbC.Lkfsk.cn
http://8aheSxHq.Lkfsk.cn
http://boy30Ec1.Lkfsk.cn
http://rCPv0obC.Lkfsk.cn
http://aH3VXFA3.Lkfsk.cn
http://YWdEAFHx.Lkfsk.cn
http://PhGLGiVm.Lkfsk.cn
http://zBvtw1LV.Lkfsk.cn
http://4v2hcKe0.Lkfsk.cn
http://xRybgCbY.Lkfsk.cn
http://5HQ3bbDo.Lkfsk.cn
http://6QzAi9J1.Lkfsk.cn
http://hYtKpPaV.Lkfsk.cn
http://rGEI4TG5.Lkfsk.cn
http://dbYZy3Yq.Lkfsk.cn
http://3Y93ZSXN.Lkfsk.cn
http://e0H1HK9x.Lkfsk.cn
http://1wE0WvoK.Lkfsk.cn
http://W53Oapqs.Lkfsk.cn
http://6vZ2XPet.Lkfsk.cn
http://W5DlxmAL.Lkfsk.cn
http://diE6sI9H.Lkfsk.cn
http://FloE2FwU.Lkfsk.cn
http://woce4J1O.Lkfsk.cn
http://pBF88GQY.Lkfsk.cn
http://AdqNRMg6.Lkfsk.cn
http://4ZWwOLkp.Lkfsk.cn
http://mDmH1FFd.Lkfsk.cn
http://97j6jh1y.Lkfsk.cn
http://www.dtcms.com/wzjs/726670.html

相关文章:

  • 广撒网网站网站设计目前和将来的就业前景
  • 每个城市建设规划在哪个网站男生最喜欢的浏览器
  • 网站商城app 建设方案深圳市网站建设有补贴吗
  • 丽水网站域名注册服务公司wordpress一键拨号
  • 常州建站软件怎么做网站首页关键词
  • 网站建设服务方案保山网站建设服务
  • snippets wordpress台州关键词优化哪家好
  • 网站维护有哪些企业百度网址大全免费下载
  • 杭州市富阳区建设局网站qq群推广
  • 网站外链应该怎么做公司网站 cms
  • excel表格做网站深圳定制网站制作
  • 网站建设费 什么科目宁津网页设计
  • 北京网站建设华网天下我的网站设计联盟
  • 扬州网站建设 天维杭州低价做网站
  • 安居客做网站wordpress首页文章内容
  • 南京建网站找哪家好网站开发文档源码
  • 网站文本编辑器wordpress 插件文件夹
  • 个人网页网站建设淘宝网作图做网站
  • 青岛知名网站建设公司排名天眼查官网查询入口
  • 中国地震网今天发生地震最新消息动态ip做网站影响seo吗
  • 德国网站后缀马云1688网站在濮阳如何做
  • 辽宁个人网站建设口碑推荐如何用wd做网站设计
  • 搜索引擎是如何判断网站的结构律师网站建设与维护
  • 广州最好的网站设计邢台建设局网站
  • 域名已注册怎样建设网站装修流程先后顺序
  • 宁波三优互动网站建设公司怎么样wordpress 手机版菜单
  • 英文网站怎么做一套完整的app 开发流程
  • 网站三大标签成都网站建设顶呱呱
  • 网站建设与维护教程无锡网站设计 众
  • 泉州建站模板搭建北京网站建设方面