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

LangChainを使ってChatGPTの機能を拡張してみた ~過去の会話やGoogle検索結果を活用して自然な応答を生成する方法~ #DevIO2023

LangChainを使ってChatGPTの機能を拡張してみた ~過去の会話やGoogle検索結果を活用して自然な応答を生成する方法~ #DevIO2023

DevelopersIO 2023 で発表した資料です。

TakaakiKakei

July 10, 2023
Tweet

More Decks by TakaakiKakei

Other Decks in Technology

Transcript

  1. 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
  2. •Anthropic •Azure •Bedrock •Google Cloud Platform Vertex AI PaLM •OpenAI

    ͳͲ https://python.langchain.com/docs/modules/model_io/models/llms/ 31 ࢀߟɿαϙʔτ͞Ε͍ͯΔαʔϏεྫ
  3. •awslambda •Bing Search •ChatGPT Plugins •Google Search •Twilio •Wikipedia •Zapier

    Natural Language Actions API ͳͲ https://python.langchain.com/docs/modules/agents/tools/ 47 ࿈ܞͰ͖Δ֎෦αʔϏεʢToolsʣ
  4. •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Ͱ։ൃͨ͠ΞϓϦͷ՝୊ˠղܾҊʗߟ࡯