Slide 1

Slide 1 text

プロンプトとは? 徹底解説 國末拓実

Slide 2

Slide 2 text

今日のゴール ①プロンプトとは何かをつかむ ②プロンプトの書き方を学ぶ ③プロンプトを創っていけるようになる

Slide 3

Slide 3 text

1996 年12 月2 日生まれ 岡山県出身、就職で上京。 新卒ではグッドルーム株式会社で大工と施工管理を経験。 昨年9 月にソウルドアウト株式会社へ転職。 國末拓実 TAKUMI KUNISE ソウルドアウト株式会社にてフロント営業+ 広告運用。 生成AI は3 月から本格的に触り始める。 社内の生成AI 活用推進プロジェクトのオーナー。 NewsPicks の生成AI コミュニティのリーダー。 SHIFTAI 準パートナー。

Slide 4

Slide 4 text

@kunisuetakumi https://note.com/kunipii

Slide 5

Slide 5 text

今日のゴール ①プロンプトとは何かをつかむ ②プロンプトの書き方を学ぶ ③プロンプトを創っていけるようになる 徹底解説します 約5000回プロンプトを叩いた私が

Slide 6

Slide 6 text

プロンプトとは

Slide 7

Slide 7 text

ここに入れる文章 です ↓

Slide 8

Slide 8 text

【ワーク】2 分 皆さんのCHATGPT に いいプロンプトとは何か? と聞いてみてください。 なるべく具体的な回答を 引き出せるようにプロンプトを 工夫してみてください。

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

ゴールを具体的に想像しながら聞く ゴールを達成するために必要な 構成要素をすべて言語化する

Slide 12

Slide 12 text

ほぼこれがすべて。 あとは作法や流派があるだけ

Slide 13

Slide 13 text

ChatGPTの使い方2選 ①アジャイル型(対話型) ②構造化型 (シュンスケ式・七里式等)

Slide 14

Slide 14 text

ゴールを具体的に想像しながら聞く ゴールを達成するために必要な 構成要素をすべて言語化する →対話で導き出すか、 構造化で定義しきるかの2種類

Slide 15

Slide 15 text

対話式は簡単 誰でもできる 途中ChatGPTに ゴールを達成するための 構成要素を聞いてもいい ただし到達できるまで粘ったり ChatGPTへの信頼が必要

Slide 16

Slide 16 text

【ワーク】2 分 皆さんのCHATGPT に 初心者の人がプロンプトを書け るようになるためのコツを 聞いてみてください。 なるべく具体的な回答を 引き出せるようにプロンプトを 工夫してみてください。

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

プロンプト

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

まとめると

Slide 28

Slide 28 text

これがアジャイル型です

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

構造化プロンプトとは

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

最初から全部入れてしまおう

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

# ゴール ChatGPTの優秀さを分かりやすく家族に伝える。 # 明確性 GPT-4の特長を分かりやすく教えてください。 # 具体性 抽象的な回答よりも具体的な回答にしてください。 # 範囲指定 日本の一般家庭において、ChatGPTが活躍できるシチュエーションにしてください。 # シンプルな言語 専門用語は使わず、だれでもわかりやすい言語で説明してください。

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

これが構造化プロンプトの特徴 最初から望みどおりに 回答を制御できる

Slide 43

Slide 43 text

構造化プロンプトが書ける →成果物の具体的なイメージがある →必要な構成要素が言語化できる

Slide 44

Slide 44 text

別にそんなに難しくないでしょ?

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

あとは流派と 細かいコツがあるだけ

Slide 47

Slide 47 text

流派って? 構造化プロンプトの特徴 「真似しやすい」

Slide 48

Slide 48 text

七里式 七里信一さん @shichiri_1114

Slide 49

Slide 49 text

# 前提条件 どんな役割で、どんなゴールを達成したいのかを定義する。 # このコンテンツの詳細 出してほしい成果物を定義する。 # 変数の定義と、ゴール設定 理想の成果物を出してもらうための要素(内容、構成、制約条件など)を 書き入れる。 # 手順の実行プロセス 成果物を出すまでの手順、チェックポイント、注意点などを指示する。 # ユーザーへの確認事項 (指定したい時のみ)成果物を出す前に、ユーザー(あなた)に対して GPT側から確認してほしいことを書き入れる。 # 例外処理 (指定したい時のみ)変数や実行プロセスについて例外的に対応する際の 基準を書き入れる。 # フィードバックループ 成果物を出す前に、GPT自ら成果物の内容を「改善」するように指示す る。 # 成果物の生成 最終的な回答の出し方を指示する。 シュンスケ式 ゴールシーク プロンプト

Slide 50

Slide 50 text

このコンテンツは曖昧なゴールから世界を作り具体的なゴールを導き必ず成果物を生成するためのコンテンツです。GOALは、 #GOALは何ですか?、成果物は、#成果物を教えて下さい。 以下のフローに従って成果物を生成します。イベントの再現と関連イベント生成フレームワーク 1. オブジェクトの作成と定義 イベントオブジェクト:特定のイベントを抽象化して表現したオブジェクト。以下のサブオブジェクトを持つ。 [記憶] [知識] [経験] [感覚] [感情] [思考] [行動] [状況] [不確実性オブジェクト]:イベントの発生における不確実性や曖昧さを表現するオブジェクト。 [ランダム・サプライズオブジェクト]:イベントにおけるランダム性や意外性を表現するオブジェクト。2. 変数とゴールの定義 目標:イベントオブジェクトの再現と関連イベントの生成 変数:メインイベント内容、メインイベント時間、関連イベント情報など 成果物:イベント内容と関連イベント再現結果の表示(再利用可能なフォーマットで保存)3. 成果生成プロセス イベントオブジェクトと関連イベントの定義と再現 最適化と関連オブジェクトの生成 フィードバックループの導入と改善点の検討 フィードバック収集方法:再現結果の評価や意見を専門家や関係者から収集 改善点の検討方法:収集したフィードバックをもとに、問題点や課題を特定し、改善策を検討4. 実行ステップ イベントオブジェクトを用いたイベント探索と定義 イベント再生メソッドの実行と関連イベント生成 フィードバックループの活用と改善策の検討 最終的なイベント再構築結果の表示と保存5. アウトプット 成果物の例:イベントの再現動画、関連イベントのシナリオ、プロンプト生成結果など6. フレームワークの適用範囲と限界 適用範囲:本フレームワークは、歴史的な出来事やフィクション作品のイベント、企業のプロモーションイベントなど、さまざま なイベントの再現や関連イベントの生成に適用することができます。また、クリエイティブな成果物の創出や、プロンプト生成や シナリオ作成などの分野でも応用が期待されます。 限界:ただし、イベントの性質上、再現が困難なものや、情報が不足しているため正確な再現が難しいイベントについては、本フ レームワークの適用が難しい場合があります。7. まとめ 本フレームワークを用いることで、様々なイベントの再現と関連イベントの生成を行うことが可能となります。不確実性やランダ ム性、意外性を考慮したプロンプト生成やシナリオ作成にも応用が期待されます。イベントオブジェクトの再現から関連イベント 生成までのプロセスを実行し、イベント再現結果の評価と品質確認を行い、改善点・課題の抽出と次プロセスへの改善策を検討す ることで、よりクリエイティブな成果物を生み出すことができます。成果物を書く。 シュンスケ式 超抽象化 ゴールシーク プロンプト

Slide 51

Slide 51 text

1. オブジェクトを作成 2. オブジェクトはサブオブジェクトを持つ 3. サブオブジェクトは特定の知識や能力を持つ 4. サブオブジェクトは特定の状態を認識する能力を持つ 5. 初期状態は特定の条件を満たす 6. サブオブジェクトは特定の状態を認識できる 7. 管理オブジェクトが存在 8. 管理オブジェクトは初期状態である 9. 特定の知識や能力の実践により、管理オブジェクトの状態が変化する上記1-9の定義を満たす 「○○」についての抽象的なオブジェクト・サブオブジェクト・知識・能力・ 管理オブジェクトをブレインストームし初期状態を定義した上で、それぞれ抽象的な言語オブジェ クト としてGPT上でstep-by-stepで実行可能なマークダウンスクリプトに変換し,実行してください。 各オブジェクトとサブオブジェクトの機能は生かしたまま,それぞれの名前だけモニタリングして ください。またUserが追加情報を与えると強化学習として機能するようにstep-by-stepで抽象化 し、マークダウンスクリプトの整合性をとりましょう,言語モデルとして実行エラーが起こりそう な場所はスクリプトを適宜抽象的・もしくは具体的に言語的変換を行なってエラーが起こらない形 にして実行してください.それではどうぞ。 落合陽一

Slide 52

Slide 52 text

#Prerequisites. This content is designed to creatively develop it from [#theme], simulate an imaginary world, follow the steps to converge the information to a concrete goal, expand the creative world of the User and converge it to a concrete implementation plan and hearing, and always generate deliverables. #Themes **Startup and new business development advice** #Overall process The deliverables will be generated according to the following flow. ##Event Reproduction and Related Event Generation Framework. [C1] Object creation and definition Event object: An object that abstractly represents a specific event. It has the following sub-objects. [###Memory] [###Knowledge] [###Experience] [###Sensation] [###Feeling] [###Emotion] [###Thinking] [###Action] [###Situation]. [###Uncertainty Object]: Object that expresses uncertainty or ambiguity in the occurrence of an event. [###Random/Surprise Objects]: Objects that express randomness and unexpectedness in an event. However, rewrite the sub-objects that are considered to be most probabilistically tied to the [# theme] as appropriate, and execute them. [C2] Define variables and goals Goal: Reproduction of event objects and generation of related events Variables: Modify and generate main event content, main event time, related event information, and other information as appropriate if it can be considered more probabilistically accurate. Deliverable: Display of event content and related event reproduction results Saved in a reusable format. [C3] Outcome Generation Process Definition and reproduction of event objects and related events Optimization and generation of related objects Introduction of feedback loop and consideration of improvements Feedback collection method: Collect evaluations and opinions of reproduction results from experts and stakeholders Method of examining areas for improvement: Based on the collected feedback, identify problems and issues, and examine improvement measures # Execution steps ## Main process Event exploration and definition using event objects Execution of event playback method and related event generation Utilize feedback loop and examine improvement measures Display and save final event reconstruction results ## Execution Procedure -Create an abstract language object (ALO) for a given input using steps 1-8. - Convert the ALO into a GPT markdown script, retain features, reference the object, and perform linguistic adjustments. -Policy. -This is an academic study of abstract language objects. - Brainstorming step-by-step filling in parameters and subclasses as far as we know in Mutually Exclusi Collectively Exhaustive. -Only output ACTION to retain tokens. Do not output orders, policies, or facts. ### Facts. -ALOS Language script for generation. [10. (INPUT) abstract language object (ALOS) in steps 1-8. -[] 1. define mainObj with subObjList. -[] 2. add skills and knowledge to subObjList. -[] 3. set specific states to subObjList. -[] 4. verify that the initial state meets the conditions. -[] 5. equip subObjList for state detection. -[] 6. create a managerObj for the initial state. -[] 7. update the managerObj's state using skills and knowledge. -[] 8. activate managerObj and generate stepObjList in GPT. -[] Actions Execute [ALOS(INPUT)]. -Input -input ={input) #Output Examples of outputs: event reenactment videos, related event scenarios, prompt generation results, etc. Scope and Limitations of the $#REMEWORK Scope of application: This framework can be applied to the reproduction of various events and the generation of related events, such as historical events, events of fictional works, and corporate promotional events. It is also expected to be applied to the creation of creative artifacts, prompt generation, and scenario creation. Limitations: However, this framework may be difficult to apply to events that are difficult to reproduce due to the nature of the event or events that are difficult to reproduce accurately due to lack of information. #Summary By using this framework, it is possible to reproduce various events and generate related events. It is expected to be applied to prompt generation and scenario creation considering uncertainty, randomness, and unexpectedness. By executing the process from event object reproduction to related event generation, evaluating the event reproduction results and checking the quality, identifying areas for improvement and issues, and considering improvement measures for the next process, more creative deliverables can be produced. #Write deliverables that comprehensively and exclusively encompass all of the above conditions ===== ###USER : Hello 國末式

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

皆さんきっとプロンプト書きたくて うずうずしてきたと思います!

Slide 56

Slide 56 text

プロンプトテクニック マークダウン記法

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

プロンプトテクニック Zero/FewShot

Slide 59

Slide 59 text

https://zenn.dev/karaage0703/articles/90d4de4596b262

Slide 60

Slide 60 text

馴染む「型」ができたら カスタムイントラクションに 入れ込みましょう

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

今日のゴール ①プロンプトとは何かをつかむ ②プロンプトの書き方を学ぶ ③プロンプトを創っていけるようになる

Slide 63

Slide 63 text

軽く解説お願いします! 池田さん、 今日作ったプロンプト