Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Bedrock Knowledge baseを使って今年の上半期のニュースを聞いてみた
Search
KMiura
July 29, 2024
Technology
290
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Bedrock Knowledge baseを使って今年の上半期のニュースを聞いてみた
2024/07/29【懇親会】JAWS-UG 名古屋 生成AI夏祭り
https://jawsug-nagoya.connpass.com/event/325301/
KMiura
July 29, 2024
More Decks by KMiura
See All by KMiura
運用しているアプリケーションのDBのリプレイスをやってみた
miura55
1
1.2k
Amazon Rekognitionを使ったインターホンハック
miura55
0
140
Pythonでルンバをハックしてみた
miura55
0
270
あなたの知らないクラフトビールの世界
miura55
0
480
Storage Browser for Amazon S3を触ってみた + α
miura55
0
340
Cloudflare R2をトリガーにCloudflare Workersを動かしてみた
miura55
0
340
あのボタンでつながるSORACOM
miura55
0
200
Postman Flowsで作るAPI連携LINE Bot
miura55
0
460
Lambdaと共に歩んだAWS
miura55
3
1.1k
Other Decks in Technology
See All in Technology
組み立てて楽しむ AWS Blocks 入門
kmiya84377
0
230
Jetson Orin Nanoとk3sとローカルLLMで音声文字起こしシステム作ってみた
y_sera15
0
120
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
1
1.7k
USB PDを使ってスマホを労わりたい
raspython3
0
160
ファミコンでPHPを動かす / PHP on the Famicom side b
tomzoh
0
140
使いこなすために知っておきたい Azure SRE Agent アンチパターン
torumakabe
2
480
Loop Engineering これくらいでいい
mikanichinose
0
220
不可逆な意思決定を避けながら10億超の顧客データを AI Ready にするデータ基盤設計
baseballyama
1
300
分析AIエージェントを育てる、動く環境を育てる
codatum
1
980
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
7
2.9k
Datadog の学び方 - あるいは、オブザーバビリティを学ぶとは何か
mananyuki
1
550
SDDの運用にめげずに向き合った話
sansantech
PRO
1
140
Featured
See All Featured
Become a Pro
speakerdeck
PRO
31
6.3k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
560
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Un-Boring Meetings
codingconduct
0
450
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
Building Flexible Design Systems
yeseniaperezcruz
330
41k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
750
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
540
How to build a perfect <img>
jonoalderson
1
6.1k
Transcript
Bedrock Knowledge baseを使って今 年の上半期のニュースを聞いてみた KMiura(@k_miura_io)
はじめに一言 今回の内容は前日に思いついたので十分に検 証しきれてないです いつか完全版をお話するつもりではいます…
自己紹介 • 三浦 耕生(こうき) • Acallのバックエンドエンジニア • JAWS UG名古屋&神戸 運営
• 好きなAWSのサービス:AWS IoT, Lambda, ECS @k_miura_io koki.miura05
このLTを覚えてますか? https://bit.ly/4cWU2Jr
LTについて今北産業 • re:Invent 2023で発表されたAWS Step Functions の新機能「Call third-party API」を触ってみたとい う話
• デモとしてNews APIを使ってその日のヘッドライン ニュースをSlackのAPIで投稿するステートマシンを Lambdaレス作った • 実際に使ってみてのポイントや詰まったところを シェア
今回はこのS3バケットを使う話
データセットとして良さそう • LTで実装してからはEventBridgeを使って 毎日8時にステートマシンを実行している • 無課金なのでSlackの投稿は90日後に見 れないが、S3に溜めてあとから閲覧できる ようにした • 毎日安定稼働しているので、まぁまぁな
データ量になっている
Bedrockでいい感じにできないだろうか?
S3のデータをナレべべにできる仕組み があるらしい • Amazon BedrockのKnowledgebaseを使うとS3をソースにフルマネージドなRAGを実現 できそう • 調べてみると外部のベクトルデータベースを使う方法があるが、わざわざ用意しなくても OpenSearch Serverlessを使うことができる(むしろ今のところそれが推奨っぽい)
DEMO
実際にデモチャットで確認 • 答えは帰って来るがなんか微妙… • ここで訪ねている今日は7/29に対して回答した内容は 6/27のニュース…
どうすれば精度上がりそう? • 読み込ませたソースになっているファイルがAPIのレスポンスをそのまま保存して いるだけなのでCSVとかで整形したほうがいいかも • Lambdaレスを売りにしてたけどLambdaに頼らざるを得ない • ソースごとにメタデータ情報を記載したjsonファイルをバケットに足すことで応答精 度が上がるそう •
他にいい方法知っている人いたら教えてくださいw
まとめ • ナレべべを駆使して上半期のニュースを尋ねようとした • 何も考えずに今まで蓄積したデータでもなんとなく動かせはした • RAGがなんとなく分かった気がする
宣伝 https://jawspankration2024.jaws-ug.jp/ja/
宣伝2 https://jawsug-nagoya.connpass.com/event/326683/
END