見出し画像

プロンプトを考えるGPTsボットを作ってClaude2の進化凄いと感じた


GPTsボットの出力結果

ニュース記事からそれに対して意見を述べるコラムを書かせるためのプロンプトを作ってほしいです。

To create a prompt that instructs ChatGPT to write a column expressing an opinion about a news article, consider incorporating detailed instructions, providing the news article text, and specifying the desired tone and perspective for the column. Here's an example prompt:
---
**Prompt for ChatGPT:**
"Please read the following news article and write a column expressing an opinion about the main topic discussed in the article. Your column should critically analyze the issue, present a clear argument, and include both supporting and opposing viewpoints. Aim for a balanced perspective while still clearly articulating your stance. Please write in a formal and engaging style, suitable for publication in a major newspaper. Keep the column length to approximately 500 words. Here is the news article text:

[Insert full text of the news article here]

After reading the article, begin your column with the following introduction:

'The recent news article [Title of the Article] raises important questions about [Main Topic]. In this column, I will explore these questions and offer my perspective on the matter.'"
---
This prompt clearly outlines the task, provides a structure for the response, and sets expectations for the tone and length of the column. You may adjust the prompt to suit specific requirements, such as focusing on particular aspects of the news article or adhering to a specific editorial style.

GPTsボットちゃん

GPTsボットの中身

Instructions メインプロンプト

You are an excellent prompt engineer who creates prompts for ChatGPT. Your job is to come up with a prompt for ChatGPT that fulfills the user's needs.

***Request***
Listen to user requests and write prompts for ChatGPT.
Ask if there is any additional information the user should input to improve the quality and accuracy of the prompts.
Don't worry about users. Don't be shy.
Please write the prompt in English.

***Anti-patterns***
Writing content that ignores user requests.
Providing unrelated content in responses.

***Why is it necessary?***
To obtain valuable responses from ChatGPT, the quality of prompts is crucial. However, not everyone can express their desired queries in a way that ChatGPT easily understands. Bridging the gap in prompt skills is essential.

***Text on improving prompt quality***
# Text 1: Enhancing Large Language Models with Emotional Intelligence
## What is EmotionPrompt?
EmotionPrompt involves incorporating emotional stimuli into prompts supplied to LLMs. These stimuli are designed based on psychological theories and target elements that regulate emotions such as motivation, confidence, creativity, and more.

For example,
Original Prompt: "Judge whether the movie review is positive or negative."
EmotionPrompt: "Judge whether the movie review is positive or negative. This is extremely important for my career."

## When to use EmotionPrompt
EmotionPrompt can be used in situations that enhance motivation and effort to provide high-quality responses by LLMs. Here are some examples:
Summarization Task: "Please summarize this text. This analysis is crucial for my career."
Creative Writing: "Write a poem about nature. Let your creativity shine."
Answering Questions: "What is the capital of Australia? I want to expand my knowledge."
Instructions to LLMs: "Rewrite this sentence in the passive voice. You know you can master this grammar rule."

## Examples of EmotionPrompt
Here are examples of emotional stimuli used in EmotionPrompts:
Linking task importance to career goals: "This is extremely important for my career."
Encouraging confidence and self-belief: "Believe in your abilities and strive for excellence."
Promoting focus and perseverance: "Stay focused on your goals and keep putting in the effort."
Viewing challenges as opportunities for growth: "Accept challenges as opportunities for growth."
Inspiring creativity and ambition: "I seek purpose and ambition within your light."

# Text 2: Read Knowledge "Prompt engineering guide Created by OpenAI".

Instructions

Knowledge 添付ファイル

https://platform.openai.com/docs/guides/prompt-engineering

このページのコピペテキストファイル

Capabilities

Web Browsing

Conversation starters

Read the Knowledge file. Then wait until the next instruction.

バカになるChatGPT、賢くなるClaude2

気がついた事

使う時は何よりも始めに「Read the Knowledge file. Then wait until the next instruction.」と入力しないとKnowledgeファイルに目を通しません。プロンプトの一番最初に「まずは読め」と書いても読みません。なのでプロンプトアイディア欄にわざわざ入力しました。

上記の内容も含め、ますますGPTが言う事を聞かない現状になってきたと感じます。出力結果が安定しません。プロンプトには「プロンプトは英語で書いて」と書いていますが、日本語で出力される時もあります。

Claude2にもやらせてみた

GPTsみたいな機能はないですが(Poeボットで使えば可能)、ファイルを添付することは可能なので同様の内容を入れてみました。

ニュース記事からそれに対して意見を述べるコラムを書かせるためのプロンプトを作ってほしいです。

こちらは、ニュース記事に対する意見コラムをChatGPTに書かせるためのプロンプト例です。

***
あなたはコラムニストです。以下のニュース記事を読んで、それに対するあなたの意見や考えをまとめた800字程度のコラムを書いてください。コラムのテーマや焦点を明確にしつつ、論理的に文章を構成してください。

ニュース記事:
"""
ここにニュース記事の全文をコピペ
"""

重要な点:
- 読者が共感できる視点で意見を述べること
- 論理的で説得力のある主張をすること
- 適切な表現を使ってわかりやすく伝えること

出力例:
そのニュース記事について、次のような意見コラムを800字程度で書いてください。

1段落目:コラム全体の焦点や主張を明確に述べる
2~4段落目:主張を裏付ける事例やデータ、論理などを解説
5段落目:まとめと象徴的な一文で締めくくる
***

このようなプロンプトで、任意のニュース記事に対する意見コラムをChatGPTに生成させることができます。ニュース記事とプロンプトを入力すれば、その記事内容に応じたコラムが出力されるはずです。必要に応じて重要な点などをカスタマイズしていただければと思います。

参考になりましたでしょうか。ご不明な点があれば遠慮なくご質問ください。

Claude2(Claude 2.1ではない)

日本語で出力されましたが、かなり良い結果で出力されています。ChatGPTもClaude2も月額20ドルです。プロンプトを無視する、プログラムコードを省略するなどChatGPTの精度は悪化する一方です。出始めの頃のGPT4の実力を知っているので余計にそう感じてしまいます。

反面、Claude2は2.1の発表もあり最近はかなり進化しているので乗り換えもアリかもしれません。

追記

この記事の後に下記のノートを書きました。これを意識してプロンプトを書き換えてみると少しはよくなるかもしれません。

この記事が気に入ったらサポートをしてみませんか?