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
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
400
MESAワールドモデルとマルチエージェントによる人間行動シミュレーション :仮想から現実世界への架け橋
oggata
0
33
ecological_niche_reward_function_v3
oggata
0
15
NextGen Chore
oggata
0
17
MESA_MINI_DINOv2_Pipeline
oggata
0
15
Self-Introduction
oggata
0
38
Gaming & PhisicalAI
oggata
0
72
savanna_sim.py
oggata
0
12
Beyond LLM:世界モデルが切り拓くフィジカルAIの時代
oggata
0
42
Other Decks in Technology
See All in Technology
【CEDEC2026】Creative Approaches to Localizing the Dialects and Unique Speech of Umamusume: Pretty Derby Characters in English
cygames
PRO
3
7.4k
20260608_Codexの可能性_ノンプログラマー向け_大城追記
doradora09
PRO
0
800
SmartHR Engineering Team Deck
smarthr
1
2.1k
Sets in Go
ramalho
1
350
同じWAFが、攻撃の“形”は弾く── 正当な“形”の不正は通す
kuroneko13
0
180
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.2k
認知負荷をGemini で溶かす — GKE 基盤「Orbit」における AI エージェントの実践
sansantech
PRO
1
290
モダンフロントエンド 開発研修
recruitengineers
PRO
4
620
ブラウザ研修 2026
recruitengineers
PRO
6
980
ガバメント AI 源内を地方自治体は活用できるのか可能性と課題、期待について
takeda_h
1
400
カートの信頼性を担保するWireMockを使ったe2eテスト
ykagano
0
240
モノリス Rails でも日中に rails db:migrate を走らせたい! / Daytime rails db:migrate on Monolithic Rails!
euglena1215
4
580
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.8k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
45k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
240
Building AI with AI
inesmontani
PRO
1
1.1k
Optimising Largest Contentful Paint
csswizardry
37
3.9k
Building an army of robots
kneath
306
46k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
270
Ruling the World: When Life Gets Gamed
codingconduct
0
290
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
480
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.