Slide 1

Slide 1 text

LangChainΛ࢖ͬͯ ChatGPTͷػೳΛ֦ுͯ͠Έͨ
 ~աڈͷձ࿩΍Googleݕࡧ݁ՌΛ׆༻
 ͯࣗ͠વͳԠ౴Λੜ੒͢Δํ๏~ 2023/07/08 ᝛ ߶জʢTakaaki Kakeiʣ

Slide 2

Slide 2 text

Hello!! ᝛ ߶জʢTakaaki Kakeiʣ •AWSࣄۀຊ෦ΦϖϨʔγϣϯ෦
 αʔϏεάϩʔενʔϜ •ΫϥεϝιουϝϯόʔζΛ
 ࢧ͑Δ಺੡։ൃΛ୲౰ •ٱ͠ͿΓͷϥΠϒηογϣϯͰ
 ϫΫϫΫ͍ͯ͠·͢ʂ 2 ɾ2023-2021 Japan AWS Top Engineers
 ɾ2023-2022 Japan AWS All Certifications Engineers ɾhttps://dev.classmethod.jp/author/kakei-takaaki/ ɾhttps://zenn.dev/t_kakei ɾhttps://twitter.com/TakaakiKakei

Slide 3

Slide 3 text

ChatGPTͱ͸ •OpenAI͕2022೥11݄ʹެ։ͨ͠ਓ޻஌ೳνϟοτϘοτ •ਓؒͷΑ͏ͳࣗવͳձ࿩͕Ͱ͖Δ •จষͷཁ໿ɾ຋༁ɾϓϩάϥϜͷੜ੒ͳͲɺ༷ʑͳλεΫΛ ࣮ߦՄೳ 3 ຊ୊ʹೖΔલʹ͓͞Β͍

Slide 4

Slide 4 text

େن໛ݴޠϞσϧʢLLMʣͱ͸ •େྔͷςΩετσʔλΛ࢖ͬͯτϨʔχϯά͞Εͨࣗવݴޠ ॲཧͷϞσϧ •ChatGPTɿGPT-3.5 / GPT-4 4 ͓͞Β͍2

Slide 5

Slide 5 text

OpenAI APIͱ͸ •OpenAIͷLLMʢGPT-3ͳͲʣ ʹAPIͰΞΫηε͢Δ͜ͱΛ Մೳʹͨ͠ϓϥοτϑΥʔϜ •։ൃऀ͕ࣗ਎ͷΞϓϦέʔ γϣϯʹLLMͷػೳΛ૊Έࠐ Ήࡍʹར༻Ͱ͖Δ 5 ͓͞Β͍3 IUUQTQMBUGPSNPQFOBJDPNEPDT HVJEFTHQUDIBUDPNQMFUJPOTBQJ

Slide 6

Slide 6 text

IUUQTHJUIVCDPNIXDIBTFMBOHDIBJO LangChain 6

Slide 7

Slide 7 text

LLMΛ׆༻ͨ͠ߴ౓ͳΞϓϦέʔγϣϯͷ։ൃΛָʹ͠ ͯ͘ΕΔϑϨʔϜϫʔΫ •LLMͱGoogleݕࡧΛ࿈ܞͨ͠ΞϓϦ •ࢦఆτʔΫϯ਺಺Ͱձ࿩ཤྺΛ΋ͭΞϓϦ •ಠࣗσʔλΛݩʹճ౴͢ΔΞϓϦ 7 LangChainͱ͸

Slide 8

Slide 8 text

•ศརϞδϡʔϧ͕༻ҙ͞Ε͓ͯΓɺͦΕΒΛ૊Έ߹ΘͤΔ͜ ͱͰɺෳࡶͳॲཧΛߦ͏ΞϓϦέʔγϣϯ͕։ൃͰ͖Δɻ •OpenAIͷLLMҎ֎΋ɺ༷ʑͳLLMΛαϙʔτ͍ͯ͠Δɻ •GoogleݕࡧͳͲ࿈ܞՄೳͳ֎෦αʔϏε΋ଟ͘αϙʔτɻ •Python΍JavaScript / TypeScriptͰར༻Մೳɻ 8 LangChainͷಛ௃

Slide 9

Slide 9 text

LangChainΛར༻ͨ͠ΞϓϦ։ൃͷྲྀΕ 1. ։ൃ؀ڥͷ४උ 2. LangChainͷཧղͱ࣮ફ 3. WebΞϓϦέʔγϣϯ։ൃ 9

Slide 10

Slide 10 text

•ϓϩάϥϜΛಈ͔͢ϋʔυϧ͕Լ͕Δ͜ͱ •LangChainͷར఺ͱ࢖༻ํ๏ʹؔ͢Δཧղ͕ਂ·Δ͜ͱ •LangChainΛར༻ͨ͠LLMͷΞϓϦέʔγϣϯެ։΁ͷ஌ݟ ΛਂΊΔ͜ͱ 10 ຊηογϣϯͷ໨ඪ

Slide 11

Slide 11 text

LangChainΛར༻ͨ͠ΞϓϦ։ൃͷྲྀΕ 1. ։ൃ؀ڥͷ४උ 2. LangChainͷཧղͱ࣮ફ 3. WebΞϓϦέʔγϣϯ։ൃ 11

Slide 12

Slide 12 text

(PPHMF$PMBCPSBUPSZʢུশɿ$PMBCʣ IUUQTDPMBCSFTFBSDIHPPHMFDPN ͓͢͢Ίͷ։ൃ؀ڥ 12

Slide 13

Slide 13 text

ॆ෼ͳ։ൃ؀ڥ •؀ڥߏஙෆཁͰPythonίʔυΛهड़ɺ࣮ߦͰ͖Δ •GoogleΞΧ΢ϯτ͕͋Ε͹ϒϥ΢βܦ༝Ͱ͙͢ʹ࢖͑Δ •ແྉͷGPUΛఏڙ͓ͯ͠Γɺߴ౓ͳܭࢉΛߦ͑Δ •Google Driveͱͷ࿈ܞͰɺೖग़ྗͷ௕ظอଘ͕Մೳ •ແྉϓϥϯͷ৔߹ɺ࠷௕Ͱ12࣮࣌ؒߦՄೳ 13 Colabͷಛ௃

Slide 14

Slide 14 text

(PPHMFΞΧ΢ϯτʹϩάΠϯͨ͠ঢ়ଶͰɺ$PMBCͷ63-ʹΞΫηε IUUQTDPMBCSFTFBSDIHPPHMFDPN Colabͷར༻ํ๏ 14

Slide 15

Slide 15 text

ʮϊʔτϒοΫΛ৽ن࡞੒ʯΛΫϦοΫ Colabͷར༻ํ๏ 15

Slide 16

Slide 16 text

৽͍͠ϊʔτϒοΫ͕։͖ɺۭͷηϧ͕දࣔ͞ΕΔ 16 Colabͷར༻ํ๏

Slide 17

Slide 17 text

ηϧʹίʔυΛهड़Ͱ͖Δ Colabͷར༻ํ๏ 17

Slide 18

Slide 18 text

ʮηϧͷ࣮ߦʯϘλϯΛԡ͢ͱɺηϧ಺ͷίʔυ͕࣮ߦ͞ΕΔ Colabͷར༻ํ๏ 18

Slide 19

Slide 19 text

ʮίʔυʯΛΫϦοΫ͢Δͱɺηϧ͕௥Ճ͞Ε 
 ௥Ճͷίʔυ͕ೖྗͰ͖Δ Colabͷར༻ํ๏ 19

Slide 20

Slide 20 text

20 ChatGPTͷAPIΛಈ͔ͯ͠ΈΔ

Slide 21

Slide 21 text

ඞཁͳϥΠϒϥϦΛΠϯετʔϧ ChatGPTͷAPIΛ࣮ߦͯ͠ΈΔ 21

Slide 22

Slide 22 text

؀ڥม਺ʹ0QFO"*"1*ΩʔΛηοτ 22 ChatGPTͷAPIΛ࣮ߦͯ͠ΈΔ

Slide 23

Slide 23 text

νϟοτ༻ͷ"1*Λ࣮ߦ 23 ChatGPTͷAPIΛ࣮ߦͯ͠ΈΔ

Slide 24

Slide 24 text

Colab •Google͕ແྉఏڙ͢ΔΫϥ΢υϕʔεͷPython࣮ߦ؀ڥ •GoogleΞΧ΢ϯτ͕͋Ε͹ϒϥ΢βܦ༝Ͱ͙͢࢖͑Δ •ແྉͷGPU΍GoogleυϥΠϒͱͷσʔλ࿈ܞՄೳ 24 1ষͷ·ͱΊ

Slide 25

Slide 25 text

LangChainΛར༻ͨ͠ΞϓϦ։ൃͷྲྀΕ 1. ։ൃ؀ڥͷ४උ 2. LangChainͷཧղͱ࣮ફ 3. WebΞϓϦέʔγϣϯ։ൃ 25

Slide 26

Slide 26 text

LLMΛ׆༻ͨ͠ߴ౓ͳΞϓϦέʔγϣϯͷ։ൃΛָʹ͠ ͯ͘ΕΔϑϨʔϜϫʔΫ •LLMͱGoogleݕࡧΛ࿈ܞͨ͠ΞϓϦ •ࢦఆτʔΫϯ಺Ͱձ࿩ཤྺΛ΋ͭΞϓϦ •ಠࣗσʔλΛݩʹճ౴͢ΔΞϓϦ 26 LangChainͱ͸ʢ࠶ܝʣ

Slide 27

Slide 27 text

•ศརͳϞδϡʔϧ͕༻ҙ͞Ε͓ͯΓɺͦΕΒΛ૊Έ߹ΘͤΔ ͜ͱͰɺෳࡶͳॲཧΛߦ͏ΞϓϦέʔγϣϯ͕։ൃͰ͖Δɻ •༷ʑͳLLMΛαϙʔτɻ •࿈ܞՄೳͳ֎෦αʔϏε΋ଟ͍ɻ •Python΍JavaScript / TypeScriptͰར༻Մೳɻ 27 LangChainͷಛ௃ʢ࠶ܝʣ

Slide 28

Slide 28 text

28 ͲͷΑ͏ͳϞδϡʔϧ͕͋Δ͔

Slide 29

Slide 29 text

•ModelsɿLLMͷݺͼग़͠ػೳ •Promptsɿೖྗ৘ใ͔ΒϓϩϯϓτΛ࡞੒͢Δػೳ •ChainsɿLLM΍Promptsͷೖग़ྗΛܨ͛Δػೳ •Memoryɿձ࿩ཤྺͷอଘػೳ •AgentsɿͲΜͳखஈɾॱংͰ࣮ߦ͢Δ͔ܾఆ͢Δػೳ 29 LangChainͷओͳϞδϡʔϧ

Slide 30

Slide 30 text

LLMͷݺͼग़͠ػೳ •OpenAIͷLLMʢGPT-3΍GPT-4ʣͳͲɺ༷ʑͳαʔϏε͕ఏ ڙ͍ͯ͠ΔϞσϧΛར༻Ͱ͖Δػೳ •LLMؒͰΠϯλʔϑΣʔε͕ڞ௨Խ͞Ε͍ͯΔҝɺҟͳΔ LLMΛར༻͢Δ࣌΋෼͔Γ΍͍͢ 30 Modelsͱ͸

Slide 31

Slide 31 text

•Anthropic •Azure •Bedrock •Google Cloud Platform Vertex AI PaLM •OpenAI ͳͲ https://python.langchain.com/docs/modules/model_io/models/llms/ 31 ࢀߟɿαϙʔτ͞Ε͍ͯΔαʔϏεྫ

Slide 32

Slide 32 text

ඞཁͳϥΠϒϥϦΛΠϯετʔϧͯ͠ɺ؀ڥม਺Ληοτ Modelsͷ࢖͍ํ 32

Slide 33

Slide 33 text

0QFO"*ͷ--.ʢ(15ʣΛར༻ .PEFMΛॳظԽ͠ɺϝοηʔδͷϦετΛ༩࣮͑ͯߦ Modelsͷ࢖͍ํ 33

Slide 34

Slide 34 text

0QFO"*ͷ--.ʢ(15ʣ ҟͳΔLLMͷΠϯλʔϑΣʔεͷൺֱ 34 "OUISPQJDͷ--. ˠҟͳΔ--.Ͱ΋ಉ͡Α͏ͳݺͼग़͠ํͰ࣮ߦͰ͖Δ

Slide 35

Slide 35 text

ೖྗ৘ใ͔ΒϓϩϯϓτΛ࡞੒͢Δػೳ •ϓϩϯϓτ͸໨తͷճ౴ΛಘΔͨΊʹॏཁͳཁૉ •LangChain͸ϓϩϯϓτͷૢ࡞ͱߏஙΛ؆୯ʹ͢ΔػೳΛఏ ڙ •ྫ͑͹ɺϓϩϯϓτςϯϓϨʔτ಺ͷҰ෦ͷม਺Λɺϓϩά ϥϛϯάͷೖྗͰஔ͖׵͑Δ͜ͱ͕Ͱ͖Δ 35 Promptsͱ͸

Slide 36

Slide 36 text

ඞཁͳϥΠϒϥϦΛΠϯετʔϧͯ͠ɺ؀ڥม਺Ληοτ Promptsͷ࢖͍ํ 36

Slide 37

Slide 37 text

ϓϩϯϓτͷςϯϓϨʔτ಺ʹ஬৯͍ͷΑ͏ʹม਺Λ࢓ࠐΉ͜ͱ͕Ͱ͖Δ ϓϩάϥϛϯά࣮ߦ࣌ʹॊೈʹςϯϓϨʔτΛͰ͖Δ 
 Promptsͷ࢖͍ํ 37

Slide 38

Slide 38 text

ॊೈʹϓϩϯϓτςϯϓϨʔτΛมߋͰ͖ΔΑ͏ʹͳΓɺ 
 ෳࡶͳλεΫ͕΍Γ΍͘͢ͳΔ Promptsͷ࢖͍ํ 38

Slide 39

Slide 39 text

Models΍Promptsͷೖग़ྗΛܨ͛Δػೳ •ModelsͱPromptsͱ͍ͬͨϞδϡʔϧΛ࿈࣮݁ͯ͠ߦ͕Ͱ͖ Δ •ModelsͱPromptsͷ૊Έ߹ΘͤΛɺผͷModelsͱPromptsͷ ૊Έ߹Θͤʹ࿈݁͢Δ͜ͱ΋Մೳ •͜ͷΑ͏ʹϞδϡʔϧΛ؆୯ʹ࿈݁Ͱ͖Δ͜ͱͰɺAPIΛ୯ ମͰར༻͢ΔΑΓ΋࣮૷ָ͕ʹͳͬͯ͘Δ 39 Chainsͱ͸

Slide 40

Slide 40 text

ඞཁͳϥΠϒϥϦΛΠϯετʔϧͯ͠ɺ؀ڥม਺Ληοτ Chainsͷ࢖͍ํ 40

Slide 41

Slide 41 text

.PEFMTͱ1SPNQUTͷίʔυΛ࿈࣮݁ͯ͠ߦ Chainsͷ࢖͍ํ 41

Slide 42

Slide 42 text

ձ࿩ཤྺͷอଘػೳ •APIΛར༻͢Δ৔߹ɺձ࿩ཤྺͷอଘ͸ಠ࣮ࣗ૷͕ඞཁ •MemoryΛར༻͢Δ͜ͱͰɺಠ࣮ࣗ૷෦෼Λॊೈˍ؆୯ʹ࣮ ૷Մೳ •ྫ͑͹ɺݹ͍ձ࿩͸ཁ໿ͯ͠ɺ௚ۙͷձ࿩͸ͦͷ··อ࣋͢ ΔͷΑ͏ͳॲཧ΋؆୯ʹ࣮૷Ͱ͖Δ 42 Memoryͱ͸

Slide 43

Slide 43 text

•ConversationBufferWindowMemoryɿ௚ۙkݸͷཤྺΛ࢖༻ •ConversationTokenBufferMemoryɿτʔΫϯ਺಺ͰཤྺΛ࢖༻ •ConversationSummaryBufferMemoryɿݹ͍ձ࿩͸ཁ໿ͯ͠ɺ௚ ۙͷձ࿩͸ͦͷ··อ࣋ͯ͠࢖༻ɻ ͳͲ https://python.langchain.com/docs/modules/memory/ 43 ఏڙ͞Ε͍ͯΔMemory

Slide 44

Slide 44 text

UJLUPLFOʢτʔΫϯ਺Λऔಘ͢ΔʣϥΠϒϥϦΛ௥Ճ ConversationSummaryBufferMemoryͷར༻ྫ 44

Slide 45

Slide 45 text

$IBUNPEFMΛར༻ͯ͠$POWFSTBUJPO4VNNBSZ#V ff FS.FNPSZΛར༻ ཁ໿ͱ࠷৽ͭͷ΍ΓͱΓ͕อଘ͞Ε͍ͯΔ ConversationSummaryBufferMemoryͷར༻ྫ 45

Slide 46

Slide 46 text

ͲΜͳखஈɾॱংͰ࣮ߦ͢Δ͔ܾఆ͢Δػೳ •ChainsΑΓ΋ෳࡶͳλεΫ࣮ߦՄೳ •ϢʔβʔೖྗʹΑͬͯɺ࣮ߦ͞ΕΔػೳ͕มΘΔ •ॲཧͷྲྀΕ͸ɺʮೖྗˠ(ਪ࿦ˠ࣮ߦˠ؍࡯) * N→ճ౴ʯ •Google΍BingͳͲͷ֎෦αʔϏεΛ؆୯ʹར༻Ͱ͖Δػೳ ʢToolsʣͱ࿈ܞՄೳ 46 Agentsͱ͸ʁ

Slide 47

Slide 47 text

•awslambda •Bing Search •ChatGPT Plugins •Google Search •Twilio •Wikipedia •Zapier Natural Language Actions API ͳͲ https://python.langchain.com/docs/modules/agents/tools/ 47 ࿈ܞͰ͖Δ֎෦αʔϏεʢToolsʣ

Slide 48

Slide 48 text

•zero_shot_react_descriptionɿReAct ͱ͍͏ਪ࿦ػೳͱߦಈ ػೳΛ༻͍Δख๏Λ࢖༻ͯ͠ͲͷToolsΛ࢖༻͢Δ͔Λܾఆɻ •conversational-react-descriptionɿReAct Λ࢖༻ͯ͠Ͳͷ ToolsΛ࢖༻͢Δ͔Λܾఆɻ ձ࿩ʹ࠷దԽ͞Ε͓ͯΓɺ MemoryΛ࢖༻ͯ͠ձ࿩ཤྺ΋ߟྀͰ͖Δɻ https://python.langchain.com/docs/modules/agents/ 48 ఏڙ͞Ε͍ͯΔAgents

Slide 49

Slide 49 text

%VDLEVDLHPTFBSDIʢݕࡧΤϯδϯʣϥΠϒϥϦΛ௥Ճ Agentsͷར༻ྫ 49

Slide 50

Slide 50 text

%VDLEVDLHPTFBSDIʢݕࡧΤϯδϯʣϥΠϒϥϦΛ௥Ճ Agentsͷར༻ྫ 50

Slide 51

Slide 51 text

•ModelsɿLLMͷݺͼग़͠ػೳ •Promptsɿೖྗ৘ใ͔ΒϓϩϯϓτΛ࡞੒͢Δػೳ •ChainsɿLLM΍Promptsͷೖग़ྗΛܨ͛Δػೳ •Memoryɿձ࿩ཤྺͷอଘػೳ •AgentsɿͲΜͳखஈɾॱংͰ࣮ߦ͢Δ͔ܾఆ͢Δػೳ 51 LangChainͷओͳϞδϡʔϧʢ࠶ܝʣ

Slide 52

Slide 52 text

IUUQTHJUIVCDPNLZSPMBCTBXFTPNFMBOHDIBJO [ࢀߟ]LangChainͷΞοϓσʔτΛ௥͑ΔαΠτ 52

Slide 53

Slide 53 text

LangChain •LLMΛ׆༻ͨ͠ߴ౓ͳΞϓϦέʔγϣϯ։ൃΛࢧԉ͢Δϑ ϨʔϜϫʔΫ •༻ҙ͞Ε͍ͯΔϞδϡʔϧΛ૊Έ߹ΘͤΔ͜ͱͰɺෳࡶͳॲ ཧ͕࣮૷͠΍͘͢ͳΔ •LangChainͷ࠷৽৘ใΛ௥͏ͱɺLLMͷ࠷৽৘ใ΋Ωϟον ΞοϓͰ͖ͯҰੴೋௗ 53 2ষͷ·ͱΊ

Slide 54

Slide 54 text

LangChainΛར༻ͨ͠ΞϓϦ։ൃͷྲྀΕ 1. ։ൃ؀ڥͷ४උ 2. LangChainͷཧղͱ࣮ફ 3. WebΞϓϦέʔγϣϯ։ൃ 54

Slide 55

Slide 55 text

4USFBNMJUʢετϦʔϜϦοτʣ 
 IUUQTTUSFBNMJUJP ͓͢͢ΊͷWebΞϓϦέʔγϣϯϑϨʔϜϫʔΫ 55

Slide 56

Slide 56 text

•PythonͰWebΞϓϦέʔγϣϯΛ։ൃ͢ΔͨΊͷϑϨʔϜ ϫʔΫ •ֶशίετ͕௿͘ɺര଎ͰΞϓϦΛ։ൃՄೳ •LangChainͱͷ౷߹ͷυΩϡϝϯτ΋๛෋ 56 Streamlitͷಛ௃

Slide 57

Slide 57 text

57 ͲΕ͚ͩ؆୯ʹͭ͘ΕΔͷ͔ʁ

Slide 58

Slide 58 text

10ߦͷίʔυ 58

Slide 59

Slide 59 text

؆୯ͳνϟοτΞϓϦ͕׬੒ 59 IUUQTHJUIVCDPNUBLBBLJLBLFJEFNPTUSFBNMJUMBOHDIBJOCMPCNBJOQBHFTFDIPDIBUVJQZ

Slide 60

Slide 60 text

30ߦͷίʔυʢLangChainͷॲཧ௥Ճʣ 60

Slide 61

Slide 61 text

IUUQTHJUIVCDPNUBLBBLJLBLFJEFNPTUSFBNMJUMBOHDIBJOCMPCNBJOQBHFTMBOHDIBJOEEH TFBSDIQZ LangChainΛར༻ͨ͠νϟοτΞϓϦ׬੒ 61

Slide 62

Slide 62 text

IUUQTEPDTTUSFBNMJUJPLOPXMFEHFCBTFUVUPSJBMTCVJMEDPOWFSTBUJPOBMBQQT [ࢀߟ]StreamlitͷνϡʔτϦΞϧ 62

Slide 63

Slide 63 text

IUUQTCMPHTUSFBNMJUJPUBHUVUPSJBMT [ࢀߟ]StreamlitͷνϡʔτϦΞϧϒϩά 63

Slide 64

Slide 64 text

IUUQTHJUIVCDPNNJDSPTPGUB[PBJDIBUHQUTUSFBNMJUIBSOFTT [ࢀߟ]MicrosoftͷϦϙδτϦ 64

Slide 65

Slide 65 text

65 WebΞϓϦͷެ։ʹ͍ͭͯ

Slide 66

Slide 66 text

•WebSocketʹରԠ͍ͯ͠ΔαʔϏεʹσϓϩΠ͕ඞཁ •ެࣜͷೝূػೳ͕ఏڙ͞Ε͍ͯͳ͍ •جຊతʹαʔόαΠυͰॲཧ͞ΕΔͨΊɺΞΫηεूத࣌ʹ ෆ҆͋Γ 66 ެ։࣌ͷ՝୊

Slide 67

Slide 67 text

•WebSocketʹରԠ͍ͯ͠ΔαʔϏεʹσϓϩΠ͕ඞཁ
 →Cloud RunͳͲʹσϓϩΠ •ެࣜͷೝূػೳ͕ఏڙ͞Ε͍ͯͳ͍
 →σϓϩΠઌͷηΩϡϦςΟαʔϏε or αʔυύʔςΟͷϞδϡʔ ϧΛར༻
 https://zenn.dev/google_cloud_jp/articles/streamlit-02- fi rebase
 
 https://zenn.dev/matken/articles/restrict-cloud-run-to-in-house
 
 https://github.com/mkhorasani/Streamlit-Authenticator •جຊతʹαʔόαΠυͰॲཧ͞ΕΔͨΊɺΞΫηεूத࣌ʹෆ҆͋Γ
 →·ͣ͸ಈ͘΋ͷΛ࡞Δͱ͍͏ελϯεͰɺখن໛Ͱͷར༻Λݕ౼ 67 StreamlitͰ։ൃͨ͠ΞϓϦͷ՝୊ˠղܾҊʗߟ࡯

Slide 68

Slide 68 text

Streamlit •PythonͰWebΞϓϦέʔγϣϯΛ࡞੒͢ΔͨΊͷϑϨʔϜ ϫʔΫ •ֶशίετ͕௿͘ɺര଎ͰΞϓϦΛ։ൃՄೳ •খن໛޲͚͕ͩɺ͸͡ΊͷҰาͱ͓ͯ͢͢͠Ί 68 3ষͷ·ͱΊ

Slide 69

Slide 69 text

LangChainΛར༻ͨ͠ΞϓϦ։ൃͷྲྀΕ 1. ։ൃ؀ڥͷ४උ 2. LangChainͷཧղͱ࣮ફ 3. WebΞϓϦέʔγϣϯ։ൃ 69

Slide 70

Slide 70 text

LangChainΛར༻ͨ͠ΞϓϦ։ൃͷྲྀΕ 1. ։ൃ؀ڥͷ४උ 2. LangChainͷཧղͱ࣮ફ 3. WebΞϓϦέʔγϣϯ։ൃ 4. ෇࿥ɿ͓͢͢ΊͷOSS 70

Slide 71

Slide 71 text

IUUQTHJUIVCDPNNDLBZXSJHMFZDIBUCPUVJ $IBUCPU6* ͓͢͢ΊͷOSS 71

Slide 72

Slide 72 text

•ChatGPTϥΠΫͳUIΛαΫοͱߏஙͰ͖ΔOSS •GitHubͰͷStar਺ɿ15,000Ҏ্ •Docker fi leͰ؅ཧ͞Ε͓ͯΓɺϙʔλϏϦςΟ͕ߴ͍ •EdgeͰಈͨ͘Ίɺதن໛Ҏ্Ͱ΋ಈ࡞͢Δҹ৅ •NextJSͷܦݧ͕͋Ε͹ɺΧελϚΠζ΋Մೳ 72 Chatbot UIͷಛ௃

Slide 73

Slide 73 text

APIΩʔͷηοτޙͷը໘ 73

Slide 74

Slide 74 text

νϟοτΠϝʔδ 74

Slide 75

Slide 75 text

•؀ڥม਺ͰɺOpenAI͔Azure OpenAIΛબ୒Մೳ •ձ࿩ཤྺΛݩʹͨ͠ճ౴͕Մೳ •Googleݕࡧ݁ՌΛݩʹͨ͠ճ౴΋Մೳ •UI্ͰϞσϧબ୒΍Temperatureͷௐ੔͕Մೳ 75 Chatbot UIͷػೳ

Slide 76

Slide 76 text

IUUQTEFWDMBTTNFUIPEKQBSUJDMFTDIBUHQUXFCVJDIBUCPUVJ Chatbot UIΛϩʔΧϧͰಈ͔͢ 76

Slide 77

Slide 77 text

77 ެ։࣌ͷηΩϡϦςΟ͸Ͳ͏͢Δ͔ʁ

Slide 78

Slide 78 text

ύλʔϯ1ɿAWS WAF 78 "848"'Ͱ*1੍ݶ

Slide 79

Slide 79 text

"848"'Ͱ*1੍ݶ͠ɺ/FYU"VUIͰ"[VSF"%ͳͲͰೝূ ύλʔϯ2ɿAWS WAF + NextAuth 79

Slide 80

Slide 80 text

$MPVE fl BSFͰθϩτϥετͱೝূػೳΛ࣮૷ ύλʔϯ3ɿCloud fl are 80

Slide 81

Slide 81 text

81 ΧελϚΠζʹ͍ͭͯ

Slide 82

Slide 82 text

ϓϨεϦϦʔεɿIUUQTDMBTTNFUIPEKQOFXTNVMUJHFOFSBUJWFBJTFSWJDF ෳ਺ͷLLMΛར༻ग़དྷΔΑ͏ʹΧελϚΠζ 82

Slide 83

Slide 83 text

IUUQTHJUIVCDPNNDLBZXSJHMFZDIBUCPUVJQVMMT [ࢀߟ]ϓϧϦΫΤετ΋ࢀߟʹͳΔ 83

Slide 84

Slide 84 text

Chatbot UI •ChatGPTϥΠΫͳUIΛαΫοͱ࡞ΕΔOSS •ձ࿩ཤྺ΍Googleݕࡧ݁ՌΛݩʹͨ͠ճ౴ػೳ͕උ͑෇͚ •Docker fi leͰσϓϩΠՄೳͳͷͰϙʔλϏϦςΟ͕ߴ͍ •ϋʔυϧ͸ߴΊ͕ͩɺΧελϚΠζ΋Մೳ 84 ෇࿥ͷ·ͱΊ

Slide 85

Slide 85 text

໨ඪ •APIΛಈ͔͢ϋʔυϧΛԼ͕Δ͜ͱ •LangChainͷར఺ͱ࢖༻ํ๏ʹؔ͢ΔཧղΛਂΊΔ͜ͱ •LangChainΛར༻ͨ͠LLMͷΞϓϦέʔγϣϯެ։΁ͷ஌ݟ ΛਂΊΔ͜ͱ 85 ຊొஃͷ໨ඪʢ࠶ܝʣ

Slide 86

Slide 86 text

ηογϣϯΞϯέʔτ DAY2 86 https://forms.gle/Upi2i5PsMTEUyJ6F8 ຬ଍౓্ҐͷηογϣϯΛޙ೔ϒϩάͰެ։༧ఆʂ
 ճ౴΁ͷ͝ڠྗΛΑΖ͓͘͠ئ͍͠·͢ɻ

Slide 87

Slide 87 text

No content