LoginSignup
4
8

More than 1 year has passed since last update.

ChatGPTを試してみた

Last updated at Posted at 2023-01-26

目次

  • 1.はじめに
  • 2.ChatGPTとは
  • 3.ChatGPTできること
  • 4.ChatGPTの始め方
  • 5.ChatGPTを試してみた
  • 6.制限事項
  • 7.まとめ

1. はじめに

プロンプトにチャットするだけで精度の高い回答が得られる。(Google検索のチャット版のイメージ?)かつ、その用途が幅広く、プログラムの作成デバック、音楽、おとぎ話、Excel/Google スプレッドシートの数式など様々な質問に対応できるツールがあるようなので、試してみたいと思います。

2. ChatGPTとは

ChatGPT ( Chat Generative Pre-trained Transformer )は、 2022 年 11 月にOpenAIによって開始されたチャットボットです。
https://en.wikipedia.org/wiki/ChatGPT#:~:text=ChatGPT%20%28Chat%20Generative%20Pre-trained%20Transformer%29%20is%20a%20chatbot,learning%29%20with%20both%20supervised%20and%20reinforcement%20learning%20techniques.

OpenAIのGPT-3.5ファミリーの言語モデルを基に構築されており、教師あり学習と強化学習の両方の手法で転移学習されている
https://ja.wikipedia.org/wiki/ChatGPT

3. ChatGPTできること

チャットボットの中心的な機能は人間の会話家を模倣することですが、ChatGPT は用途が広いです。たとえば、コンピューター プログラムを作成およびデバッグする機能があります。音楽、テレビ番組、おとぎ話、学生のエッセイを作成する。テストの質問に答える (テストによっては、平均的な人間の受験者よりも高いレベルの場合もあります)。[13]詩や歌詞を書くこと。[14] Linux システムをエミュレートするため。チャット ルーム全体をシミュレートします。三目並べのようなゲームをプレイする。ATMをシミュレートします。[15] ChatGPT のトレーニング データには、掲示板システムやPythonなどのインターネット現象やプログラミング言語に関するマニュアル ページと情報が含まれています。プログラミング言語。
Although the core function of a chatbot is to mimic a human conversationalist, ChatGPT is versatile. For example, it has the ability to write and debug computer programs; to compose music, teleplays, fairy tales, and student essays; to answer test questions (sometimes, depending on the test, at a level above the average human test-taker);[13] to write poetry and song lyrics;[14] to emulate a Linux system; to simulate an entire chat room; to play games like tic-tac-toe; and to simulate an ATM.[15] ChatGPT's training data includes man pages and information about Internet phenomena and programming languages, such as bulletin board systems and the Python programming language.[15]
https://en.wikipedia.org/wiki/ChatGPT#:~:text=ChatGPT%20%28Chat%20Generative%20Pre-trained%20Transformer%29%20is%20a%20chatbot,learning%29%20with%20both%20supervised%20and%20reinforcement%20learning%20techniques

4. ChatGPTの始め方

まずChatGPT公式サイトにてサインアップする必要があります。
2023/1/26時点では調査期間中のプレビュー期間中のため無料で利用できるようです。

During the research preview, usage of ChatGPT is free. Try it now at chat.openai.com.
https://openai.com/blog/chatgpt/

1.以下、ChatGPT 公式サイトへアクセス

2.TRY CHATGPTをクリック
image.png

3.アカウントがない方はSign upを選択
image.png

4.アカウント作成
Emailaddressでアカウント作成するか、Goggle or Microsoft Accountと連携できるようです。
以下の例ではEmailadressで作成します。
以降は画面の指示に従い進めていきます。
image.png
image.png
image.png
image.png
OpenAIよりメールが届きましたら、Verify email addressを選択します。
image.png
image.png
メールが確認されたらログインへ進みます
https://chat.openai.com/auth/login
image.png
image.png
image.png
image.png
image.png
image.png
まだプレビュー中であり外部からのフィードバックを得ること。安全対策を講じているがシステムが不正確、誤解を招く情報生成、攻撃的または偏ったコンテンツを生成することがあるがアドバイスをすることを目的としたことではない旨、理解する。
image.png
システム改善のため会話内容がAIトレーナーにみられることがある。
そのため機密情報は入力しないこと
image.png
特定の回答が得られない、役に立たない解答などあった場合はフィードバック共有してください。
image.png
チャットできる画面となりましたら利用できるようです。
image.png

5. ChatGPTを試してみた

ChatGPTとは何?30文字で説明して
image.png
AmazonEC2の制限事項を教えて
image.png
AzureVMの制限事項を教えて
image.png
AWSとAzureの違いを比較表で教えて
image.png
Pythonで四則演算の関数コードを作成して
image.png
東京の明日の天気を教えて
東京の天気予報サイトのURLを教えて
image.png
tomcat セッションレプリケーション手順を教えて
image.png
インフラエンジニアの需要はある?
image.png

6.制限事項

  • ChatGPT は、もっともらしく聞こえますが、不正確または無意味な回答を書くことがあります。この問題を修正することは困難です。(1) RL トレーニング中、現時点では信頼できる情報源がありません。(2) モデルをより慎重にトレーニングすると、正しく答えられる質問を拒否するようになります。(3)理想的な答えは、人間のデモンストレーターが知っていることではなく、モデルが知っていることに依存するため、教師付きトレーニングはモデルを誤解させます。
  • ChatGPT は、入力フレーズの微調整や、同じプロンプトの複数回の試行に敏感です。たとえば、質問の 1 つの言い回しが与えられた場合、モデルは答えを知らないと主張できますが、少し言い換えれば、正しく答えることができます。
  • 多くの場合、モデルは過度に冗長であり、OpenAI によってトレーニングされた言語モデルであると再度​​述べるなど、特定のフレーズを使いすぎています。これらの問題は、トレーニング データの偏り (トレーナーは、より包括的に見える長い回答を好む) と、よく知られた過度の最適化の問題から発生します。1 2
  • 理想的には、モデルは、ユーザーがあいまいなクエリを提供したときに明確な質問をします。代わりに、現在のモデルは通常、ユーザーが意図したものを推測します。
  • モデルが不適切な要求を拒否するように努めていますが、有害な指示に応答したり、偏った動作を示すことがあります。モデレーション APIを使用して、特定の種類の安全でないコンテンツを警告またはブロックしていますが、現時点では、いくつかの偽陰性と陽性があると予想されます。このシステムを改善するための継続的な作業を支援するために、ユーザーからのフィードバックを収集したいと考えています。

Limitations
ChatGPT sometimes writes plausible-sounding but incorrect or nonsensical answers. Fixing this issue is challenging, as: (1) during RL training, there’s currently no source of truth; (2) training the model to be more cautious causes it to decline questions that it can answer correctly; and (3) supervised training misleads the model because the ideal answer depends on what the model knows, rather than what the human demonstrator knows.
ChatGPT is sensitive to tweaks to the input phrasing or attempting the same prompt multiple times. For example, given one phrasing of a question, the model can claim to not know the answer, but given a slight rephrase, can answer correctly.
The model is often excessively verbose and overuses certain phrases, such as restating that it’s a language model trained by OpenAI. These issues arise from biases in the training data (trainers prefer longer answers that look more comprehensive) and well-known over-optimization issues.12
Ideally, the model would ask clarifying questions when the user provided an ambiguous query. Instead, our current models usually guess what the user intended.
While we’ve made efforts to make the model refuse inappropriate requests, it will sometimes respond to harmful instructions or exhibit biased behavior. We’re using the Moderation API to warn or block certain types of unsafe content, but we expect it to have some false negatives and positives for now. We’re eager to collect user feedback to aid our ongoing work to improve this system.
https://openai.com/blog/chatgpt/

7. まとめ

プレビュー段階の前提として
・概ね知りたい概要レベルであれば十分活用できそうですが、一部不正確な情報や詳細部分の回答までは厳しいようなので留意が必要。
・日本語の回答も対応しているようです。
・一部英語で返答があったり、Errorでチャットが継続不可などの事象もあり
・絵や図を描いたりなどはまだ対応していないようです。

【その他、参考情報】
・ChatGPT FAQ
https://help.openai.com/en/articles/6783457-chatgpt-faq

・ChatGPT-release-notes
https://help.openai.com/en/articles/6825453-chatgpt-release-notes

・OpenAI Discord
https://discord.com/invite/openai

※ChatGPT は、コンテンツ ポリシーに違反する可能性のあるプロンプトを拒否するロジックがあるようですが、使い方次第では悪用もできてしまうようです。(詳細はUS版wiki参照)

4
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
8