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
明日から使える! プロンプトエンジニアリングのテクニック集
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Akira Sato
November 01, 2024
Technology
35
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
明日から使える! プロンプトエンジニアリングのテクニック集
今すぐ試せる!生成AI LT大会 〜旬のトピックをさっと習得〜にて登壇した内容です。
https://tech-lab.connpass.com/event/334890/
Akira Sato
November 01, 2024
More Decks by Akira Sato
See All by Akira Sato
聴くAzure Monitor 〜Strudelでインフラを鳴らす〜
satodayo
0
17
AOAIのエラーハンドリングについて
satodayo
0
81
AzureとAWS、RAGはどう作る?
satodayo
0
91
OpenAI Serviceの利用料金を細かく見える化するツール作ってみた
satodayo
0
220
MS Ignite 2025で発表されたFoundry IQをRecap
satodayo
3
520
AI Red Teaming Agentのご紹介
satodayo
0
190
そのアクセス層の変更本当にお得ですか?
satodayo
0
36
Difyの実行環境について
satodayo
0
36
CosmosDBのベクトル検索をご紹介
satodayo
0
33
Other Decks in Technology
See All in Technology
Rust で関数型ドメインモデリング
takonda
0
170
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
360
⾮構造化データを価値に変える AI エージェント基盤とその組織
ivry_presentationmaterials
0
210
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
290
sue445's proposals 2026
sue445
0
120
NDIでApple Vision Proにリアルタイム映像送信
jyouryuusui
0
130
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
2
320
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
180
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
300
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
450
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
200
Kiro Crewで「みのるん式」仕事術やってみた
minorun365
PRO
3
880
Featured
See All Featured
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
580
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Making the Leap to Tech Lead
cromwellryan
135
10k
Test your architecture with Archunit
thirion
2
2.4k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
430
From π to Pie charts
rasagy
1
400
sira's awesome portfolio website redesign presentation
elsirapls
0
460
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Building Adaptive Systems
keathley
44
3.3k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Transcript
© SIOS Technology Inc. All rights Reserved. 明日から使える! プロンプトエンジニアリングのテクニック集 佐藤
陽 サイオステクノロジー株式会社
© SIOS Technology Inc. All rights Reserved. 自己紹介 2 佐藤
陽 / Sato Akira サイオステクノロジー株式会社 Professional Service SL in 静岡 仕事 Azureクラウド構築 生成AIを活用したアプリ開発 ブログ執筆 / 外部登壇 趣味 運動(ロードバイク/ランニング) 音楽(FUJI ROCK FESTIVAL) 読書(森博嗣/有栖川有栖) @satodayo1115
© SIOS Technology Inc. All rights Reserved. 今日の目的 ▪ プロンプトエンジニアリングとは何かを知る
▪ 明日から使えるテクニックを習得する ▪ 生成AIを明日から少しだけ有益に使えるようになる 3
© SIOS Technology Inc. All rights Reserved. 4 プロンプトとは
© SIOS Technology Inc. All rights Reserved. プロンプトとは 5 gpt-4o
日本の首都はどこですか? 東京です プロンプト≒質問
© SIOS Technology Inc. All rights Reserved. 6 プロンプトエンジニアリングとは
© SIOS Technology Inc. All rights Reserved. プロンプトエンジニアリングとは 7 AIに聞いてみよう
© SIOS Technology Inc. All rights Reserved. プロンプトエンジニアリングとは? 8 回答分かりづらいなぁ
gpt-4o
© SIOS Technology Inc. All rights Reserved. プロンプトエンジニアリングとは? 9 gpt-4o
納得! プロンプトエンジニアリング
© SIOS Technology Inc. All rights Reserved. プロンプトエンジニアリングとは? 10 あなたは小学校の教師です。
- 小学生にもわかるようにプロンプトエンジニアリングについて解説してください。 - 物腰やわらかい口調で回答してください。 - 回答内容は100文字以内で収まるようにしてください。 プロンプトエンジニアリングとは何ですか? プロンプトエンジニアリングは、AIに質問するための上手な言葉の使い方です。 質問を工夫することで、AIから良い答えを引き出すことができます。 プロンプトエンジニアリングを適用
© SIOS Technology Inc. All rights Reserved. 今日紹介するテクニック集 ▪ システムメッセージ
▪ Few-shot Learning ▪ Chain-of-Though(CoT) 11
© SIOS Technology Inc. All rights Reserved. 12 システムメッセージ
© SIOS Technology Inc. All rights Reserved. システムメッセージ 質問を投げかける前に、AIに対して ▪
Role(役割)を与える ▪ 回答に対して制約事項を設ける etc. 13
© SIOS Technology Inc. All rights Reserved. システムメッセージ 14
© SIOS Technology Inc. All rights Reserved. システムメッセージ 15 優しい
© SIOS Technology Inc. All rights Reserved. システムメッセージ 16 厳しい…
© SIOS Technology Inc. All rights Reserved. システムメッセージ 17 「回答させない」といった指示も可能
© SIOS Technology Inc. All rights Reserved. システムメッセージ ポイント ▪
求める回答に近づくよう、いかに上手く誘導するか ▪ 「回答させないこと」も可能 ▪ 可能性は無限大! ▪ システムメッセージを長くすることで 品質向上が期待できる一方、コストも増加する 18
© SIOS Technology Inc. All rights Reserved. 19 Few-shot Learning
© SIOS Technology Inc. All rights Reserved. Few-shot Learning 質問を投げかける前に、AIに対して
▪ いくつかの回答と質問の例(shot) を提示することでその場で学習させる 20
© SIOS Technology Inc. All rights Reserved. Few-shot Learning 21
例(=shot)
© SIOS Technology Inc. All rights Reserved. Few-shot Learning 22
© SIOS Technology Inc. All rights Reserved. Few-shot Learning 23
例(Shot)無し Zero-shot Learning 例が1つ One-shot Learning 例が2つ Two-shot Learning …とはあまり呼ばない気がします 2以上:Few-shot Learning
© SIOS Technology Inc. All rights Reserved. Few-shot Learning ポイント
▪ 例を与える事でその場でAIが学習して回答する ▪ 例を多く与えることで品質向上が 期待できる一方、コストも増加する 24
© SIOS Technology Inc. All rights Reserved. Few-shot Learning 25
© SIOS Technology Inc. All rights Reserved. 26 Chain-of-Though(CoT)
© SIOS Technology Inc. All rights Reserved. CoT 質問から回答に至るステップをAIに提示する →複雑な問題に対しても回答できる
27
© SIOS Technology Inc. All rights Reserved. CoT 28 A
さんには 2 人の弟がいます。 A さんは 10 個のたこ焼きを作って、 弟にそれぞれ 4 個ずつあげました。 追加で 20 個作って、弟に 5 個ずつ、 自分で 5 個食べました。 たこ焼きは残り何個ですか? 10個 – (4個/人 × 2人) + 20個 – (5個/人 × 2人) – 5個 = 7個
© SIOS Technology Inc. All rights Reserved. CoT 29 不正解!
Model:GPT35-Turbo
© SIOS Technology Inc. All rights Reserved. CoT 30 思考のプロセスを提示
正解!
© SIOS Technology Inc. All rights Reserved. Zoro-Shot CoT 31
正解! Give GPTs time to “think”
© SIOS Technology Inc. All rights Reserved. CoT 32 Model:GPT4o
(CoT無し) 正解!
© SIOS Technology Inc. All rights Reserved. CoT ポイント ▪
思考のプロセスを提示することで 生成AIがそのプロセスに従い回答を行う ▪ 生成AIに対して「よく考えてください」と伝える だけでも効果あり(Zero-shot CoT) ▪ 最近のModelならCoT要らないかも? 33
© SIOS Technology Inc. All rights Reserved. まとめ ▪ プロンプトエンジニアリングのテクニックを紹介
▪ システムメッセージ ▪ Few-shot Learning ▪ CoT ▪ そもそも最近の生成AIは頭が良い ▪ 凝ったプロンプトを投げなくても それなりに高い精度で回答してくれる ▪ 求める品質とコストのトレードオフを検討する 34
None