Slide 1

Slide 1 text

©2023 DataStax. – All rights reserved
 DataStax AIワークショップ LangChain体験入門 演習ガイド 2024年4月18日


Slide 2

Slide 2 text

©2023 DataStax. – All rights reserved
 前提条件の準備

Slide 3

Slide 3 text

©2023 DataStax. – All rights reserved
 AstraDBトライアルアカウント 3
 下記のURLからご登録ください(クレジットカード入力不要・利用期間制限なし、月々無料枠あり) 
 
 ■ https://astra.datastax.com/signup
 


Slide 4

Slide 4 text

©2023 DataStax. – All rights reserved
 OpenAI APIキー 4
 https://platform.openai.com/login?launch OpenAIログイン >「API」タイル > 左サイドメニューAPI Keys

Slide 5

Slide 5 text

©2023 DataStax. – All rights reserved
 Colaboratory / Google Colab 5
 https://colab.research.google.com/?hl=ja 初めて利用する場合は、 Googleアカウントでサインアップします。

Slide 6

Slide 6 text

©2023 DataStax. – All rights reserved
 Astra DB利用

Slide 7

Slide 7 text

©2023 DataStax. – All rights reserved
 データベースメニューから新規DB作成 7


Slide 8

Slide 8 text

©2023 DataStax. – All rights reserved
 データベース作成ダイアログ 8
 Serverless (Vector)を選びます。
 
 
 データベース名: demo


Slide 9

Slide 9 text

©2023 DataStax. – All rights reserved
 DBへの接続のための認証情報取得 9


Slide 10

Slide 10 text

©2023 DataStax. – All rights reserved
 トークン生成 10


Slide 11

Slide 11 text

©2023 DataStax. – All rights reserved
 接続先指定:APIエンドポイント 11


Slide 12

Slide 12 text

©2023 DataStax. – All rights reserved
 CQLコンソール(クエリでの確認を行う場合) 12


Slide 13

Slide 13 text

©2023 DataStax. – All rights reserved
 演習

Slide 14

Slide 14 text

©2023 DataStax. – All rights reserved
 本日の演習内容 14
 01_RAG_pdf.ipynb
 
 03_RAG_table_text_hybrid_search.ipynb
 
 https://github.com/YoshiyukiKono/langchain_for_beginners

Slide 15

Slide 15 text

©2023 DataStax. – All rights reserved
 01_RAG_pdf.ipynb 15
 ①初めに、リポジトリの「 data」フォルダの下の「 DataStax_Vector-search.pdf」をローカルにダウンロードします。 
 ②ローカルにダウンロードしたファイルをCollaboratoryに、 アップロードします。


Slide 16

Slide 16 text

©2023 DataStax. – All rights reserved
 サンプルアプリ

Slide 17

Slide 17 text

©2023 DataStax. – All rights reserved
 サンプルアプリ 17
 企業保有データ
 Streamlit(https://streamlit.io/)を利用したサンプルアプリ (同じ書籍データを利用・テーブル名などの差異があります) https://github.com/YoshiyukiKono/gen_ai-sandbox/tree/main/streamlit _chatbot

Slide 18

Slide 18 text

©2023 DataStax. – All rights reserved
 従来のアプリケーションとの違い 18
 自由な表現による
 問い合わせ
 「機械学習」から
 「データサイエンス」、「データ サイエンティスト」のように意味 的に関連する
 言葉を含めて推薦


Slide 19

Slide 19 text

©2023 DataStax. – All rights reserved
 告知など

Slide 20

Slide 20 text

©2023 DataStax. – All rights reserved
 Qiitaにてブログ発信中:ぜひフォローください! 20
 https://qiita.com/organizations/datastax

Slide 21

Slide 21 text

©2023 DataStax. – All rights reserved
 生成AI・ベクトル検索にDataStaxの技術を! 21
 ご質問・デモ・ご商談のご依頼は、[email protected]へお問合せください。
 
 POCのご要望についても、お待ちしています。


Slide 22

Slide 22 text

©2023 DataStax. – All rights reserved
 ありがとうございました