Slide 1

Slide 1 text

CloudflareͷAIؔ࿈ͷػೳ ͞ΘͬͯΈͨ Cloudflare Meetup Niigata #1 @circled9

Slide 2

Slide 2 text

ࣗݾ঺հ @circled9 দҪ ਖ਼ࢤ (Matsui Masashi) גࣜձࣾϞχΫϧ ීஈ͸Google CloudͰಈࣾ͘಺ ޲͚αʔϏεΛॻ͍ͯ·͢

Slide 3

Slide 3 text

͋Β·͠ • ࣾ಺ͷ։ൃ߹॓ͰAIΛςʔϚʹԿ͔࡞Ζ͏ͱ͍͏͜ͱʹͳͬͨ • PDFΛݩʹ࣭໰ͷճ౴Λฦ͢ΞϓϦΛ࡞ͬͨ • ͍ΘΏΔRAG (Retrieval-Augmented Generation)ͱݺ͹ΕΔ ΋ͷ 3

Slide 4

Slide 4 text

ͪͳΈʹ • yusukebe͞Μ͕ॻ͍ͨCloudflareελοΫͰRAGΛ࡞Δͱ͍͏λ ΠτϧͷͪΌͪ͘ΌΘ͔Γ΍͍͢هࣄ͕͋Γ·͢ • https://zenn.dev/yusukebe/articles/c7e2ec9f12427b • ߹॓࣌఺Ͱ͸͜ͷهࣄ͕·ͩͳ͔ͬͨͷͰɺެࣜυΩϡϝϯτΛಡΈ ͳ͕Βಉ͡Α͏ͳ΋ͷΛ࡞Γ·ͨ͠ 4

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

αʔϏεͷߏ੒

Slide 7

Slide 7 text

Client Zero Trust Access Vectorize Worker AI D1

Slide 8

Slide 8 text

Cloudflare AI • ੜ੒AIͷॲཧΛΤοδͰ΍ͬͯ͘ΕΔ͍͢͝΍ͭ • ςΩετੜ੒ͱ͔Ի੠ೝࣝͱ͔৭ʑͰ͖Δ • ࠓճ͸ςΩετੜ੒ͱEmbeddingΛ࢖ͬͯճ౴Λੜ੒ͨ͠ 8

Slide 9

Slide 9 text

Vectorize • ϕΫτϧσʔλϕʔε • ϕΫτϧσʔλͷอଘͱݕࡧΛͯ͘͠ΕΔ • ݱࡏύϒϦοΫϕʔλ൛ • Workers Paid planͰ࢖͑Δ 9

Slide 10

Slide 10 text

ϕΫτϧݕࡧ • จষΛϕΫτϧͰݕࡧ͢Δ • ୯७ͳจࣈྻݕࡧ͸දهΏΕͳͲʹऑ͍ • ϕΫτϧԽ͢Δ͜ͱͰҙຯతʹ͍ۙ΋ͷ΋ݕࡧͰ͖Δ 10

Slide 11

Slide 11 text

Α͔ͬͨ͜ͱ

Slide 12

Slide 12 text

؆୯ • ֤ػೳ͸wrangler.tomlʹઃఆΛ௥Ճ͢Δ͚ͩͰ࢖͍࢝ΊΒΕΔ • ެࣜυΩϡϝϯτ͕਌੾ͳͷͰɺυΩϡϝϯτΛݟΕ͹େମͳΜͱ͔ ͳΔ 12

Slide 13

Slide 13 text

͍҆ • ͼͬ͘Γ͢Δ͘Β͍͍҆ • ಛʹϕΫτϧσʔλϕʔε͕ैྔ՝ۚͳͷ͸͋Γ͕͍ͨ • ແྉ࿮΋େ͖͍ͷͰɺࢼ͠ʹ͞ΘΔఔ౓ͩͱେମແྉ 13

Slide 14

Slide 14 text

ࠔͬͨ͜ͱ

Slide 15

Slide 15 text

AIͷϞσϧͷ೔ຊޠରԠ͕͍·͍ͪ • ೔ຊޠͰ࣭໰ͯ͠΋ӳޠͰฦͯ͘͠Δ • ϓϩϯϓτʹʮ೔ຊޠͰճ౴ͯ͠ʯͱॻ͍ͯ΋్த͔Β೔ຊޠ͡Ό ͳ͘ͳΔ • Embedding΋ӳޠ͔͠ରԠ͍ͯ͠ͳͦ͞͏ • bge-base-en-v1.5 15

Slide 16

Slide 16 text

ͦΕͳʔ

Slide 17

Slide 17 text

WorkersͰಈ͔ͳ͍ϥΠϒϥϦ͕͋ͬͨ • nodejs_compatΛ༗ޮʹ͢Ε͹Node.jsͷϥΠϒϥϦ͕ಈ͘ • ͔࣮͠͠ࡍʹ͸ಈ͔ͳ͍ϥΠϒϥϦ͕ͨ·ʹ͋Δ • ϥΠϒϥϦͷ࣮૷ʹnode:ϓϨϑΟοΫε͕ͳ͍ɺͳͲ͕େମͷݪҼ 17

Slide 18

Slide 18 text

ͳΜͱ͔ղܾͨ͠ • ೔ຊޠͷ໰୊͸Cloudflare AIͰ͸ͳ͘ଞͷαʔϏεͷAPIΛݺͿ ͜ͱͰճආͨ͠ • ϥΠϒϥϦͷ໰୊͸ࣗ෼ͰϥΠϒϥϦͷίʔυʹखΛೖΕͨ 18

Slide 19

Slide 19 text

·ͱΊ • CloudflareΛ࢖͏ͱαʔϏεͷ্ཱ͕ͪ͛खܰʹͰ͖Δ • Zero Trust AccessͰೝূपΓ΋҆৺ • CloudflareΛͲΜͲΜ࢖͍͖͍ͬͯͨ 19