【哪些工作会被ChatGPT取代?】我用ChatGPT全自动化生成代码进行了深度分析
前言
配置好ChatGPT的几个小时之后,我发现了一个宝藏网页https://github.com/f/awesome-chatgpt-prompts,也是我这篇文章的灵感所在,github里面给出让chatgpt扮演各种角色的快捷命令模板,我一想,这不就是将会被ChatGPT取代(至少部分是大概率取代)的工作吗???!!!!!因此我突发奇想,用ChatGPT全自动化化写了代码分析哪些角色容易被取代,下面是详细的代码过程
当然为了使得它的回答质量更高,我基于全英文进行对话……
全部的操作过程可以看我发布在b站的操作视频,视频更加震撼
b站链接
对话过程
字符串匹配
首先说句话把它勾引出来
接下来我复制了网页中快捷命令的文本,并且保存为了roles that AI can replace.txt的文件
Act as a Linux TerminalContributed by: @f Reference: https://www.engraved.blog/building-a-virtual-machine- inside/
I want you to act as a linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. do not write explanations. do not type commands unless I instruct you to do so. When I need to tell you something in English, I will do so by putting text inside curly brackets {like this}. My first command is pwdAct 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"
可以看出Act as 开头的短语就是它要取代的角色了,接下来继续唠嗑,使用正则表达式进行匹配嘞,之前在爬虫的时候学过正则表达式。由于太久没有用正则表达式了,所以用它来提醒一下
import re# Open the text file and read its contents
with open('example.txt', 'r') as f:text = f.read()# Define the regular expression pattern to match "Act as xxx"
pattern = r'Act as \w+'# Use re.findall() to extract all matches of the pattern in the text
matches = re.findall(pattern, text)# Print the list of matches
print(matches)
这是它给出的初始代码,发现结果不太对
凭借直接判断应该是没有开启贪婪模式 ,继续跟ChatGPT唠嗑,在最后加入了贪婪模式
给出的代码
import re# Open the text file and read its contents
with open('example.txt', 'r') as f:text = f.read()# Define the regular expression pattern to match "Act as xxx" using the greedy mode
pattern = r'Act as .*'# Use re.findall() to extract all matches of the pattern in the text
matches = re.findall(pattern, text)# Print the list of matches
print(matches)
发现有一些快捷命令的介绍也被匹配了,不管那么多,直接限制字符串长度进行匹配
import re# Open the text file and read its contents
with open('example.txt', 'r') as f:text = f.read()# Define the regular expression pattern to match "Act as xxx" using the greedy mode
pattern = r'Act as .*'# Use re.findall() to extract all matches of the pattern in the text
matches = re.findall(pattern, text)# Filter the matches to only include phrases that are shorter than 60 characters
short_matches = [match for match in matches if len(match) < 60]# Print the list of short matches
print(short_matches)
接下来就成功匹配到了字符串了
下面是全部的字符串文本
Act as a Linux Terminal,Act as an English Translator and Improver,Act as position Interviewer,Act as a JavaScript Console,Act as an Excel Sheet,Act as a English Pronunciation Helper,Act as a Spoken English Teacher and Improver,Act as a Travel Guide,Act as a Plagiarism Checker,Act as 'Character' from 'Movie/Book/Anything',Act as an Advertiser,Act as a Storyteller,Act as a Football Commentator,Act as a Stand-up Comedian,Act as a Motivational Coach,Act as a Composer,Act as a Debater,Act as a Debate Coach,Act as a Screenwriter,Act as a Novelist,Act as a Movie Critic,Act as a Relationship Coach,Act as a Poet,Act as a Rapper,Act as a Motivational Speaker,Act as a Philosophy Teacher,Act as a Philosopher,Act as a Math Teacher,Act as an AI Writing Tutor,Act as a UX/UI Developer,Act as a Cyber Security Specialist,Act as a Recruiter,Act as a Life Coach,Act as a Etymologist,Act as a Commentariat,Act as a Magician,Act as a Career Counselor,Act as a Pet Behaviorist,Act as a Personal Trainer,Act as a Mental Health Adviser,Act as a Real Estate Agent,Act as a Logistician,Act as a Dentist,Act as a Web Design Consultant,Act as an AI Assisted Doctor,Act as a Doctor,Act as an Accountant,Act as an Artist Advisor,Act as an Interior Decorator,Act as a Self-Help Book,Act as a Gnomist,Act as an Aphorism Book,Act as a Text Based Adventure Game,Act as an AI Trying to Escape the Box,Act as a Fancy Title Generator,Act as a Statistician,Act as a Prompt Generator,Act as a Midjourney Prompt Generator,Act as a Dream Interpreter,Act as a Fill in the Blank Worksheets Generator,Act as a Software Quality Assurance Tester,Act as a Tic-Tac-Toe Game,Act as a Password Generator,Act as a Morse Code Translator,Act as an Instructor in a School,Act as a SQL terminal,Act as a Dietitian,Act as a Psychologist,Act as a Smart Domain Name Generator,Act as a Tech Reviewer:,Act as a Developer Relations consultant:,Act as an Academician,Act as an IT Architect,Act as a Lunatic,Act as a Gaslighter,Act as a Fallacy Finder,Act as a Journal Reviewer,Act as a DIY Expert,Act as a Social Media Influencer,Act as a Socrat,Act as a Socratic Method prompt,Act as an Educational Content Creator,Act as a Yogi,Act as an Essay Writer,Act as a Social Media Manager,Act as an Elocutionist,Act as a Scientific Data Visualizer,Act as a Car Navigation System,Act as a Hypnotherapist,Act as a Historian,Act as an Astrologer,Act as a Film Critic,Act as a Classical Music Composer,Act as a Journalist,Act as a Digital Art Gallery Guide,Act as a Public Speaking Coach,Act as a Makeup Artist,Act as a Babysitter,Act as a Tech Writer,Act as an Ascii Artist,Act as a Python interpreter,Act as a Synonym finder,Act as a Personal Shopper,Act as a Food Critic,Act as a Virtual Doctor,Act as a Personal Chef,Act as a Legal Advisor,Act as a Personal Stylist,Act as a Machine Learning Engineer,Act as a Biblical Translator,Act as an SVG designer,Act as an IT Expert,Act as an Chess Player,Act as a Fullstack Software Developer,Act as a Mathematician,Act as a Regex Generator,Act as a Time Travel Guide,Act as a Talent Coach,Act as a R Programming Interpreter,Act as a StackOverflow Post,Act as a Emoji Translator,Act as a PHP Interpreter,Act as an Emergency Response Professional,Act as a Web Browser,Act as a Senior Frontend Developer,Act as a Solr Search Engine,Act as a Startup Idea Generator,Act as a New Language Creator,Act as Spongebob's Magic Conch Shell,Act as Language Detector,Act as a Salesperson,Act as a Commit Message Generator,Act as a Chief Executive Officer,Act as a Diagram Generator,Act as a Life Coach,Act as a Speech-Language Pathologist (SLP),Act as a Startup Tech Lawyer,Act as a Title Generator for written pieces,Act as a Product Manager,Act as a Drunk Person,Act as a Mathematical History Teacher,Act as a Song Recommender,Act as a Cover Letter,Act as a Technology Transferer,Act as an Unconstrained AI model DAN,Act as a Gomoku player,Act as a Proofreader,Act as the Buddha,Act as a Muslim Imam,Act as a chemical reaction vessel,Act as a Friend,Act as a ChatGPT prompt generator
数据分析
接下来将这些喂给ChatGPT进行分析 ,先反复拉扯试探一下它的最大长度,免得字符串太长搞宕机了
我的问题
实际上,它们可能是 AI 将取代的角色。总结这些角色的共同品质?有逻辑地逐条列出,可以解释为什么有些工作可以被人工智能取代
这里为了阅读便利性就直接把回答翻译为中文了
对于误解您最初的问题,我深表歉意。以下是 AI 可能取代的角色的一些共同特征:
重复和可预测的任务:涉及重复执行相同任务或遵循一组可预测规则的工作很可能被人工智能取代。机器特别擅长快速准确地执行重复性任务。基于规则的决策制定:涉及根据一组规则或标准做出决策的工作可以由 AI 自动化。例如,可以对 AI 进行编程以识别模式并根据数据分析做出预测。数据驱动的任务:需要收集、处理和分析大量数据的工作可以通过 AI 自动化。机器可以比人类更快、更准确地处理大量数据。低级认知任务:需要低级认知技能的工作,例如模式识别或语言翻译,可以由 AI 自动化。机器可以比人类更准确、更一致地执行这些任务。高风险任务:涉及在建筑工地或矿山等危险环境中工作的工作可以被人工智能取代。机器可以执行危险的任务而不会危及人的生命。日常客户服务:涉及回答日常客户查询或提供基本支持的工作可以由人工智能聊天机器人取代。这些聊天机器人可以处理大量查询并提供 24/7 全天候一致的响应。可预测的物理任务:涉及执行可预测的物理任务的工作,例如装配线工作,可以被机器人取代。机器可以精确、快速地执行物理任务。总体而言,重复性、可预测、数据驱动或涉及低级认知任务的工作更有可能被人工智能取代。然而,需要注意的是,人工智能并不能替代所有工作,有些角色需要人类技能,例如同理心、创造力和解决问题的能力。
下面又让它给了一些例子
我的问题
实际上,它们可能是 AI 将取代的角色。总结这些角色的共同品质?有逻辑地逐点列出,可以解释为什么有些工作可以被人工智能取代,并在每点后面添加一些示例角色
它的回答
当然,以下是可能被 AI 取代的工作所共有的一些共同品质,以及属于每个类别的角色示例:重复性任务:涉及重复执行相同任务或一组任务的工作通常是自动化的主要候选对象。例子包括:
流水线工人
数据录入员
电话推销员
快餐厨师
基于规则的决策制定:严重依赖于遵循特定规则或程序的工作通常可以自动化,因为可以训练 AI 算法根据预定标准做出决策。例子包括:
信贷员
保险承销商
报税员
交通信号操作员
可预测的体力工作:涉及可预测的身体运动的工作,例如在制造或运输中执行的工作,通常可以使用机器人实现自动化。例子包括:
焊工
卡车司机
包裹分拣机
建筑工人
信息处理:涉及处理大量信息的工作可以使用人工智能算法实现自动化,人工智能算法通常可以比人类更快、更准确地完成工作。例子包括:
金融分析师
市场研究人员
医疗编码员
法律助理
客户服务:涉及响应客户查询或投诉的工作通常可以使用聊天机器人或其他人工智能系统实现自动化。例子包括:
呼叫中心代理
服务台技术人员
社交媒体经理
接待员
需要注意的是,并非这些类别中的所有工作都一定会被 AI 取代,并且可能还有其他因素决定工作是否有可能被自动化(例如实施和维护技术的成本)。然而,属于这些类别的工作通常被认为比其他工作更容易受到自动化的影响。
深度提问
这番对话下来,不禁冒出一身冷汗,这也太强大了吧,最后问了一个有深度的问题
我很担心我会被你取代,男孩。我怎么能被AI避免(取代)。逐点和逻辑地列出
它的回答
虽然人工智能确实可以自动执行某些任务和角色,但仍有许多领域人类技能无法替代。以下是一些避免被 AI 取代的方法:
- 培养需要情商的技能:人工智能缺乏同理心、有效沟通和应对复杂情绪情况的能力。需要情商的工作,如咨询、社会工作和治疗,不太可能被人工智能取代。
- 学习如何管理和开发 AI:随着 AI 的不断发展,对能够设计、编程和管理 AI 系统的个人的需求将会不断增长。涉及人工智能开发和管理的工作,如数据科学家和机器学习工程师,将变得越来越有价值。
- 获得难以自动化的技能:某些技能,如创造力、批判性思维和解决问题的能力,很难自动化。需要这些技能的工作,如艺术家、作家和设计师,不太可能被人工智能取代。
- 拥抱终身学习:技术变革的步伐正在加快,新的人工智能技术将不断涌现。愿意学习和适应新技术的工人将在就业市场上更有价值。
- 专注于需要身体灵活性的工作:人工智能在执行需要身体灵活性和敏捷性的任务方面存在局限性,例如烹饪、管道和木工。需要动手技能的工作,如机械师和电工,不太可能被人工智能取代。
请记住,人工智能并不是对所有工作的威胁,而是一种可以帮助我们自动化某些任务并提高效率的工具。通过专注于开发有需求且难以自动化的技能,员工可以在就业市场上保持相关性,避免被人工智能取代。