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
社内規程RAGの精度を73.3% → 100%に改善した話
Search
oharu121
February 26, 2026
Programming
9.2k
13
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
社内規程RAGの精度を73.3% → 100%に改善した話
RAGの精度を73%から100%に引き上げた、実録・チャンキング戦略とデータ前処理の工夫
oharu121
February 26, 2026
Other Decks in Programming
See All in Programming
Verilogで学ぶCPU自作入門
uyuki234
8
4.2k
contenteditable と日本語入力に向き合う
colorful12
0
210
Simple Storage Service(S3) is not simple
iwatsukayura
0
310
GraphQL の onError と Nullability のこれから
quramy
0
140
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
1
160
Jetpack Compose Mechanisms
skydoves
3
840
残高管理から台帳サービスへの進化
artoy
1
210
オーケストレーション記述言語 Katari
yukikurage
0
150
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
180
Workers Cache を知る
syumai
0
370
ActionController meets Protocol Buffers
sorah
0
660
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.3k
Featured
See All Featured
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
280
Designing for Performance
lara
612
70k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
GitHub's CSS Performance
jonrohan
1033
470k
エンジニアに許された特別な時間の終わり
watany
109
250k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
580
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
How to train your dragon (web standard)
notwaldorf
96
6.9k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
610
Transcript
社内規程RAGの精度を73.3% → 100%に改善した話 複雑な手法より、まずは「チャンクサイズ」を見直 すべき理由 Yuchen Lin(リン ユウチェン)
自己紹介 & プロジェクト概要 自己紹介 • 名前:リン ユウチェン • 実績:AIハッカソンのファイナリスト10組 •
最近のマイブーム:OpenClaw(旧ClawdBot) プロジェクト概要 • RAGを探索するデモプロジェクト • 目的:チャンキング戦略を検証する • 開発:Next.js + FastAPI + Gemini 2.0 Flash • 課題: 社内規程(通勤手当、休暇など)を対象にした RAG。最初は「正解率 73.3%」という微妙な結果に。
RAGを「Google検索」で例えると? ステップ1:検索 ステップ 2:読解 クエリを送信すると、システムは「 上位K件」の結果を見つける →(Google検索結果1ページ目 のようなもの) そのK件の結果をLLMに渡します →人間がスニペットを読む
ように 検索結果をもとに、ユーザのクエ リに回答する ステップ 3:回答 答えが検索結果の2ページ目にある場合、LLMはそ れを見ることができない。 どんなに「賢い」LLMであっても、読んでいないこと には答えられない。
RAGが失敗する「あるある」 3選
解決への体系的アプローチ:3つの改善軸でボトルネックを特定 精度低下の要因を特定するため、以下の 3つの改善軸 に沿って複数の技術的な戦略を評価しまし た。これにより、最も効果的な打ち手は何かをデータに基づき判断します。 データ (Data) チャンキング (Chunking) 検索
(Retrieval) 生成 (Generation) 1. データ自体の最適化 (Data Preprocessing) 検索対象のドキュメント構造 そのもの を改善できるか。 テスト項目:従業員種別ごと のドキュメ ント分割 2. チャンキングの最適化 (Chunking Strategy) テキストをどのように分割・保持する か。 テスト項目:標準、大きめ、親子チャン ク、HyDE(仮説的質問) 3.検索後処理の導入 (Post-Retrieval) 検索結果をどう絞り込み、順位付けす るか。 テスト項目:クロスエンコーダーによる 再ランク付け
検証結果:データ最適化がほかの手法を凌駕 テスト条件 • 評価クエリ: 15問(例外規定の取得をテスト) • 各戦略で同じクエリセットを実行 • 正解判定: 必須キーワード
の有無で自動判定
チャンキング戦略の比較分析:なぜ「大きなチャンク」が勝ったのか 1. 標準チャンク イメージ Google検索に表示される 1段落だけ を読 んで回答しようとする状態。 イメージ 検索結果リンク(子)
をクリックして、前後 の文脈を含めた「 ページ全体(親) 」を LLMに渡す状態。 イメージ Google検索に表示される 数段落分 を読 んで回答しようとする状態。 2. 大き目チャンク 3. 親子チャンク
さらなる精度向上に向けた高度なアプローチ 1. 「聞き返す」検索 2. マルチインデックス振り分け 3.「意味の切れ目」の自動認識 ユーザーの質問が曖昧なとき、勝手に 検索せずエージェントが 逆質問 する。
規程の種類ごとに DBを分け、クエリにお じてエージェントが 最適な DBを選択する。 文書の構造や意味のまとまりを理解し、 動 的にチャンクサイズを変える。
Zenn 記事をチェック! ご視聴ありがとうご ざいました。 Githubをチェック!