提示词(prompts)应当怎样编写
本帖最后由 aoyu321 于 2024-6-14 19:49 编辑仔细翻了翻,没在论坛看到 AI 相关的版块,所以把帖子发在了这里,如果不合规,还请管理看到后移到合适的位置。
想要开发一个英语学习的软件,想让ai帮忙生成学习数据。
我没有系统学习过提示词应该怎样编写。我写的提示词如下,但是对结果仍然不是很满意,所以想和坛友讨论一下看怎样可以改进。
比如这一条:
this one must have been in the possession of a private collector 短句 这只一定是属于一个私人收藏家 8
里面的 in the possession of 我想把它单独作为一条拿出来,就像这样:in the possession of短语 属于
提示词如下:
处理下面用```包围起来的英文文本。
请将该文本拆分为多个独立的、完整的句子,为每个句子分配一个序号,如1, 2, 3, ...,以此类推。
从这些句子中提取出小学以上水平的所有的单词、短语、短句。短语和断句的区别在于,短语不含动词,而短句包含动词。
创建一个表格,表格有4列:item, type, meaning, from。
表格的item列的内容包含从句子中提取出来的单词、短语、短句、完整的句子;
表格的type列的内容包含item列的内容的类型,可能的值是单词、短语、短句、句子;
表格的meaning列的内容包含item列的内容的中文翻译;
表格的from列的内容包含item列的内容来自的句子的序号。
排序表格的内容的时候,把每个句子及从其内部提取的内容排列在一起,按照“单词、短语、短句、句子”的顺序排列其内容,强制执行该规则。不要遗漏任何一个句子。
在输出中,除表格的内容之外,不要包含其他任何额外的文本。
下面是一个例子。
英文文本:
Pumas are large, cat-like animals which are found in America. When reports came into London Zoo that a wild puma had been spotted forty-five miles south of London, they were not taken seriously. However, as the evidence began to accumulate, experts from the Zoo felt obliged to investigate, for the descriptions given by people who claimed to have seen the puma were extraordinarily similar.
对应的表格:
|item|type|meaning|from|
|:----|:----|:----|:----|
|Pumas|单词|美洲狮|1|
|cat-like|单词|类似猫的|1|
|animals|单词|动物|1|
|which are found in America|短句|它被发现于美洲|1|
|Pumas are large|短句|美洲狮是大型的|1|
|Pumas are large, cat-like animals|短句|美洲狮是大型、类似猫的动物|1|
|Pumas are large, cat-like animals which are found in America.|句子|美洲狮是大型、类似猫的动物,发现于美洲。|1|
|When|单词|当|2|
|wild|单词|野生的|2|
|When reports came into London Zoo|短句|当报告进入伦敦动物园时|2|
|that a wild puma had been spotted|短句|一只野生美洲狮被发现了|2|
|that a wild puma had been spotted forty-five miles south of London|短句|一只野生美洲狮在伦敦以南四十五英里处被发现|2|
|they were not taken seriously|短句|他们没有认真对待|2|
|When reports came into London Zoo that a wild puma had been spotted forty-five miles south of London, they were not taken seriously.|句子|当伦敦动物园接到报告称在伦敦以南45英里处发现了一只野生美洲狮时,他们并没有重视。|2|
|evidence|单词|证据|3|
|as the evidence began to accumulate|短句|随着证据开始积累|3|
|experts from the Zoo|短语|动物园的专家|3|
|experts felt obliged to investigate|短句|专家感到有义务进行调查|3|
|the descriptions given by people who claimed to have seen the puma|短语|声称看到过那只美洲狮的人们提供的描述|3|
|extraordinarily similar|短语|非常相似|3|
|However, as the evidence began to accumulate, experts from the Zoo felt obliged to investigate, for the descriptions given by people who claimed to have seen the puma were extraordinarily similar.|句子|然而,随着证据开始积累,动物园的专家感到有义务进行调查,因为声称看到过那只美洲狮的人们提供的描述非常相似。|3|
```
The hunt for the puma began in a small village where a woman picking blackberries saw 'a large cat' only five yards away from her. It immediately ran away when she saw it, and experts confirmed that a puma will not attack a human being unless it is cornered. The search proved difficult, for the puma was often observed at one place in the morning and at another place twenty miles away in the evening. Wherever it went, it left behind it a trail of dead deer and small animals like rabbits. Paw prints were seen in a number of places and puma fur was found clinging to bushes. Several people complained of "cat-like noises' at night and a businessman on a fishing trip saw the puma up a tree. The experts were now fully convinced that the animal was a puma, but where had it come from? As no pumas had been reported missing from any zoo in the country, this one must have been in the possession of a private collector and somehow managed to escape. The hunt went on for several weeks, but the puma was not caught. It is disturbing to think that a dangerous wild animal is still at large in the quiet countryside.
```
Table:
gpt给出的结果:
https://i.111666.best/image/hNiZCfLBeoiBba2SvhrK03.png 最好截个图啥的,这排版看不懂。 这应该是markdown keen101 发表于 2024-6-14 19:16
最好截个图啥的,这排版看不懂。
抱歉,已经换成了图片 爱学习的孩子,我不爱学习,所以没法帮你,但必须给予表扬。 可以试试再规定下短语的长短和结构,或者让ai对某一段重新细分 对应的表格:
这一句下面的内容都是markdown。口算md5这些太离谱,但是无需工具手写,脑内解析md css,或者纯手打还是有可能的。不少比较新的程序默认编辑器就提供了md解析。
|就是表格的分隔符而下方的标记意思是引用。
能够比较快的以纯键盘编辑排版还过得去的文章。便于复制 你这个软件左边以按就出图了,还纠结什么。按照固定结构 翻译就行了 goblack 发表于 2024-6-15 03:04
对应的表格:
这一句下面的内容都是markdown。口算md5这些太离谱,但是无需工具手写,脑内解析md css,或 ...
为啥我每个字都认识,但是连起来就看不懂了???恶意刷经验吗? zooo 发表于 2024-6-15 12:51
你这个软件左边以按就出图了,还纠结什么。按照固定结构 翻译就行了
你的回复也是,为啥我每个字都认识,但是连起来就看不懂了???恶意刷经验吗?
页:
[1]
2