-
Codificação guiada usando o framework Foundation Models
Adquira experiência prática no uso do framework Foundation Models para acessar o LLM no dispositivo da Apple. Nesta sessão online, você pode programar junto conosco conforme integramos recursos de IA generativa a um app de exemplo no Xcode. Vamos guiar você na implementação dos principais recursos, como geração de texto básica, e em tópicos avançados, como geração guiada para saída de dados estruturada, transmissão de respostas para atualizações dinâmicas da interface de usuário e chamadas de ferramentas para recuperar dados ou executar uma ação.
Todos são bem-vindos nesta sessão. Para participar ativamente da codificação guiada, você precisa de um Mac com Apple Silicon compatível com a Apple Intelligence e a versão mais recente do macOS Tahoe 26 e do Xcode 26.Capítulos
- 0:00:00 - Intro
- 0:03:33 - Resources and system requirements
- 0:05:04 - Prerequisites and setup
- 0:06:30 - Starter project tour
- 0:10:32 - Chapter 1: Foundation Models framework basics
- 0:11:51 - Chapter 1.1: Making your first generation request
- 0:15:50 - Chapter 1.2: Guiding the model with instructions
- 0:18:46 - Chapter 1.3: Handling model availability
- 0:20:50 - Chapter 1.4: Handle availability in the view
- 0:24:07 - Chapter 1.5: Create the itinerary generator
- 0:27:07 - Chapter 1.6: Update the view to display text output
- 0:32:43 - Chapter 2: Generating structured outputs
- 0:34:36 - Chapter 2.1: Generating simple structured output
- 0:37:52 - Chapter 2.2: Generating nested structured output
- 0:41:58 - Chapter 2.3: Refactoring the itinerary generator
- 0:44:48 - Chapter 2.4: Updating the views to display the structured data
- 0:49:22 - Chapter 3: Prompting techniques
- 0:50:25 - Chapter 3.1: Building prompts with PromptBuilder
- 0:53:23 - Chapter 3.2: One-shot prompting
- 0:55:31 - Chapter 3.3: Update the itinerary generator with the example
- 0:59:11 - Chapter 4: Streaming responses
- 0:59:51 - Chapter 4.1: Update the itinerary generator for streaming
- 1:02:52 - Chapter 4.2: Updating views to render streaming content
- 1:08:16 - Chapter 5: Tool calling
- 1:11:12 - Chapter 5.1: Building the FindPointsOfInterestTool
- 1:16:32 - Chapter 5.2: Give the model access to the FindPointsOfInterestTool
- 1:23:07 - Chapter 5.3: Updating the itinerary generator to use the tool
- 1:27:39 - Chapter 6: Performance and optimization
- 1:34:20 - Chapter 6.1: Pre-warming the model
- 1:36:56 - Chapter 6.2: Optimizing the prompt
- 1:41:16 - Wrap up and next steps
Recursos
-
Buscar neste vídeo...
-