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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
データ_AIの事業の勝敗をわけるもの
nek0128
1
470
今話題のAI「Jev」って何? 宇宙最速で学ぶ会
minorun365
PRO
30
19k
SREへの勘違いに気づいた後の話
tomodakengo
0
140
Claude Codeを「使うほど育つ」AI秘書にするノウハウ
minorun365
PRO
33
31k
安心して変更できるWebフロントエンドの作り方
pirosikick
5
2.9k
Vibe Coding で作ったプロダクトをどう安全に動かすか / How to Safely Run Products Built with Vibe Coding
glidenote
0
490
Oracle Cloud Network Path Analyzerを試してみた/I Tried Out Oracle Cloud Network Path Analyzer
masakiokuda
1
110
白金鉱業Meetup Vol.25 アウトカムが二値のデータに対するCausal Impact
brainpadpr
0
290
時うどん〜Socket.getifaddrsで学ぶネットワーク編 / Tokiudon: The Socket.getifaddrs Edition
coe401_
4
220
顧客に向き合う開発組織へ。リアーキテクチャとフィーチャーチーム化で挑む組織改革
safie
0
2.3k
[Kiro Meetup #7] Kiro Crew Dive Deep
konippi
0
220
Cloudflare Workers 向けアプリを C# で構築する ~WASM Native AOT への道~
nenonaninu
1
1k
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
770
GraphQLとの向き合い方2022年版
quramy
50
15k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
We Have a Design System, Now What?
morganepeng
55
8.3k
Faster Mobile Websites
deanohume
310
32k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
910
Building AI with AI
inesmontani
PRO
1
1.2k
Typedesign – Prime Four
hannesfritz
42
3.2k
sira's awesome portfolio website redesign presentation
elsirapls
0
420
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.