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
About RAG & Agent
Search
oggata
November 02, 2024
Technology
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
About RAG & Agent
oggata
November 02, 2024
More Decks by oggata
See All by oggata
セルから世界へ ------Life Gameからパックマン、そしてWorld Modelまでの世界生成シミュレーション入門
oggata
0
420
MESAワールドモデルとマルチエージェントによる人間行動シミュレーション :仮想から現実世界への架け橋
oggata
0
37
ecological_niche_reward_function_v3
oggata
0
20
NextGen Chore
oggata
0
21
MESA_MINI_DINOv2_Pipeline
oggata
0
18
Self-Introduction
oggata
0
44
Gaming & PhisicalAI
oggata
0
78
savanna_sim.py
oggata
0
13
Beyond LLM:世界モデルが切り拓くフィジカルAIの時代
oggata
0
52
Other Decks in Technology
See All in Technology
Genieを崇めよ
kameitomohiro
0
170
エージェントはローカル、検証はMicroVM — Lambda MicroVMsでつくるServerless CI
fujioka6789
3
540
GoのInterface内部構造から学ぶ!最高パフォーマンスを出すコード設計
yappli_developers
0
200
開発投資の期待値を上げるプロダクトロードマップづくり ~プロダクトエンジニアが越境して事業を伸ばす~
kekekenta
1
230
新機種発売前に見直そう!端末移行で再ログインが要るアプリ・要らないアプリは何が違うのか 〜シームレスに再開できる設計と実装〜
zozotech
PRO
0
220
アプリログインとWeb認証基盤をつなぐ ASWebAuthenticationSession 作法
shimastripe
1
350
なぜ「決定性」が 決定的に重要なのか? Durable Execution 基盤の数理的理解 #serverlessjp / ServerlessDays Tokyo 2026
ytaka23
3
970
AI de Idea
kawaguti
PRO
2
130
Cloudflare Workers 向けアプリを C# で構築する ~WASM Native AOT への道~
nenonaninu
1
600
その Lambda、8分で 管理者権限まで奪われます
k1nakayama
7
3.3k
越境するなら専門用語を使うな高校校歌 / If you wanna cross border, you shouldn't use jargon
vtryo
0
150
SREへの勘違いに気づいた後の話
tomodakengo
0
110
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
4
590
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
460
Ruling the World: When Life Gets Gamed
codingconduct
0
340
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
540
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
290
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
600
The Language of Interfaces
destraynor
162
27k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
700
Transcript
RAG & Agent Study Group
number of years it took for each product to gain
50 million users Airlines ... 68yrs Automobiles ... 62yrs Telephone ... 50yrs Credit Card ... 28yrs Television ... 22yrs ATM ... 18yrs Computer ... 14yrs CellPhone ... 12yrs Internet ... 7yrs Youtube ... 4yrs Facebook ... 3yrs Twitter ... 2yrs Pokemon Go 19days ChatGPT Sprints to One Million Users Netflix 3.5yrs Airbnb 2.5years Facebook 10month Dropbox 7month Spotify 5month ChatGPT 5days prompt LLM 2022.12 ChatGPT
RAG Agent prompt LLM LLM LLM memory tools reasoning prompt
prompt
RAG LLM prompt
Open Book/ Closed Book LLMがより正確な方法で質問に答えるために専門的な知識体系を構築
大規模言語モデル 検索システム Application 1.Question 3.Generation 2.Retrieval 4.Answer フルテキスト検索 ベクトル検索 セマンティック検索
ハイブリッド検索 Application Server Ochastrator About RAG(Retrieval Augmented Generation)
RDB VectorDB 製品事例 データ構造 最大サイズ データの種別 クエリの仕組み クエリタイプ Oracle MySQL
etc.. table 容量が増えると遅くなる 構造化データがメイン キーワード検索 テーブルjoin を使った 複雑なクエリも可能 Chroma Pinecorn Vector 容量が増えても遅くならない 非構造化データ(画像、動画、音声など) ベクトルの類似度 セマンティック検索、類似度検索が主 RDB / VectorDB
Word2Vec
(20,20) (22,18) (20,20) (20,20) (20,20) (3,25) C( , ) =
0.999 C( , ) = 0.754 Cos類似度
PPT テキストデータ チャンク分割 チャンク分割 チャンク分割 チャンク分割 Embeddingの生成に使用できるモデルでは、入力されるトークン数に上限があるため、トークン制限を上回るドキュメントの場合には、チャンク分割が 必要となってきます。 単にチャンク上限で分割するだけではなく、前後のチャンクでワードを20%程度被せるなど 工夫が一般的な方法となります。
Embedding
None
通常のRAGの場合…主人公の彼女は誰? = >回答できる ペンションで働いている人物を全員教えて => 回答できない(可能性がある) GraphRAG
[0.012,0,34,0.5,0.1956,0.345] GPT4o > Multimodal Vector Embeddings Vector Database Embedding Model
Image text video audio 都会の景色 林間学校 山登り
GPT4o
None
Agent LLM memory tools reasoning prompt
AI Agent ? 自律的にタスクをプランニングする 外部ツールを活用 実行結果をもとに、自身で行動を修正
Google Palm Say Can LLMは凄まじい成果を発揮しているが、推論(Chain of Thoughtなど)と行動(検索・計画 の生成などなど)については別テーマとして研究されてきた。本論文では、LLMを使用して推 論と行動の両者を活用し、2つの相乗効果を生む方法(ReAct)を提案する。 ReActを様々な言語タスクと意思決定タスクに適用し、効率性を実証する。具体的には、質
疑応答と事実検証においてWikipediaAPIを活用して種々の問題を克服する。更に、2つの対話 型の意思決定ベンチマーク(ALFWorldとWebShop)について、promptに1つか2つの例を入 れるのみで、模倣学習と強化学習に対して34%と10%の成功率の向上を上げた。 https://arxiv.org/abs/2210.03629 CoT & ReAct > Reasoning
None
google_search = GoogleSearchAPIWrapper() llm_math_chain = LLMMathChain(llm=llm, verbose=True) tools = [
Tool( name = "Google Search", func=google_search.run, description="最新の話題について答える場合に利用することができます。ま た、今日の日付や今日の気温、天気、為替レートなど現在の状況についても確認す ることができます。入力は検索内容です。" ), Tool( name="Calculator", func=llm_math_chain.run, description="計算をする場合に利用することができます。" ) ] agent = initialize_agent(tools, llm, agent="zero-shot-react-description", verbose=True) agent.run("レオナルド・ディカプリオの恋人は誰?そして彼女の年齢を0.43乗す ると何歳になる?") LangChain
iPaaS(Integration Platform as a Service)
レシピサイト->買い物->配送 プランニング->旅行サイト->チケット購入 Meal kit Delivery Agent Trip Adivisor Agent
None
None
None
GitHub Codespaces / GitHub Spark …
https://youtu.be/22wlLy7hKP4?si=lMps7Hq1C3g8KJRg Jesse Lyu - Founder and CEO - rabbit inc.