chatgpt场景5:锦上添花——改写内容-尊龙游戏旗舰厅官网

场景介绍

除了从 0 生成内容外,你也可以先给 ai 一段已经写好的内容,然后让 ai 对其进行修改,让 ai 帮你将内容改得更好。实际的场景有如:

  1. 翻译:将中文文档翻译成英文,亦或者将英文翻译成中文。关于翻译,我还想强调,像 chatgpt 除了能翻译人类的语言外,还能翻译编程语言,比如将 python 代码翻译成 haskell 代码。
  2. 修改:修改内容的语法,甄别内容里的错别字。
  3. 润色:润色文章,将内容改成另一种风格。

本章重点介绍下润色场景,下面这是个润色的例子。

prompt(内容来自维基百科):

please rewrite the following sentences to make them easier to understand.
openai is an american artificial intelligence (ai) research laboratory consisting of the non-profit openai incorporated (openai inc.) and its for-profit subsidiary corporation openai limited partnership (openai lp). openai conducts ai research with the declared intention of promoting and developing a friendly ai. openai systems run on the fifth most powerful supercomputer in the world.[5][6][7] the organization was founded in san francisco in 2015 by sam altman, reid hoffman, jessica livingston, elon musk, ilya sutskever, peter thiel and others,[8][1][9] who collectively pledged us$1 billion. musk resigned from the board in 2018 but remained a donor. microsoft provided openai lp with a $1 billion investment in 2019 and a second multi-year investment in january 2023, reported to be $10 billion.[10]

它的 output 是这样的:

openai is a research organization that focuses on artificial intelligence (ai). it has two parts: a non-profit called openai incorporated and a for-profit subsidiary called openai limited partnership. the organization's goal is to create ai that is friendly and beneficial to humans. openai uses one of the most powerful supercomputers in the world for its research. the organization was founded in san francisco in 2015 by a group of people who pledged a total of $1 billion, including sam altman, reid hoffman, jessica livingston, elon musk, ilya sutskever, and peter thiel. musk resigned from the board in 2018 but still supports the organization financially. in 2019, microsoft invested $1 billion in openai lp, and in january 2023, they made a second investment reported to be $10 billion.

技巧 4:增加 role(角色)或人物

前面提到的改写例子,我在 prompt 里加了 role 让其更易于阅读,这个优化方法是 ok 的。也很常用,比如你想将你写的 email 改得更商务,则只需要加 business 相关的词即可。

我再介绍一个更有效的技巧,就是在 prompt 里增加一些 role(角色)相关的内容,让 ai 生成的内容更符合你的需求。

比如还是上面那个 rewrite 的例子,我在例子前加入这样的一段话,我让 ai 假设自己是一个小学老师,并且很擅长将复杂的内容转变成 7、8 岁小朋友也能听懂的话,然后再改写这段话:

you are a primary school teacher who can explain complex content to a level that a 7 or 8 year old child can understand. please rewrite the following sentences to make them easier to understand:

output 就变成了下面这样。不管是用词,还是语法,看起来都更容易懂了。

openai is a place where people work on making computers really smart. it's like a lab where they do research to make computers do amazing things! they want the computers to be really friendly and helpful to people. they use one of the most powerful computers in the world to do this research. a bunch of really rich and smart people gave money to start this lab. one of them is elon musk, but he left in 2018. another really big company, microsoft, gave them a lot of money too.

另外除了增加角色外,还能让 ai 模拟某个人,比如让 ai 以 david foster wallace 的风格改写上述那段话:

imagine you are the famous writer david foster wallace, please rewrite this sentences.

output 是这样的:

as david foster wallace, i might rewrite these sentences to sound more like this:
openai is a lab that studies something called artificial intelligence, which is like when computers can do things that normally only humans can do. they have a big computer that's one of the most powerful in the world, and they're trying to make sure the ai they create is friendly and helpful. the lab was started in 2015 in a city called san francisco, and a bunch of important people gave them a lot of money to do their research. one of those people was elon musk, who stopped working there but still gives them money, and microsoft also gave them a lot of money recently.

未经允许不得转载:尊龙游戏旗舰厅官网 » chatgpt场景5:锦上添花——改写内容

分享到
网站地图