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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
460
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
320
MLOps初心者がMLflowを触る / MLflow Brief Introduction
zchenry
0
210
{{guidance}}のガイダンス / Guidance of guidance
zchenry
0
200
Other Decks in Programming
See All in Programming
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.3k
AI駆動開発勉強会 広島支部 第一回勉強会 AI駆動開発概要とワークショップ
hayatoshimiu
0
450
PHPで使える日時の表現と、その知り方 #frontend_phpcon_do
o0h
PRO
0
190
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
740
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
150
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.9k
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
270
ふつうのFeature Flag実践入門
irof
7
3.6k
CSC307 Lecture 17
javiergs
PRO
0
310
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
460
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
3
1.1k
今さら聞けないCancellationToken
htkym
0
220
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.8k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
310
Game over? The fight for quality and originality in the time of robots
wayneb77
1
190
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
440
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Building an army of robots
kneath
306
46k
The browser strikes back
jonoalderson
0
1.1k
Bash Introduction
62gerente
615
210k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
Visualization
eitanlees
152
17k
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