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
CloudflareのAI関連の機能さわってみた
Search
circled9
August 25, 2024
Programming
1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CloudflareのAI関連の機能さわってみた
Cloudflare Meetup Niigata #1のLTで使用した資料です。
circled9
August 25, 2024
More Decks by circled9
See All by circled9
キースイッチ入門
circled9
0
120
0.0.0.0 day
circled9
0
150
小数の丸め誤差の話
circled9
0
160
数値の文字列をパースしよう
circled9
0
290
🔥 Hono v4 やってみた
circled9
1
260
JetBrains AI Assistant を試してみた
circled9
1
620
Fresh
circled9
0
290
React Hooks 勉強会 vol.3
circled9
2
470
JSON.stringify()
circled9
2
520
Other Decks in Programming
See All in Programming
dotNET_vulnclicker_intro.pdf
deka_morita
0
130
contenteditable と日本語入力に向き合う
colorful12
0
180
Kubernetes祭り #2 OP/ED
bells17
0
110
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2k
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
240
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
360
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
350
CodeRabbitの効果検証と過ごしてみた3ヶ月
armondando
0
200
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
Workers Cache を知る
syumai
0
350
気持ちぃ〜角丸 Squircle
ryu1013
0
140
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
390
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.1k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
320
Code Reviewing Like a Champion
maltzj
529
40k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
610
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
870
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
260
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Transcript
CloudflareͷAIؔ࿈ͷػೳ ͞ΘͬͯΈͨ Cloudflare Meetup Niigata #1 @circled9
ࣗݾհ @circled9 দҪ ਖ਼ࢤ (Matsui Masashi) גࣜձࣾϞχΫϧ ීஈGoogle CloudͰಈࣾ͘ ͚αʔϏεΛॻ͍ͯ·͢
͋Β·͠ • ࣾͷ։ൃ߹॓ͰAIΛςʔϚʹԿ͔࡞Ζ͏ͱ͍͏͜ͱʹͳͬͨ • PDFΛݩʹ࣭ͷճΛฦ͢ΞϓϦΛ࡞ͬͨ • ͍ΘΏΔRAG (Retrieval-Augmented Generation)ͱݺΕΔ ͷ
3
ͪͳΈʹ • yusukebe͞Μ͕ॻ͍ͨCloudflareελοΫͰRAGΛ࡞Δͱ͍͏λ ΠτϧͷͪΌͪ͘ΌΘ͔Γ͍͢هࣄ͕͋Γ·͢ • https://zenn.dev/yusukebe/articles/c7e2ec9f12427b • ߹॓࣌Ͱ͜ͷهࣄ͕·ͩͳ͔ͬͨͷͰɺެࣜυΩϡϝϯτΛಡΈ ͳ͕Βಉ͡Α͏ͳͷΛ࡞Γ·ͨ͠ 4
None
αʔϏεͷߏ
Client Zero Trust Access Vectorize Worker AI D1
Cloudflare AI • ੜAIͷॲཧΛΤοδͰͬͯ͘ΕΔ͍ͭ͢͝ • ςΩετੜͱ͔Իೝࣝͱ͔৭ʑͰ͖Δ • ࠓճςΩετੜͱEmbeddingΛͬͯճΛੜͨ͠ 8
Vectorize • ϕΫτϧσʔλϕʔε • ϕΫτϧσʔλͷอଘͱݕࡧΛͯ͘͠ΕΔ • ݱࡏύϒϦοΫϕʔλ൛ • Workers Paid
planͰ͑Δ 9
ϕΫτϧݕࡧ • จষΛϕΫτϧͰݕࡧ͢Δ • ୯७ͳจࣈྻݕࡧදهΏΕͳͲʹऑ͍ • ϕΫτϧԽ͢Δ͜ͱͰҙຯతʹ͍ۙͷݕࡧͰ͖Δ 10
Α͔ͬͨ͜ͱ
؆୯ • ֤ػೳwrangler.tomlʹઃఆΛՃ͢Δ͚ͩͰ͍࢝ΊΒΕΔ • ެࣜυΩϡϝϯτ͕ͳͷͰɺυΩϡϝϯτΛݟΕେମͳΜͱ͔ ͳΔ 12
͍҆ • ͼͬ͘Γ͢Δ͘Β͍͍҆ • ಛʹϕΫτϧσʔλϕʔε͕ैྔ՝ۚͳͷ͋Γ͕͍ͨ • ແྉେ͖͍ͷͰɺࢼ͠ʹ͞ΘΔఔͩͱେମແྉ 13
ࠔͬͨ͜ͱ
AIͷϞσϧͷຊޠରԠ͕͍·͍ͪ • ຊޠͰ࣭ͯ͠ӳޠͰฦͯ͘͠Δ • ϓϩϯϓτʹʮຊޠͰճͯ͠ʯͱॻ్͍ͯத͔Βຊޠ͡Ό ͳ͘ͳΔ • Embeddingӳޠ͔͠ରԠ͍ͯ͠ͳͦ͞͏ • bge-base-en-v1.5
15
ͦΕͳʔ
WorkersͰಈ͔ͳ͍ϥΠϒϥϦ͕͋ͬͨ • nodejs_compatΛ༗ޮʹ͢ΕNode.jsͷϥΠϒϥϦ͕ಈ͘ • ͔࣮͠͠ࡍʹಈ͔ͳ͍ϥΠϒϥϦ͕ͨ·ʹ͋Δ • ϥΠϒϥϦͷ࣮ʹnode:ϓϨϑΟοΫε͕ͳ͍ɺͳͲ͕େମͷݪҼ 17
ͳΜͱ͔ղܾͨ͠ • ຊޠͷCloudflare AIͰͳ͘ଞͷαʔϏεͷAPIΛݺͿ ͜ͱͰճආͨ͠ • ϥΠϒϥϦͷࣗͰϥΠϒϥϦͷίʔυʹखΛೖΕͨ 18
·ͱΊ • CloudflareΛ͏ͱαʔϏεͷ্ཱ͕ͪ͛खܰʹͰ͖Δ • Zero Trust AccessͰೝূपΓ҆৺ • CloudflareΛͲΜͲΜ͍͖͍ͬͯͨ 19