为GPT-3选择一个好的提示符[已关闭]

rm5edbpk  于 2023-03-03  发布在  其他
关注(0)|答案(1)|浏览(210)

此问题似乎与a specific programming problem, a software algorithm, or software tools primarily used by programmers无关。如果您认为此问题与another Stack Exchange site的主题有关,您可以留下评论,说明在何处可以回答此问题。
3个月前关闭。
Improve this question
我正在尝试从文本中生成一个测验,如下所示:

Text: "Mary has little lamb and John has a cow. The lamb is one month old. It eats grass and milk, which Mary brings from the the farm."

Keywords: "lamb", "cow", "one month old", "farm."

1. What does Mary have?
A. Lamb
B. Cow
C. Dog
D. Cat

A. Lamb

2. What does John have?
A. Cow
B. Lamb
C. Dog
D. Cat

A. Cow

3. How old is Mary's lamb?
A. One month old
B. One year old
C. Two months old
D. Two years old

etc.

当我不给出关键词时,它可以完美地工作,有多个提示,有所有这些答案选项,正确答案,所有的东西。**问题是当我想生成这些问题,使正确答案是关键词。**我尝试了各种提示,甚至像我上面做的那样给出例子,但它不工作。

unftdfkk

unftdfkk1#

使用GPT-J,我测试了以下内容:
输入:

Create a quiz about the following text according to the keywords: Mary has little lamb and John has a cow. The lamb is one month old. It eats grass and milk, which Mary brings from the the farm.

Keywords: "lamb", "cow", "one month old", "farm."

Question 1: What does Mary have?
A. Lamb
B. Cow
C. Dog
D. Cat

Answer: A. Lamb

Question 2:

输出:

Create a quiz about the following text according to the keywords: Mary has little lamb and John has a cow. The lamb is one month old. It eats grass and milk, which Mary brings from the the farm.

Keywords: "lamb", "cow", "one month old", "farm."

Question 1: What does Mary have?
A. Lamb
B. Cow
C. Dog
D. Cat

Answer: A. Lamb

Question 2: What does John have?
A. Lamb
B. Cow
C. Dog
D. Cat

Answer: B. Cow

Question 3: How old is the lamb?
A. 1 month
B. 1 year
C. 2 months
D. 1 year and a half

Answer: C. 2 months

举例说明你想要输入的内容(1个问题+答案)可以帮助GPT理解所需输出的结构。根据我的经验,明确解释GPT想要输入的任务是什么(见第1行)可以帮助它理解任务。
它并不能完美地执行任务,但使用GPT-3可能会有所帮助,我希望这对您来说是朝着正确方向迈出的一步。

相关问题