5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Difyを用いたGPT-4oのチャットボット

Last updated at Posted at 2024-06-05

はじめに

今回は、Difyを用いたGPT-4oのチャットボットを作成した。
Difyは独自のアプリケーションを作成できる、生成型AIツールの開発プラットフォームである。
特徴としては下記のような点が挙げられる。
・直感的なインターフェースによって、プログラミング知識がない方でも簡単にアプリケーションを作成できる。
・GPT-4やClaude 3などの最先端のAIモデルが統合されており、ノーコードで質の高いアプリ開発が可能である。

・Dify

・参考文献

以下に、導入を示す。

導入

最初から作成をクリック
image.png

どのタイプのアプリを作成しますか?の質問に対し、「ワークフロー」を選択
アプリに適当な名前を付ける
アプリの説明を入力(任意)
作成する

image.png

開始を選択し、入力フィールドの+を選択

image.png

変数名は、inputを入力
最大長は、48を入力
image.png

開始ボタン横の+を選択し、LLMを選択

image.png

モデルは、gpt-4oを選択(事前に設定済)

image.png

SYSTEM欄に下記の画像のように入力

image.png

【補足】
{を入力すると変数が表示される
image.png

LLMボタン横の+を選択し、終了を選択

image.png

出力変数で、textを選択

image.png

実行を選択

image.png

実行結果

入力のinputに質問を入力し、結果を得ることができる
image.png
スクリーンショット 2024-06-05 113203.png

公開するを選択する
image.png

アプリを実行を選択
image.png

inputに質問を入力し、実行を選択すると、回答を得ることができる
image.png

まとめ

今回は、Difyを用いたGPT-4oのチャットボットを作成した。
今後は特定の機能に特化した専門性の高いチャットボットを作成していきたいと考えている。

5
3
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
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?