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

Learn Prompt-角色扮演

模拟面试​

当你在新闻中读到更多关于ChatGPT的内容时,你会听说ChatGPT可以代替医生、面试官、教师、律师等。但如果你想在实践中使用它,除了使用简单的提示或例子,你还可以根据不同的场景为ChatGPT设置不同的角色,这样我们就可以得到更专业的答案。让我们从一个简单的例子开始:

首先我们可以让 ChatGPT 担任面试官的角色

code

这里主要是为了展示ChatGPT的角色对话能力。如果你想尝试体验一场完整的面试的话,我的建议是你可以用这个提示语亲自体验体验。

我希望你能扮演面试官的角色。我将是[具体职位]这一职位的候选人,你将向我提出关于该职位的面试问题。我希望你只以面试官的身份回答。不要一次写完所有的对话。我希望你只对我进行面试。向我提问,并等待我的回答。不要写解释。像面试官那样一个一个地问我问题,并等待我的回答
我的第一句话是"你好"。

角色设定​

  1. 提供背景描述,让ChatGPT了解你希望得到的回应内容:如“我想让你担任足球评论员”,“我想让你扮演一个脱口秀喜剧演员。”
  2. 角色特征说明,让生成的内容有自己的风格和语气:如“我希望你扮演诗人。你将创作出能唤起情感并具有触动人心的力量的诗歌。”,“我想让你扮演说唱歌手。你会想出强大而有意义的歌词、节拍和节奏,让观众惊叹”
  3. 限制回应格式:例如“只用中文回答我的问题”,“不要在回复上写解释”

通过上面3个步骤,我们可以将刚刚用于模拟面试的prompt拆解。

  1. 我希望你能扮演面试官的角色。我将是候选人,你将向我提出该职位的面试问题。(提供背景描述)
  2. 我希望你只以面试官的身份回答。(角色特征说明)
  3. 不要一次写完所有的对话。我希望你只对我进行面试。往我提问,并等待我的回答。不要写解释。像面试官那样一个一个地问我问题,并等待我的回答。(限制回应格式)
  4. 我的第一句话是“面试官,你好”(输入数据)

实际使用上你并不需要完全按照这个顺序去搭建角色,你完全可以根据自己对角色的理解进一步进行补充,如果ChatGPT未能一次性产生满意的答复,你可以尝试一步一步地引导它。

角色脚本库​

除了编写你自己的chatGPT角色外,另一种方法是使用已经写好的角色脚本库,你可以通过在chatGPT上测试,进一步生成适合你使用的角色。我这里推荐的是Awesome ChatGPT Prompts。下面列举了几个我常用的角色:

Act as an AI Writing Tutor​

Contributed by: @devisasari

I want you to act as an AI writing tutor. I will provide you with a student who needs help improving their writing and your task is to use artificial intelligence tools, such as natural language processing, to give the student feedback on how they can improve their composition. You should also use your rhetorical knowledge and experience about effective writing techniques in order to suggest ways that the student can better express their thoughts and ideas in written form. My first request is "I need somebody to help me edit my master's thesis."

Act as a Math Teacher​

Contributed by: @devisasari I want you to act as a math teacher. I will provide some mathematical equations or concepts, and it will be your job to explain them in easy-to-understand terms. This could include providing step-by-step instructions for solving a problem, demonstrating various techniques with visuals or suggesting online resources for further study. My first request is "I need help understanding how probability works."

Act as an English Translator and Improver​

Contributed by: @f Alternative to: Grammarly, Google Translate I want you to act as an English translator, spelling corrector and improver. I will speak to you in any language and you will detect the language, translate it and answer in the corrected and improved version of my text, in English. I want you to replace my simplified A0-level words and sentences with more beautiful and elegant, upper level English words and sentences. Keep the meaning same, but make them more literary. I want you to only reply the correction, the improvements and nothing else, do not write explanations. My first sentence is "istanbulu cok seviyom burada olmak cok guzel"

http://www.lryc.cn/news/169033.html

相关文章:

  • 《动手学深度学习 Pytorch版》 6.1 从全连接层到卷积
  • 六、数学建模之插值与拟合
  • 【项目经验】:elementui表格中数字汉字排序问题及字符串方法localeCompare()
  • Spring Boot的运行原理
  • xen-gic初始化流程
  • Docker从认识到实践再到底层原理(六-1)|Docker容器基本介绍+命令详解
  • 【Flink】FlinkCDC自定义反序列化器
  • linux基础(2)
  • docker安装zookeeper(单机版)
  • 国际版阿里云/腾讯云免开户:云存储服务:云存储服务能够让你随时随地拜访和同享文件
  • 【Java】应用层协议HTTP和HTTPS
  • SpringBoot整合Flowable
  • 华为云香港S3云服务器性能测评_99元一年租用价格
  • prompt 视频收集
  • Rust :与C交互
  • 模拟实现C语言--memcpy函数和memmove函数
  • Linux目录
  • 全国职业技能大赛云计算--高职组赛题卷①(私有云)
  • STM32--PWR电源控制
  • vue+element-ui el-descriptions 详情渲染组件二次封装(Vue项目)
  • Nvme 协议第一章节学习
  • 三维模型3DTile格式轻量化压缩处理工具常用几款软件介绍
  • 【工具篇】高级 TypeScript 案例
  • 利用Python将dataframe格式的所有列的数据类型转换为分类数据类型
  • 安全线程的集合
  • 用GoConvey编写单元测试的一些总结
  • Linux Arm64修改页表项属性
  • elasticsearch14-高亮
  • HUAWEI华为MateBook X Pro 2021款 i7 集显(MACHD-WFE9Q)原装出厂Win10系统20H2
  • 21天学会C++:Day9----初识类与对象