Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ワールドカフェI /チューターを改良する / World Café I and Improvi...

ワールドカフェI /チューターを改良する / World Café I and Improving the Tutors

早稲田大学大学院経営管理研究科「プロンプトエンジニアリング ─ 生成AIの応用」2024 春の第3-4回で使用したスライドです。

Kenji Saito

April 22, 2024
Tweet

More Decks by Kenji Saito

Other Decks in Technology

Transcript

  1. 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
  2. ( ) 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
  3. ( 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
  4. ( ) LLM ( ) GPTs 2024 3-4 I —

    2024-04-22 – p.5/73
  5. 1. (1) AI (2) 2024 4 18 ( ) 23:59

    JST ( ) Waseda Moodle 2024 3-4 I — 2024-04-22 – p.8/73
  6. . . . . . . 77(+2) 55(+1) (4/21( )

    ) ( ) LLM GET 5 . . . 6 . . . ← · 1 . . . ( ) 2024 3-4 I — 2024-04-22 – p.9/73
  7. T GPT 1 “ ” ⇒ LLM ( ) LLM

    2024 3-4 I — 2024-04-22 – p.10/73
  8. LLM (3/4) ແ͍ ੜ෺ֶऀ ࣮ ࡏ ͢ Δ ݚ ڀ

    ऀ ͳ Β ڪ ॖ ͩ ͕ ͍ ͔ ʹ ΋ ͳ ໊ લ ແ͍ ແ͍ . . . 2024 3-4 I — 2024-04-22 – p.14/73
  9. U AI description ( ) instructions ( ) 2 AI

    ⇒ description ( ) description ( ) description ( ) OpenAI 2024 3-4 I — 2024-04-22 – p.19/73
  10. (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
  11. (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
  12. (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
  13. A ChatGPT ⇒ (1) ( ) RLHF (Reinforcement Learning from

    Human Feedback; ) (2) ( ) (2) 2024 3-4 I — 2024-04-22 – p.25/73
  14. 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
  15. K Discord ⇒ 2 2 ( ) ^^; 2024 3-4

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

    2024-04-22 – p.29/73
  17. H GPT ⇒ general ( ) generative ( ) (

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

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

    I — 2024-04-22 – p.35/73
  20. 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
  21. ◦◦ vs. ◦◦ 1,000 ( ) 500 16 +AI 2024

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

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

    ( ) ( ) AI 2024 3-4 I — 2024-04-22 – p.47/73
  24. = /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
  25. 1 (15 ) ( ) 1 : / / /

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

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

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

    / / / / 2024 3-4 I — 2024-04-22 – p.55/73
  29. : ɾ ࿹࣌ܭͷετοϓ΢Υονػೳ ɹͷ࢖͍ํͰ͢ ɾ ϘλϯΛԡ͢ͱɺ ঢ়ଶ͕มΘΔ ɹ༷ࢠΛඳ͍͍ͯ·͢ ɾ ঢ়ଶʹԠͯ͡ɺ

    Ϙλϯ͸ ɹҧͬͨҙຯΛ࣋ͪ·͢ ܭଌΛ࢝Ί·͢ ͕࣌ؒܦա ͕࣌ؒܦա ܭଌΛετοϓ ͠·͢ ϥοϓλΠϜ Λදࣔ͠·͢ ϥοϓλΠϜ ΛΫϦΞ͠·͢ ܭଌΛετοϓ ͠·͢ ܭଌΛ࠶։ ͠·͢ ܭଌΛ࠶։ ͠·͢ Ϧηοτ͠·͢ ա ܭଌத ϥοϓλΠϜ ϥοϓλΠϜ ܭଌ ࣌ؒ ج४࣌ؒ ϥοϓλΠϜ ΛΫϦΞ͠·͢ run : A ( )→ B ( ) → B ( )→ A ( ) → B ( ) 2024 3-4 I — 2024-04-22 – p.60/73
  30. ( 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
  31. (/build ) /build name: description ( ) instructions ( )

    ( ) code interpreter 2024 3-4 I — 2024-04-22 – p.63/73
  32. /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
  33. (/update ) /update assistant_id: ID “.” ( ) 2(3?) GPTs

    /update (/build 1 ) 2024 3-4 I — 2024-04-22 – p.65/73
  34. /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
  35. Ϗϧμʔͱ࿩͢ εϨου ૬ஊ͢Δ ର࿩͢Δ ͪΐͬͱ ҧ͏ͳ ςΩετνϟϯωϧ ͔Β %JTDPSE͔Βίϐʔͨ͠ ಺༰ΛϝϞாͰ

    ฤूͯ͠ ίϐϖ͢Δͱ Α͍͔΋ ˣ ߋ৽εϨου͔Β ςΩετνϟϯωϧ ͔Β ςΩετνϟϯωϧ ͔Β Α͠ࢼͯ͠ΈΑ͏ ॳճDIBU DIBU ॳճ CVJME ߋ৽ VQEBUF આ໌΍ ࢦࣔΛ ೖྗ͢Δ ΞγελϯτΛ࡞Γ ߋ৽͢ΔεϨου ΞγελϯτΛ ࢼ͢εϨου 2024 3-4 I — 2024-04-22 – p.67/73
  36. (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
  37. (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
  38. 2. (1) AI (2) 2024 4 25 ( ) 23:59

    JST ( ) Waseda Moodle 2024 3-4 I — 2024-04-22 – p.72/73