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
なぜ今 AI Agent なのか _近藤憲児
Search
Kenji KONDO
November 15, 2024
Technology
7.2k
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
なぜ今 AI Agent なのか _近藤憲児
Kenji KONDO
November 15, 2024
Transcript
18 slides
なぜ今 AI Agent なのか LLMアプリケーションの次なる進化 近藤憲児
AI Agent の定義と特徴 Agentとは 環境と対話し、データを収集し、そのデータを使用して自己決定タ スクを実行して、事前に決められた目標を達成するための ソフトウェアプログラム https://aws.amazon.com/jp/what-is/ai-agents/ 特に注目したい特徴は、 「LLMに一度だけ依頼して良い結果を得る」というアプローチではなく、
「LLMを何度も呼び出して複雑な処理を自動的に実行する」という点
企業の参入 • AWS • Microsoft • 富士通 • CTC •
NTTデータ • … 注目プロダクト • Perplexity • GenSpark • FeloAI • Cursor • Dify • … 急速に広がる AI Agent https://jp.reuters.com/business/technology/6RXM3NLXNZOQDPY3OB7R6A77BY-2024-10-21/ https://aws.amazon.com/jp/what-is/ai-agents/ https://pr.fujitsu.com/jp/news/2024/10/23.html https://www.nttdata.com/global/ja/news/release/2024/102401/
OpenAI も Agent を出すらしい 急速に広がる AI Agent https://xenospectrum.com/openai-to-release-next-generation-ai-agent-operator-for-developer/
対象とする受講生
AI Agentの登場の背景の一つに、LLMに要求されるタスクの複雑化がある 例えば、カスタマーサポートタスクを考える: • 最初は「顧客の質問への回答」という単純なタスク • そこに「過去の類似事例の参照」「製品仕様の確認」「トラブルシュー ティングの提案」「フォローアップの必要性判断」といった要求が追加 • →
これらを一つのプロンプトで処理しようとすると、対応の正確性と 一貫性が保てない この問題に対する自然な解決策が、 タスクを分割し、それぞれを独立してLLMに任せるというアプローチ = Agent なぜ Agent か?: 複雑化するタスク
https://speakerdeck.com/kenjikondobai/puronputoenziniaringudeganbaranai-agentic-workflow-he-jin-teng-xian-er なぜ Agent か?: 複雑化するタスク こちらに複雑化するタスクの例を書いてます
なぜ Agent か?: LLM の制約 LLMの基本的な制約 • 現在時刻を知ることができない • Web
ページにアクセスできない • データベースにアクセスできない • ファイルシステムを操作できない • 外部APIを呼び出すことができない • … 実現したいのは、これら「道具を使えるLLM」= Agent RAG(検索拡張生成)も「検索という道具を使うAgent」と捉えることができる。
どうやって AI Agent をつくる?
Agentをどうやって作る?: ReAct https://react-lm.github.io/
Agentをどうやって作る?: Agentic Workflow https://youtu.be/sal78ACtGTc?si=fVWCLQkgnd64bBFd
Andrew Ng によって提唱されたアプローチ 「一度で出力の生成を完結させるのではなく、LLMが反復的にタスクをこなし、出力を改善さ せる」という考え方を核としている • Reflection(自己改善) ◦ LLMが自身の出力を評価し改善する。推論の質を段階的に向上させる •
Tool Use(ツール活用) ◦ LLMの能力を外部ツールで拡張する。APIやデータベースなど、様々なツールの統合 • Planning(計画立案) ◦ 複雑なタスクを段階的に分解する。目標達成のための戦略を立案する • Multi-agent collaboration(協調) ◦ 専門化された複数のAgentの連携。タスクの分担と統合 Agentをどうやって作る?: Agentic Workflow
Agentをどうやって作る?: Agent Design Pattern Catalogue
Agentをどうやって作る?: Agent Design Pattern Catalogue • Yue Liu らによって提案された、 エージェントの開発を支援するための
18 の設計パターン • 先の Agentic Workflow も包含している • GoF(Gang of Four) の雰囲気
Agentをどうやって作る?: 実装フレームワーク LangGraph • 基本的に LangChain ベース • node と
edge の概念を用いて複数の LLM の協調を管理する • 書籍「LangChainとLangGraphによるRAG・AIエージェント[実践]入門」では LangGraph を用いて Agent Design Pattern Catalogue で示された設計を実装す る方法が提示されている AutoGen • Microsoft 製 • 非同期・分散処理など、スケーラブルなアーキテクチャにこだわりを感じる Swarm • OpenAI 製(※議論あり) • まだ実験的
先進的な例: sakana.ai の AI Scientist
先進的な例: sakana.ai の AI Scientist 特徴的な点: • 科学的営みの自動化という野心的な目標 • 2040年には機械学習分野でAIが自律的に研究を進められるというビジョン
• Agentic Design Patterns の実践的な活用 • LLMを数十〜百回も呼び出す大規模な連携 https://k-kondo-s.github.io/sakana-ai-scientist-code- analysis/ 実装の詳細まとめたので みてね
「AGI への架け橋」 として注目したい AI Agent
More Decks by Kenji KONDO
See All by Kenji KONDO
「AI倫理」以前_近藤憲児
kenjikondobai
1
96
AI_Agent_の作り方_近藤憲児
kenjikondobai
19
8.1k
「これが最小になる値はな〜んだ?」問題_最適化問題を考える_近藤憲児
kenjikondobai
0
320
プロンプトエンジニアリングでがんばらない-Agentic Workflow へ-近藤憲児
kenjikondobai
6
4.9k
AI ChatBot 開発 Tips-近藤憲児
kenjikondobai
0
310
最適ワークスとAI-近藤憲児
kenjikondobai
0
130
LLMの評価-近藤憲児
kenjikondobai
1
510
スカイディスクの LLM の取り組み-近藤憲児
kenjikondobai
0
420
Spring Cloud Data Flow で構成される IIJ IoTサービス
kenjikondobai
0
490
Other Decks in Technology
See All in Technology
プラガブルで宣言的なソフトウェアファクトリーを支えるTypeScript
timakin
5
2k
実測データからサービスの成長余力を測る。負荷シナリオ・テストデータ・限界値の設計
kazatohiei
1
190
その修正で本当に速くなったのか? k6とOpenTelemetryで確かめる性能改善 / Performance review with k6 and OpenTelemetry
ymotongpoo
3
480
NutanixへのSSHアクセスの今後について
shadowhat
0
190
コーディングできない僕にBobが舞い降りた
shumpei3
0
230
競馬予想をAIでやってみた話
yoshimura_datam
0
150
20261119_AgentCore
takuyay0ne
2
340
さようならSSH鍵、こんにちはゼロトラスト ― AIフレンドリーで快適な自宅鯖SSH
atalie2m
14
7.6k
技術同人誌を作る方法
yoshimura_datam
0
110
AWS Blocksで AIエージェント作れるの知ってます?
kmiya84377
1
170
正しくWeb サイトを守るためのコンテンツセキュリティーポリシー
hinalin
0
640
kubellの最新データ分析環境
kubell_hr
2
290
Featured
See All Featured
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.5k
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Writing Fast Ruby
sferik
630
63k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.2k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The SEO identity crisis: Don't let AI make you average
varn
0
630
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
480
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
620
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
320
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Well, that’s weird…
csswizardry
3
250