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 RAG Evaluationを活用したRAGの定量的評価方法の紹介
Search
Yodeee
December 05, 2024
Technology
380
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Bedrock RAG Evaluationを活用した RAGの定量的評価方法の紹介
Yodeee
December 05, 2024
More Decks by Yodeee
See All by Yodeee
OCI上で実現するAIエージェント開発方法の紹介
yodeee
0
72
re:Inventから見えたレガシーモダナイぜーションのこれから
yodeee
0
170
Moxie
yodeee
0
28
Agents for Amazon Bedrockで何ができるようになるのか
yodeee
2
1.2k
Amazon Verified Permissionsをプロダクトにどう組み込むかを考える
yodeee
0
240
アウトプットし始めたら QOL (Quality of Learning) が爆上がりした話
yodeee
0
150
Pulumi AIで開発体験は変わるのか
yodeee
0
130
GPT × Alexa × AWS で 英会話学習スキルを作った話
yodeee
0
330
Other Decks in Technology
See All in Technology
検証フェーズはAIの回答を判断するための学習機会
toru_kubota
2
520
全人類(ほぼ)AWS Organizations の上でAWSを利用している、その世界を知る話
htan
1
120
freeeらしさをAIとともに作る / Creating the freee Experience with AI
ymrl
0
210
20260930_Gemma4_Hands-on
tsho
0
240
味覇で作るパスタが美味い - 20261001_yabaubuki.dev
livesense
PRO
0
110
SREでアラート疲れを 解決しよう!
kairim0
1
210
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
17
120k
「Docker Desktop不要の時代」は 来たのか?
ueponx
0
230
More Freedom on the Same Shared GPU Cluster: A Small Team’s Experience with vCluster
nttcom
0
140
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
4
3.9k
使いこなすために知っておきたい Azure SRE Agent アンチパターン
torumakabe
2
410
データ品質を壊しながらSnowflakeのAIに分析させてみた
kawanago
0
540
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
900
Technical Leadership for Architectural Decision Making
baasie
3
590
The Curious Case for Waylosing
cassininazir
1
560
Making Projects Easy
brettharned
120
6.8k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
320
Designing for humans not robots
tammielis
254
26k
Crafting Experiences
bethany
1
370
Between Models and Reality
mayunak
4
490
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.3k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
610
The Mindset for Success: Future Career Progression
greggifford
PRO
0
530
Transcript
Bedrock RAG Evaluationを活用した RAGの定量的評価方法の紹介 ~ハンズオン参加レポート~ Fin-JAWS 第37回 ~re:Invent ラスベガス現地開催
依田 涼太 Ryota YODA • 金融系ソフトウェアを設計、開発 • 現在は米国シリコンバレーでAI等の 先端技術の調査・開発を担当 •
re:Invent初参加 (ホテル間の距離を全く計算しておらず、い くつかのセッション聞き逃した) @YodeeeTech
生成AIにおけるRAG評価の重要性 • 金融機関のAI利用アンケートによると 「情報検索」分野のAI活用において、期 待を下回るという評価がされている • 金融におけるAI活用では、誤った情報に よる回答生成を避けるためにもRAGの継 続的かつ定量的な評価が不可欠 日本銀行
2024年10月 「金融機関における生成AIの 利用状況とリ スク管理 -アンケート調査結果」 https://www.boj.or.jp/research/brp/fsr/data/fsrb241021-1.pdf
Bedrock Knowledge Bases の RAG Evaluation機能が Preview リリース (米国時間12/1に発表) https://aws.amazon.com/about-aws/whats-new/2024/12/amazon-bedrock-knowledge-bases-rag-evaluation-preview/
RAG評価機能は①データの取り出し (Retrieval)と ②生成 (Generation)の評価を行う ① ②
RAGの評価には下記の項目が使用 + Coherence
• 新機能のKnowledge Base RAG Evaluation機能を活用し、 データ取得結果と生成結果を評価がどのように行え るのかを検証する ハンズオンセッションの概要 ~ AIM311
Evaluate the performance of your generative AI app in Amazon Bedrock ~
Step1: テストデータとしてJSONL形式で用意し、S3に格納 { "conversationTurns": [{ "prompt": { "content": [{ "text":
"Calculate the year-over-year percentage change in cash and cash equivalents for Octank Financial from 2020 to 2021." }] }, "referenceResponses": [{ "content": [{ "text": "2020 cash and cash equivalents: $350 million, 2021 cash and cash equivalents: $480 million, Percentage change = (2021 value - 2020 value) / 2020 value * 100 = ($480 million - $350 million) / $350 million * 100 = 37.14% increase" }] }] }] } プロンプト文 正解文
Step2: 評価モデルや評価メトリクスを設定する 評価する際に使用するモデルの設定 評価メトリクスの設定
事前に定義した評価項目のスコア結果を コンソール上で確認可能 設定した評価項目ごとのスコア 複数の評価結果を比較可能
評価結果はS3にJSONL形式で出力されるため、 BIツールやPythonを使用した独自の分析が可能
• RAG Evaluation機能により、Knowledge Baseからの取得結果、 LLMによる生成結果を複数の観点で定量的に評価できるようになった • 現状は自分でテストデータを作成し、S3に格納する必要がある。 Guardrail機能への統合などにより、使いやすくなるかも • ユースケースとしてはLLM
Opsに組み込み、RAGの自動テストなどの 活用が考えられる まとめ