Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Defensive LLM Calling
Search
Ogata Katsuya
December 05, 2025
210
0
Share
Defensive LLM Calling
Ogata Katsuya
December 05, 2025
More Decks by Ogata Katsuya
See All by Ogata Katsuya
ML基盤構築インターン最終発表 ~k8s カスタムスケジューラ~ / ML platform internship final presentation
ogatakatsuya
0
42
【初心者向け勉強会#9】MLOpsの基本 ~構築から運用まで~ / MLOps Basics: From Development to Operations
ogatakatsuya
1
180
AIで加速する文化祭ソフトウェア開発 / Software Development for School Festivals Accelerated by AI
ogatakatsuya
0
60
Vibe-Coding で作ったアプリを 文化祭で運用した話 / The story of running an app I built with Vibe-Coding at a school festival
ogatakatsuya
1
190
ハッカソンの勘所とエンジニアリングへの活かし方 / What Hackathons Teach Us and How to Bring That into Engineering
ogatakatsuya
0
65
Kubernetesで分散処理をやってみる-Kafkaを添えて-
ogatakatsuya
0
260
ソフトウェアアーキテクチャ入門 / Introduction to Software Architecture
ogatakatsuya
2
190
大学のサークルプラットフォームを作った話
ogatakatsuya
0
140
Go College
ogatakatsuya
0
200
Featured
See All Featured
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
270
Un-Boring Meetings
codingconduct
0
310
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
240
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
930
A designer walks into a library…
pauljervisheath
211
24k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Google's AI Overviews - The New Search
badams
0
1k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
220
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
54k
HDC tutorial
michielstock
2
690
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
170
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
Transcript
Kyoto Tech Talk #9 2025/12/05 Defensive LLM Calling Katsuya Ogata
ࣗݾհ • ໊લ: ॹํ ࠀ࠸ʢ͓͕ͨ ͔ͭʣ • ॴଐ: େࡕେֶ ใՊֶݚڀՊ
• झຯ: ొࢁɾཱྀߦɾαφ • MLLMΛ༻͍ͨಈըղੳͷݚڀ • ϝϧϘϧϯʹߦͬͯ·ͨ͠ • X: @ogata_katsuya • ݸਓ: www.ogatakatsuya.com ϝϧϘϧϯཱྀߦ ޒ৭ϲݪͷొࢁ
None
AWS 2025/10/20 Google Cloud 2025/06/13 Azure 2025/10/29
ΫϥυյΕΔલఏͰར༻͢Δ
2025ʹো͕ى͖ͯͨͷʁ
શ෦
োͷݪҼͱ༰ • ݪҼ • AIΛϗετ͍ͯ͠ΔΫϥυͷো • ίϯύΠϥͷόάʢΠϯϑϥىҼʣ • ༰ •
ϨΠςϯγͷٸܹͳ૿Ճ • ਫ਼ͷԼ • ͦͦLLMΛݺͼग़͢͜ͱ͕Ͱ͖ͳ͍
LLMյΕΔલఏͰར༻͢Δ
🤔
Application Layer Transport Layer Network Layer Network Access Layer TCP/IP
τϥϯεϙʔτ • ΞυϨεϙʔτ൪߸ͷΈʢIPΛͬͯΔͷωοτϫʔΫʣ • ͲΜͳωοτϫʔΫͷܦ࿏Λ௨Δ͔Βͳ͍ • ωοτϫʔΫͦͷͷΛ৴པ͍ͯ͠ͳ͍લఏͰ࣮֬ʹσʔλΛૹΓಧ͚Δ • ࠶ૹ੍ޚɺ੍ޚɺޡΓݕग़ •
ʢͷߟ͑Δʣτϥϯεϙʔτͷׂ • ΞϓϦέʔγϣϯʹωοτϫʔΫͷΓޱΛݟͤΔ • ΞϓϦέʔγϣϯωοτϫʔΫͷҧ͍Λҙࣝ͠ͳͯ͘ྑ͍ • ωοτϫʔΫͦͷͷͷ৴པੑΛ୲อ͢Δ
🤔
Application Layer Transport Layer Network Layer Network Access Layer TCP/IP
Application Endpoint ????? LLM Calling LLM Calling ͜͜
LLM Callingʹ͓͚Δτϥϯεϙʔτ • LLM Providerͷҧ͍Λٵऩͯ͠ɺͦͷΓޱ͚ͩΛݟͤΔ • நԽ • Ӆṭ •
LLM ProviderΛ৴པ͍ͯ͠ͳ͍લఏͰ࣭Λ୲อ͢Δ • ϦτϥΠॲཧ • ଞͷProviderͷϑΥʔϧόοΫ • ඞͣԿ͔͠ΒͷϨεϙϯε͕ฦͬͯ͘Δ
PythonͰͷ࣮ྫ abcΛ༻͍ͨநΫϥεͷ࡞ LiteLLMͱ͍͏ศརϥΠϒϥϦ͋Γ·͢
PythonͰͷ࣮ྫ ֤ϓϩόΠμʔͰͷநϝιουͷ࣮
PythonͰͷ࣮ྫ LLM Callingͷτϥϯεϙʔτ(͔ͳΓંͬͯ·͢)
LLM Callerઢ • τϥϯεϙʔτʹඞཁͳύϥϝʔλΛ͚ͩ͢ • ͲΜͳϓϩόΠμͰ࣮ߦ͞ΕΔ͔Βͳ͍ • ΠϯλʔϑΣʔε͚ͩΛҙࣝͯ͠ɺͦΕҎԼΛؾʹ͠ͳ͍ • ͚ͩͲɺҰఆ࣭͕อͨΕͯɺ͋ΔఔͷͰฦ͕ฦͬͯ͘Δ
ສࣄղܾʁʁʁ • LLMͷোૉʹΤϥʔΛు͍ͯམͪͯ͘Εͳ͍ • Ϩεϙϯε͕500൪ͳΒେৎ • ϨΠςϯγ͕૿Ճ͢Δ • λΠϚʔͱϦτϥΠॲཧͰͳΜͱ͔ͳΔʢ͔ʣ •
ਫ਼͕མͪΔ • োΛײ͢Δ͜ͱ͕͍͠ • ࠷ऴతʹɺ͜·ΊͳࢹͱɺϢʔβʔͷʹৗʹහײͰ͋Δ͜ͱ͕ॏཁ • LangfuseLangsmithͳͲͷLLMࢹମ੍ͷඋඞཁ
·ͱΊ • ͜ͷLTʹ໌֬ͳ͑͋Γ·ͤΜ • LLMͷ࣭Λ୲อ͢ΔͷϓϩόΠμͪΖΜɺϢʔβʔΛෛ͍ͬͯ Δͱ͍͏ఏى • ࠷ݶఏڙ͖͢αʔϏεͷ࣭Λ୲อ͢ΔͨΊͷϑΥʔϧόοΫઓུΛߟ͑ ͍ͯ͘ඞཁ͕͋Δ •
օ͞Μ͕࣮ફ͍ͯ͠ΔϑΥʔϧόοΫઓུɾख๏Λڭ͍͑ͯͩ͘͞
Reference • https://azure.status.microsoft/en-us/status/history/ • https://www.youtube.com/watch?v=D297rfqSFvY • https://status.cloud.google.com/incidents/ow5i3PPK96RduMcb1SsW • https://www.mobihealthnews.com/news/google-cloud-outage-disrupts-ai- services-used-healthcare
• https://www.youtube.com/watch?v=Ar_ckPSwe1Y • https://www.anthropic.com/engineering/a-postmortem-of-three-recent-issues