Lộ trình đang học Current learning path Current learning path

Developer Platform Developer Platform Developer Platform

Deploy Hello World lên *.workers.dev, bind KV/D1/R2 đúng chỗ, secret không lên client — AI chỉ sau nền. Deploy Hello World to *.workers.dev, bind KV/D1/R2 correctly, keep secrets off the client — AI only after the spine. Deploy Hello World ទៅ *.workers.dev, bind KV/D1/R2 ឱ្យត្រឹមត្រូវ, កុំដាក់ secret នៅលើ client — AI តែបន្ទាប់ពីគ្រឹះ។

Về trang lộ trình Track home Track home

Phần 5: AI trên Developer Platform Part 5: AI on the Developer Platform ផ្នែក 5: AI លើ Developer Platform · Bài 1/5 Lesson 1/5 មេរៀន 1/5

Inference đầu tiên với Workers AI First inference with Workers AI inference ដំបូងជាមួយ Workers AI

Lưu ý (best practices) Note (best practices) Note (best practices)

Giữ model call và binding trong Worker. Đừng expose provider credential, binding identifier hoặc logic chọn model cho client; dùng environment-specific config và test trên preview trước production. Keep model calls and bindings in the Worker. Do not expose provider credentials, binding identifiers, or model-selection logic to the client; use environment-specific configuration and test in preview before production. Keep model calls and bindings in the Worker. Do not expose provider credentials, binding identifiers, or model-selection logic to the client; use environment-specific configuration and test in preview before production.

Nguồn: Source: Source: Workers Best Practices Workers Best Practices Workers Best Practices ↗

Ví dụ triển khai (Cloudflare Resources) Deployment examples (Cloudflare Resources) Deployment examples (Cloudflare Resources)

Ví dụ chính thức từ Cloudflare Resources — gợi ý theo chủ đề bài học trong lộ trình này. Official examples from Cloudflare Resources — matched to this lesson within this path. Official examples from Cloudflare Resources — matched to this lesson within this path.

Tutorial Tutorial Tutorial Developer Platform Developer Platform Developer Platform

Chọn đúng Text Generation Model Choose the Right Text Generation Model ជ្រើសរើសគំរូបង្កើតអត្ថបទត្រឹមត្រូវ។

Có một loạt các mô hình tạo văn bản có sẵn thông qua Workers AI. Trong một nỗ lực để giúp bạn trong hành trình của bạn để tìm ra mô hình phù hợp, sổ tay này sẽ giúp bạn biết các lựa chọn của bạn trong một tốc độ hẹn hò kiểu kịch bản.

There's a wide range of text generation models available through Workers AI. In an effort to aid you in your journey of finding the right model, this notebook will help you get to know your options in a speed dating type of scenario.

មានជួរដ៏ធំទូលាយនៃគំរូបង្កើតអត្ថបទដែលមានតាមរយៈ Workers AI។ ក្នុងកិច្ចខិតខំប្រឹងប្រែងដើម្បីជួយអ្នកក្នុងការធ្វើដំណើររបស់អ្នកក្នុងការស្វែងរកគំរូត្រឹមត្រូវ សៀវភៅកត់ត្រានេះនឹងជួយអ្នកឱ្យដឹងពីជម្រើសរបស់អ្នកនៅក្នុងប្រភេទសេណារីយ៉ូណាត់ជួបដែលមានល្បឿនលឿន។

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម
Tutorial Tutorial Tutorial Developer Platform Developer Platform Developer Platform

Trình dịch mã với Workers AI Code interpreter with Workers AI កម្មវិធីបញ្ជាកូដជាមួយ Workers AI

Xây dựng trình giải thích mã bằng cách sử dụng mô hình Workers AI GPT-OSS với gói nhà cung cấp chính thức workers-ai.

Build a code interpreter using Workers AI GPT-OSS model with the official workers-ai-provider package.

បានបង្កើតកម្មវិធីបម្លែងកូដដោយប្រើម៉ូដែល Workers AI GPT-OSS ជាមួយនឹងកញ្ចប់អ្នកផ្គត់ផ្គង់ workers-ai ។

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម
Tutorial Tutorial Tutorial Developer Platform Developer Platform Developer Platform

Khám phá Workers AI Mô hình sử dụng một Jupyter Notebook Explore Workers AI Models Using a Jupyter Notebook ការស្រាវជ្រាវ Workers AI ម៉ូដែលដោយប្រើ Jupyter Notebook

Máy tính xách tay Jupyter này khám phá các mô hình khác nhau (bao gồm Whisper, Distilled BERT, LLaVA, và Meta Llama 3) sử dụng Python và thư viện yêu cầu.

This Jupyter notebook explores various models (including Whisper, Distilled BERT, LLaVA, and Meta Llama 3) using Python and the requests library.

កុំព្យូទ័រ Jupyter នេះស្វែងរកម៉ូដែលផ្សេងគ្នា (រួមទាំង Whisper, Distilled BERT, LLaVA, និង Meta Llama 3) ដោយប្រើ Python និងសៀវភៅសំណួរ។

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម
Tutorial Tutorial Tutorial Developer Platform Developer Platform Developer Platform

Làm thế nào để xây dựng một máy phát hình ảnh bằng cách sử dụng Workers AI How to Build an Image Generator using Workers AI តើធ្វើដូចម្តេចដើម្បីបង្កើតកម្មវិធីបង្កើតរូបភាពដោយប្រើ Workers AI

Tìm hiểu làm thế nào để xây dựng một máy phát hình ảnh bằng cách sử dụng Workers AI.

Learn how to build an image generator using Workers AI.

តើធ្វើដូចម្តេចដើម្បីបង្កើតម៉ាស៊ីនបង្កើតរូបភាពដោយប្រើ Workers AI?

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម

Xem thêm ví dụ trong lộ trình → More examples in this path → More examples in this path →

labs.cloudflare.dev

Lab thực hành khớp bài này Hands-on labs for this lesson Hands-on labs for this lesson

Nguồn bổ sung chính thức — làm lab sau khi đọc bài, không thay bước trong hub. Official supplement — run the lab after this lesson; it does not replace the hub steps. Official supplement — run the lab after this lesson; it does not replace the hub steps.

  • 01 Cloudflare Workers Cloudflare Workers Cloudflare Workers

    Sau Phần 1 (Worker + Wrangler) và Phần 3 (KV/D1). Lab AI + Gateway khớp Phần 5. After Part 1 (Worker + Wrangler) and Part 3 (KV/D1). The AI + Gateway labs match Part 5. បន្ទាប់ពីផ្នែក 1 (Worker + Wrangler) និងផ្នែក 3 (KV/D1)។ Lab AI + Gateway សមនឹងផ្នែក 5។

    Mở 7 bài lab Open 7 lab articles Open 7 lab articles
  • 02 Model Context Protocol Model Context Protocol Model Context Protocol

    Sau Phần 5 (tools/agent) và khi đã quen KV ở Phần 3. Luyện schema + authorization phía server. After Part 5 (tools/agents) and once KV from Part 3 is familiar. Practice schemas and server-side authorization. បន្ទាប់ពីផ្នែក 5 (tools/agent) និងពេលស្គាល់ KV ពីផ្នែក 3។ ហាត់ schema + authorization ខាង server។

    Mở 7 bài lab Open 7 lab articles Open 7 lab articles
  • 03 Agents SDK Agents SDK Agents SDK

    Sau bài Agents ở Phần 5. Phần 6 (Durable Objects) giải thích state theo object phía sau SDK. After the Agents lesson in Part 5. Part 6 (Durable Objects) explains the per-object state behind the SDK. បន្ទាប់ពីមេរៀន Agents នៅផ្នែក 5។ ផ្នែក 6 (Durable Objects) ពន្យល់ state តាម object ខាងក្រោយ SDK។

    Mở 2 bài lab Open 2 lab articles Open 2 lab articles
  • 04 Sandbox SDK Sandbox SDK Sandbox SDK

    Sau Phần 5 (AI) và Phần 4 (vận hành/secret). Lab bảo mật khớp golden rules: secret không lên client. After Part 5 (AI) and Part 4 (operate/secrets). The security labs match the golden rules: secrets stay off the client. បន្ទាប់ពីផ្នែក 5 (AI) និងផ្នែក 4 (ដំណើរការ/secret)។ Lab សុវត្ថិភាពសមនឹងច្បាប់៖ secret មិនឡើង client។

    Mở 7 bài lab Open 7 lab articles Open 7 lab articles

Xem đủ 4 track lab trên hub → See all 4 lab tracks on this hub → See all 4 lab tracks on this hub → · labs.cloudflare.dev ↗

Tài liệu Cloudflare Developers Cloudflare Developer docs Cloudflare Developer docs

Sơ đồ kiến trúc tham chiếu (Cloudflare Docs) Architecture diagrams (Cloudflare Docs) Architecture diagrams (Cloudflare Docs)

Hình 1: Kiến trúc AI kết hợp

Kiến trúc AI kết hợp (composable) Composable AI architecture Composable AI architecture

Ứng dụng AI có thể dựng end-to-end trên Cloudflare, hoặc gắn từng dịch vụ vào hạ tầng và dịch vụ bên ngoài. The architecture diagram illustrates how AI applications can be built end-to-end on Cloudflare, or single services can be integrated with external infrastructure and services. The architecture diagram illustrates how AI applications can be built end-to-end on Cloudflare, or single services can be integrated with external infrastructure and services.

Thuật ngữ: Concepts: Concepts: Workers AI · AI Gateway · External LLM · Composable stack

Sơ đồ chính thức ↗ Official diagram ↗ Official diagram ↗ · AI Artificial Intelligence (AI) Artificial Intelligence (AI)

Sản phẩm liên quan Related products Related products

Học xong hoặc muốn đổi hướng? Finished or want a different path? Finished or want a different path?

Ba lộ trình độc lập — mỗi lộ trình chỉ gồm bài học và tài liệu trong phạm vi đó. Chọn lộ trình khác khi sẵn sàng, không cần học song song. Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel. Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.

Chưa chắc — làm bài chọn lộ trình Not sure — use the path selector Not sure — use the path selector · So sánh cả ba lộ trình Compare all three paths Compare all three paths