Slide 1

Slide 1 text

Generative, Volatile, Uncertain, Complex and Ambiguous — generated by Stable Diffusion XL v1.0 — AI 2024 3-4 I (WBS) 2024 3-4 I — 2024-04-22 – p.1/73

Slide 2

Slide 2 text

https://speakerdeck.com/ks91/collections/prompt-engineering-2024-spring 2024 3-4 I — 2024-04-22 – p.2/73

Slide 3

Slide 3 text

( ) 1 4 15 LLM • 2 4 15 • 3 4 22 I • 4 4 22 • 5 4 29 6 4 29 7 5 13 8 5 13 9 5 20 II 10 5 20 (1) 11 5 27 (2) 12 5 27 (3) 13 6 3 & 14 6 3 & W-IOI 2024 3-4 I — 2024-04-22 – p.3/73

Slide 4

Slide 4 text

( 20 ) 1 • 2 • 3 Discord & • 4 5 6 RPG 7 “September 12th” 8 9 10 ∼ 11 Linux (Windows )(Mac ) 12 Open Interpreter ∼ 13 14 AGI (Artificial General Intelligence) 7 (5/6 ) / (2 ) OK / 2024 3-4 I — 2024-04-22 – p.4/73

Slide 5

Slide 5 text

( ) LLM ( ) GPTs 2024 3-4 I — 2024-04-22 – p.5/73

Slide 6

Slide 6 text

I AI 2024 3-4 I — 2024-04-22 – p.6/73

Slide 7

Slide 7 text

2024 3-4 I — 2024-04-22 – p.7/73

Slide 8

Slide 8 text

1. (1) AI (2) 2024 4 18 ( ) 23:59 JST ( ) Waseda Moodle 2024 3-4 I — 2024-04-22 – p.8/73

Slide 9

Slide 9 text

. . . . . . 77(+2) 55(+1) (4/21( ) ) ( ) LLM GET 5 . . . 6 . . . ← · 1 . . . ( ) 2024 3-4 I — 2024-04-22 – p.9/73

Slide 10

Slide 10 text

T GPT 1 “ ” ⇒ LLM ( ) LLM 2024 3-4 I — 2024-04-22 – p.10/73

Slide 11

Slide 11 text

LLM (1/4) ਖ਼͘͠͸ʰथ໦๏ఊʹཱͭʱ 2024 3-4 I — 2024-04-22 – p.11/73

Slide 12

Slide 12 text

LLM (2/4) ਖ਼͘͠͸ʰ۲ࢗ͠ڭतʱ ਖ਼͘͠͸ࣄނ ( ) 2024 3-4 I — 2024-04-22 – p.12/73

Slide 13

Slide 13 text

( ) (1/2) 2024 3-4 I — 2024-04-22 – p.13/73

Slide 14

Slide 14 text

LLM (3/4) ແ͍ ੜ෺ֶऀ ࣮ ࡏ ͢ Δ ݚ ڀ ऀ ͳ Β ڪ ॖ ͩ ͕ ͍ ͔ ʹ ΋ ͳ ໊ લ ແ͍ ແ͍ . . . 2024 3-4 I — 2024-04-22 – p.14/73

Slide 15

Slide 15 text

LLM (4/4) ॻ͍͕֮ͨ͑ͳ͍ ͍΍࣮ࡏ͢Δ͚Ͳڞஶͯ͠ͳ͍ . . . 2024 3-4 I — 2024-04-22 – p.15/73

Slide 16

Slide 16 text

( ) (2/2) 2024 3-4 I — 2024-04-22 – p.16/73

Slide 17

Slide 17 text

×× . . . ⇒ 2024 3-4 I — 2024-04-22 – p.17/73

Slide 18

Slide 18 text

T MyGPT GPT Discord ⇒ instructions ( ) 2024 3-4 I — 2024-04-22 – p.18/73

Slide 19

Slide 19 text

U AI description ( ) instructions ( ) 2 AI ⇒ description ( ) description ( ) description ( ) OpenAI 2024 3-4 I — 2024-04-22 – p.19/73

Slide 20

Slide 20 text

2024 3-4 I — 2024-04-22 – p.20/73

Slide 21

Slide 21 text

instructions 2024 3-4 I — 2024-04-22 – p.21/73

Slide 22

Slide 22 text

(1/3) ( 3 ) ID ( id) (identifier ) . . . ( ) . . . AI ( AI) /chat ID (assistant_id) name ( ) . . . description ( ) . . . · name description instructions ( ) . . . tools ( ) . . . · Files ( ), Code Interpreter ( ) files ( ) . . . · Files (enable) 2024 3-4 I — 2024-04-22 – p.22/73

Slide 23

Slide 23 text

(2/3) ( 3 ) (assistant_id : asst_OUIhymbGuI1siXVaLs7evkaJ) ( /build ) /update ← (sandbox) Discord # ID (thread; ) ( 2 ) Discord Discord OpenAI OpenAI API thread_id /chat Discord 2024 3-4 I — 2024-04-22 – p.23/73

Slide 24

Slide 24 text

(3/3) ( 3 ) ( ) “/” (/build) (Create ) (/show, /list) (Read ) (/update) (Update ) (/delete) (Delete ) · CRUD (/chat) ( )( ) /build /chat /update /build 2024 3-4 I — 2024-04-22 – p.24/73

Slide 25

Slide 25 text

A ChatGPT ⇒ (1) ( ) RLHF (Reinforcement Learning from Human Feedback; ) (2) ( ) (2) 2024 3-4 I — 2024-04-22 – p.25/73

Slide 26

Slide 26 text

Y LLM AI ⇒ 2024 3-4 I — 2024-04-22 – p.26/73

Slide 27

Slide 27 text

H Discord GPT-4 GPT Builder ⇒ GPT Builder GPT-4 GPTs (gpt-discord-bot) GPTs ( ) · GPT Builder 2024 3-4 I — 2024-04-22 – p.27/73

Slide 28

Slide 28 text

K Discord ⇒ 2 2 ( ) ^^; 2024 3-4 I — 2024-04-22 – p.28/73

Slide 29

Slide 29 text

K GPT GPT GPT GPT ⇒ 2024 3-4 I — 2024-04-22 – p.29/73

Slide 30

Slide 30 text

S ChatGPT ⇒ GitHub : https://github.com/KeioAIConsortium/gpt-discord-bot : https://github.com/ks91/gpt-discord-bot ← ChatGPT (GPT OpenAI ) OpenAI assistant API 2024 3-4 I — 2024-04-22 – p.30/73

Slide 31

Slide 31 text

H GPT ⇒ general ( ) generative ( ) ( ) 2024 3-4 I — 2024-04-22 – p.31/73

Slide 32

Slide 32 text

F ChatGPT API Excel AI Python Python AI Python ⇒ LLM ( LLM ) AI 2024 3-4 I — 2024-04-22 – p.32/73

Slide 33

Slide 33 text

N LLM Claude3 Gemini GPT LLM ⇒ ( ) https://github.com/Mooler0410/LLMsPracticalGuide 2024 3-4 I — 2024-04-22 – p.33/73

Slide 34

Slide 34 text

K “ ” ⇒ LLM code interpreter 2024 3-4 I — 2024-04-22 – p.34/73

Slide 35

Slide 35 text

Y Discord ⇒ (tutor) ( ) (AI ) 2024 3-4 I — 2024-04-22 – p.35/73

Slide 36

Slide 36 text

I GTPs[ ] ⇒ ^^; GPTs Additional Settings “Use conversation data in your GPT to improve our models” OK “By default, OpenAI will not use data submitted by customers via our API to train OpenAI models or improve OpenAI’s service offering” “However, OpenAI will allow users to opt-in to share their data to improve model performance” OpenAI OpenAI OpenAI API OpenAI 2024 3-4 I — 2024-04-22 – p.36/73

Slide 37

Slide 37 text

S GPT ChatGPT OpenAI ChatGPT ChatGPT ChatGPT ChatGPT ⇒ 2024 3-4 I — 2024-04-22 – p.37/73

Slide 38

Slide 38 text

K Chat GPT GPT Generative Pre-trained Transformer Transformer ⇒ 2024 3-4 I — 2024-04-22 – p.38/73

Slide 39

Slide 39 text

I AI 2024 3-4 I — 2024-04-22 – p.39/73

Slide 40

Slide 40 text

◦◦ vs. ◦◦ 1,000 ( ) 500 16 +AI 2024 3-4 I — 2024-04-22 – p.40/73

Slide 41

Slide 41 text

(1) 1. (4-5 ) ( ) (20∼30 ) ( Discord ) ( ) ( ) 2024 3-4 I — 2024-04-22 – p.41/73

Slide 42

Slide 42 text

(2) 2. 2024 3-4 I — 2024-04-22 – p.42/73

Slide 43

Slide 43 text

(3) 3. 2024 3-4 I — 2024-04-22 – p.43/73

Slide 44

Slide 44 text

(4) 4. 4 2024 3-4 I — 2024-04-22 – p.44/73

Slide 45

Slide 45 text

( 1 ) (graceful stop) ∼ 2024 3-4 I — 2024-04-22 – p.45/73

Slide 46

Slide 46 text

Discord ( ) Discord 2024 3-4 I — 2024-04-22 – p.46/73

Slide 47

Slide 47 text

: 5 : 4 ( 3 ) 20 ( ) ( ) ( ) AI 2024 3-4 I — 2024-04-22 – p.47/73

Slide 48

Slide 48 text

= /chat assistant_id: asst_C96SZm2jWPWmh4npsbPvJzop /chat search: /chat “search” ( ) · OK assistant_id asst_C96SZm2jWPWmh4npsbPvJzop, name # ACK (Acknowledged; ) ( ) 2024 3-4 I — 2024-04-22 – p.48/73

Slide 49

Slide 49 text

1 (15 ) ( ) 1 : / / / / / 2024 3-4 I — 2024-04-22 – p.49/73

Slide 50

Slide 50 text

1 2024 3-4 I — 2024-04-22 – p.50/73

Slide 51

Slide 51 text

2 (15 ) 5 1 OK 2 : ( ) / / / / / 2024 3-4 I — 2024-04-22 – p.51/73

Slide 52

Slide 52 text

2 2024 3-4 I — 2024-04-22 – p.52/73

Slide 53

Slide 53 text

3 (15 ) 5 2 OK 3 : ( ) / / / / / 2024 3-4 I — 2024-04-22 – p.53/73

Slide 54

Slide 54 text

3 2024 3-4 I — 2024-04-22 – p.54/73

Slide 55

Slide 55 text

4 (15 ) 5 3 OK 4 : instructions / / / / / 2024 3-4 I — 2024-04-22 – p.55/73

Slide 56

Slide 56 text

2024 3-4 I — 2024-04-22 – p.56/73

Slide 57

Slide 57 text

: , , , 2009 2024 3-4 I — 2024-04-22 – p.57/73

Slide 58

Slide 58 text

2024 3-4 I — 2024-04-22 – p.58/73

Slide 59

Slide 59 text

( ) 2024 3-4 I — 2024-04-22 – p.59/73

Slide 60

Slide 60 text

: ɾ ࿹࣌ܭͷετοϓ΢Υονػೳ ɹͷ࢖͍ํͰ͢ ɾ ϘλϯΛԡ͢ͱɺ ঢ়ଶ͕มΘΔ ɹ༷ࢠΛඳ͍͍ͯ·͢ ɾ ঢ়ଶʹԠͯ͡ɺ Ϙλϯ͸ ɹҧͬͨҙຯΛ࣋ͪ·͢ ܭଌΛ࢝Ί·͢ ͕࣌ؒܦա ͕࣌ؒܦա ܭଌΛετοϓ ͠·͢ ϥοϓλΠϜ Λදࣔ͠·͢ ϥοϓλΠϜ ΛΫϦΞ͠·͢ ܭଌΛετοϓ ͠·͢ ܭଌΛ࠶։ ͠·͢ ܭଌΛ࠶։ ͠·͢ Ϧηοτ͠·͢ ա ܭଌத ϥοϓλΠϜ ϥοϓλΠϜ ܭଌ ࣌ؒ ج४࣌ؒ ϥοϓλΠϜ ΛΫϦΞ͠·͢ run : A ( )→ B ( ) → B ( )→ A ( ) → B ( ) 2024 3-4 I — 2024-04-22 – p.60/73

Slide 61

Slide 61 text

( 3 ) (1) /chat assistant_id: asst_OUIhymbGuI1siXVaLs7evkaJ — (2) /chat search: (2) /build name: ( ) ( ) ( ) ( ) — /update ID (3) /chat assistant_id: ID — 3 2024 3-4 I — 2024-04-22 – p.61/73

Slide 62

Slide 62 text

( ) /chat assistant_id asst_OUIhymbGuI1siXVaLs7evkaJ 2024 3-4 I — 2024-04-22 – p.62/73

Slide 63

Slide 63 text

(/build ) /build name: description ( ) instructions ( ) ( ) code interpreter 2024 3-4 I — 2024-04-22 – p.63/73

Slide 64

Slide 64 text

/build EFTDSJQUJPO આ໌ ͸ʁ ਓؒͷ ͨΊͷ ୹͍આ໌Λ ॻ͘ ϓϩϯϓτ Λॻ͘ Ξγελϯτʹ ໊લΛ෇͚Δ &OBCMFPS %JTBCMF :FT /P ϑΝΠϧ ܈Λ·ͱ Ίͯυϩ οϓ͢Δ &OBCMFPS %JTBCMF͔ͭ 'JMFT༗ޮ %JTBCMF͔ͭ 'JMFTແޮ JOTUSVDUJPOT ࢦࣔ ͸ʁ 'JMFT ϑΝΠϧ ಡΈࠐΈ ͸ ༗ޮʁແޮʁ $PEF*OUFSQSFUFS ϓϩάϥϜͷ ੜ੒ɾ࣮ߦ ͸ ༗ޮʁແޮʁ ϑΝΠϧΛ ௥Ճ͢Δʁ ϑΝΠϧ଴ͪ Ξγελϯτ ੜ੒׬ྃ 2024 3-4 I — 2024-04-22 – p.64/73

Slide 65

Slide 65 text

(/update ) /update assistant_id: ID “.” ( ) 2(3?) GPTs /update (/build 1 ) 2024 3-4 I — 2024-04-22 – p.65/73

Slide 66

Slide 66 text

/update EFTDSJQUJPO આ໌ ͸ʁ ਓؒͷ ͨΊͷ ୹͍৽͍͠ આ໌Λॻ͘ มߋ͠ͳ͍ ͳΒlz Λଧͭ มߋ͠ͳ͍ ͳΒlz Λଧͭ ৽͍͠ ϓϩϯϓτ Λॻ͘ Ξγελϯτ *% Λ ࢦఆ͢Δ &OBCMFPS %JTBCMF :FT :FTPS /P /P ϑΝΠϧ ܈Λ·ͱ Ίͯυϩ οϓ͢Δ &OBCMFPS %JTBCMF͔ͭ 'JMFT༗ޮ %JTBCMF͔ͭ 'JMFTແޮ JOTUSVDUJPOT ࢦࣔ ͸ʁ 'JMFT ϑΝΠϧ ಡΈࠐΈ ͸ ༗ޮʁແޮʁ $PEF*OUFSQSFUFS ϓϩάϥϜͷ ੜ੒ɾ࣮ߦ ͸ ༗ޮʁແޮʁ ࠓ͋ΔϑΝΠϧ Λอ࣋͢Δʁ ϑΝΠϧΛ ௥Ճ͢Δʁ ϑΝΠϧ଴ͪ Ξγελϯτ ߋ৽׬ྃ 2024 3-4 I — 2024-04-22 – p.66/73

Slide 67

Slide 67 text

Ϗϧμʔͱ࿩͢ εϨου ૬ஊ͢Δ ର࿩͢Δ ͪΐͬͱ ҧ͏ͳ ςΩετνϟϯωϧ ͔Β %JTDPSE͔Βίϐʔͨ͠ ಺༰ΛϝϞாͰ ฤूͯ͠ ίϐϖ͢Δͱ Α͍͔΋ ˣ ߋ৽εϨου͔Β ςΩετνϟϯωϧ ͔Β ςΩετνϟϯωϧ ͔Β Α͠ࢼͯ͠ΈΑ͏ ॳճDIBU DIBU ॳճ CVJME ߋ৽ VQEBUF આ໌΍ ࢦࣔΛ ೖྗ͢Δ ΞγελϯτΛ࡞Γ ߋ৽͢ΔεϨου ΞγελϯτΛ ࢼ͢εϨου 2024 3-4 I — 2024-04-22 – p.67/73

Slide 68

Slide 68 text

(1/2) ([ ] ) /build name: ( Discord ) /chat [assistant_id: ID][thread_id: ID] [search: ] ( Discord ) ID Discord 20 /delete assistant_id: ID ID 2024 3-4 I — 2024-04-22 – p.68/73

Slide 69

Slide 69 text

(2/2) ([ ] ) /list [offset: ][max: ] [search: ] ( ) 20 ( 0) 1 1,500 /show assistant_id: ID 1 1,500 /update assistant_id: ID ( Discord ) /build 2024 3-4 I — 2024-04-22 – p.69/73

Slide 70

Slide 70 text

( ) /update /build 2024 3-4 I — 2024-04-22 – p.70/73

Slide 71

Slide 71 text

2024 3-4 I — 2024-04-22 – p.71/73

Slide 72

Slide 72 text

2. (1) AI (2) 2024 4 25 ( ) 23:59 JST ( ) Waseda Moodle 2024 3-4 I — 2024-04-22 – p.72/73

Slide 73

Slide 73 text

2024 3-4 I — 2024-04-22 – p.73/73