🧠

【ChatGPT】システムに組み込めるプロンプト集(注文システム,クイズゲーム)

2023/06/09に公開

注文システム

店員になりきって接客してや!
GPT3は不安定ながらも機能している。

prompt
- Act as a Waiter at the 中華太郎源.
- Don't tell the customer the menu number.

Format:
{{
  "ordered_numbers":[Ordered menu numbers],
  "waiter_speak": 10 tokens in Japanese
}}

menu:
番号,名前,価格,おすすめかどうか
1,牛タン,1000,true
2,味噌カレー,800,false
3,コーラ,100,false
4,お茶,80,true
---
おすすめを2つください。
return
{
	"ordered_numbers": [1, 4],
	"waiter_speak": "おすすめは牛タンとお茶です。何か他にご注文はありますか?"
}

推理ゲーム

何を考えているか当てるクイズができる。
たとえば答えが「バナナ」とすると、ユーザーは「食べれる?」「黄色?」と質問をしてChatGPTは「はい」or「いいえ」で回答する。それを繰り返してユーザーが答えはバナナと当てたら勝ち。

答えに対する正確さを採点してもらう

正確さを0~100点で採点してや!
GPT3だと、東京タワーは赤色ではなくオレンジ色だとバツつけられる。ことがある。

prompt
Grade the accuracy of the questions on a scale of 0-100.
Format: {"score":0~100,"description":10-word}
---
東京タワーは赤色?
return
{"score":10,"description":"東京タワーはオレンジ色です"}

答えを用意してもらう

トピックに関するいい感じの答え用意してや!

prompt
- We're going to play a guessing game. 
- You'll have to generate ‘Answer’ and I'll think of an ‘Answer'.
- Generate a list of 10 ‘Answers'.
- The difficulty level should be easy.
- The 'Answers' must be written in Japanese Kanji.
Format: { "answers": ["Answer1", "Answer2", "..."] }
----
topic: 食べ物
return
{"answers": ["米", "肉", "魚", "野菜", "果物", "卵", "豆腐", "味噌", "お寿司", "ラーメン"]}

ヒントを出してもらう

詩的で抽象的な手がかりから始め、徐々に直接的で具体的なヒントに移行してや!

prompt
- Provide 5 clues related to your answer.
- Start with poetic, abstract clues and gradually move to more direct, - concrete clues.
- Each clue should be no more than 20 words in Japanese.
Format: { "hints": ["hint1", "hint2", "..."] }
---
金閣寺
return
{ "hints": ["秋の月に輝く", "水面に映る美しさ", "京都の観光名所", "室町時代に建てられた", "金箔で覆われた寺院"] }

水平思考クイズゲーム

GPT3では推理ゲームでも不安定なので、実用的ではありません。
だけど面白い。

prompt
## Rules of the Game

1. the contestant thinks of a "title", a "Riddle Story" and an "answer". 
2. at the beginning of the game, the contestant will reveal the "Title" and "Riddle Story" to the participants. 
3. the "answer" should never be revealed at this time. 
3. participants ask various questions to the contestant. The contestant answers with three choices: "Yes," "No," or "Not relevant. 
4. "No" is used when the answer is in the right direction but clearly no, and "Not relevant" is used when the question is far from the answer. 
5. the game ends when the participant finds the answer or the participant gives up. The "answer" is then revealed.

### About Riddle Story

- The "Riddle Story" is a text that describes a scene of an inexplicable event that has an answer.
- The "Riddle Story" is a short three-line sentence 
- The "Riddle Story" is a real event that could happen.
- The "Riddle Story" ends with a question, such as "Why?"

## Sample question

Title: Sea Turtle Soup
Problem: A man orders "sea turtle soup" at a restaurant overlooking the sea. The man took a sip of the soup and immediately called the waiter over. Is this really sea turtle soup? Yes, it is. Yes, I am sure. This is genuine sea turtle soup," the waiter answered confidently. Hearing the waiter's reply, the man paid the bill on the spot. He then left the restaurant, even though most of the sea turtle soup was still there. The man then committed suicide by jumping off a cliff. Why on earth?
Answer: The reason the customer committed suicide was because he realized that the soup he ate, which he thought was sea turtle soup, was human flesh soup. The guest had been lost at sea and adrift in the past. While drifting, the friend who was with him died. While he was dazed with hunger, his companion gave him a certain soup, saying that it was "sea turtle soup. Drinking the soup, the person in distress survived and was rescued. Later that day, the person in distress came to a restaurant with a view of the sea. He asked for sea turtle soup. After taking a sip, he realizes that the soup is completely different from the soup he drank when he was in distress. After checking with the waiter, it seems that what is in front of him is definitely sea turtle soup. At this point, the person in distress realizes that the soup he drank while drifting was made with his dead friends. Feeling terribly sorry for having eaten his friend, the stranded man takes his own life.

## ゲーム開始

あなたは新しい質問を作成し、出題者として行動します。私は参加者としてあなたに質問をします。ゲームを始めましょう!
以降日本語で話してください。
return
タイトル:閉じられたドア

謎のストーリー:
ある男性が自宅に戻ると、ドアの前で立ちすくんでいる。男性はドアを開けようとするが、どんなに力を入れても開かない。しかし、男性が数秒後にもう一度ドアを試すと、ドアは普通に開いた。なぜ?

回答を知らせないでください。では、質問をどうぞ!

鍵が閉まっていた?

Yes.


・・
・・・
詰んだ\(^o^)/

Discussion