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
Go with the Prompt Flow
Search
Henry Cui
November 25, 2023
Programming
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Go with the Prompt Flow
Henry Cui
November 25, 2023
More Decks by Henry Cui
See All by Henry Cui
プロダクション言語モデルの情報を盗む攻撃 / Stealing Part of a Production Language Model
zchenry
1
250
Direct Preference Optimization
zchenry
0
470
Diffusion Model with Perceptual Loss
zchenry
0
520
レンズの下のLLM / LLM under the Lens
zchenry
0
230
Mojo Dojo
zchenry
0
270
ことのはの力で画像の異常検知 / Anomaly Detection by Language
zchenry
0
720
驚愕の事実!LangChainが抱える問題 / Problems of LangChain
zchenry
0
330
MLOps初心者がMLflowを触る / MLflow Brief Introduction
zchenry
0
210
{{guidance}}のガイダンス / Guidance of guidance
zchenry
0
210
Other Decks in Programming
See All in Programming
Honoでのサプライチェーン侵害対策 〜 3つのライブラリに学ぶ
yusukebe
7
1.5k
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
4
1.5k
なぜ型を書くのか? TSKaigi2026で改めて考える #tskaigi_smarthr
kajitack
0
170
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
180
The NotImplementedError Problem in Ruby
koic
1
960
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
190
TSKaigi Night Talks 2026_TypeScriptでサプライチェーンの整合性を型に閉じ込める
geekplus_tech
0
410
PHPで使える日時の表現と、その知り方 #frontend_phpcon_do
o0h
PRO
0
270
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
810
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.3k
Contextとはなにか
chiroruxx
1
380
dRuby over BLE
makicamel
2
390
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
55
10k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
How GitHub (no longer) Works
holman
316
150k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
140
Six Lessons from altMBA
skipperchong
29
4.3k
It's Worth the Effort
3n
188
29k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
750
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
240
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
Prompt Engineering for Job Search
mfonobong
0
350
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
How to Ace a Technical Interview
jacobian
281
24k
Transcript
Go with the Prompt Flow 機械学習の社会実装勉強会第29回 Henry 2023/11/25
内容 ▪ Azure Machine Learning Prompt FlowというLLM開発全サ イクルをサポートするツールが先日MITライセンスで公開され た •
https://github.com/microsoft/promptflow ▪ Prompt Flowがもたらす開発の効率向上 • フローで速いプロトタイピング • テストと評価 • デプロイ 2
Prompt Flowの基本概念 ▪ Flow:Toolの有向グラフ ▪ Tool:LLM | Python | Prompt
▪ Variants:LLM Toolの違うバージョン ▪ Connections:外部認証データの保存 3
Flowの構成 ▪ 公式レポジトリの examples/flows/standard/web-classification を例に ▪ 主なファイル • flow.dag.yaml:flowを定義するファイル ←
主に見ていく • requirements.txt:ライブラリ依存 • pyファイル:Python関数の定義ファイル ▪ 書き方に従う必要がある • jinja2ファイル:プロンプトのテンプレートファイル 4
Flowをローカルに動かす ▪ Connectionを作る必要がある ▪ 今回はAzureじゃないOpenAIのほうを使う • connection.yamlを用意 • Ubuntu等の場合はpip install
keyrings.alt 5
PromptのTestとRun ▪ フォルダ内に以下のコマンドでテスト • pf flow test --flow . •
pf flow test --flow . --inputs url='https://www.youtube.com/watch?v=kYqRtjDBci8' ▪ フォルダ内に以下のコマンでRun • run_name="classification_accuracy_"$(openssl rand -hex 12) • pf run create --file run.yml --stream --name $run_name • run visualize --name $run_name ▪ 可視化用のhtmlファイルを生成 6
まとめ ▪ Prompt Flowの基本概念 ▪ Prompt Flowをローカルで動かした 7