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
⾮構造化データを価値に変える AI エージェント基盤とその組織
ivry_presentationmaterials
0
150
AIは「聞けば答える」から「任せると自分で進める」へ - JACTIMペナン地域部会・ペナン三水会講演
knishioka
0
110
大型犬好きによるPugの紹介
yamanoku
1
150
ハードウェアコンペでもAI駆動開発が進んでいる話
iotengineer22
1
710
ゲームのリアルタイム通信から見た QUIC と MoQ
segadevtech
0
120
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
490
Getting Started with Google Antigravity
glaforge
0
240
M5Stackで作る BLEマウス GPSログの世界
tomokusaba
0
200
WasmをRustにする
sansantech
PRO
0
220
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
4
1.3k
不可逆な意思決定を避けながら10億超の顧客データを AI Ready にするデータ基盤設計
baseballyama
1
310
AI時代のPRレビューにどう向き合うか?
kairim0
1
220
Featured
See All Featured
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
810
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
270
Evolving SEO for Evolving Search Engines
ryanjones
0
320
Test your architecture with Archunit
thirion
2
2.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.4k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
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