Claude on Google Cloud

Working with Anthropic models through Google Cloud's Agent Platform: setup, prompting, tool use, RAG, agents, and production deployment patterns.

Claude on Google Cloud artwork from Claude Academy

Who this is for

  • AI & ML engineers

    Covers prompt evaluations, XML structuring, tool use, BM25 and multi-index RAG, reranking, prompt caching, MCP, and agent workflows.

  • Software engineers

    Walks through Vertex AI API setup, streaming, structured data, tool schemas, MCP servers and clients, and multi-turn agent code.

  • Cloud engineers

    Details working with Anthropic models on Google Cloud's Agent Platform, including Vertex AI setup and production deployment patterns.

What you get out of it

Build and evaluate applications with Anthropic models on Google Cloud's Vertex AI, from initial API requests and prompt evaluation to tool use, RAG pipelines, Model Context Protocol (MCP), and agent workflows. At 521 minutes, this comprehensive course is built for engineers deploying Claude in Google Cloud environments.

Outline

Accessing Claude with the API

  1. Accessing the APILessonAn overview of how to reach Anthropic models through Google Cloud.
  2. Vertex AI SetupLessonConfigure your Google Cloud environment to start calling Claude on Vertex AI.
  3. Making a requestLessonSend your first API call to a Claude model and read the response.
  4. Multi-turn conversationsLessonPass message history across requests to maintain context in a back-and-forth exchange.
  5. System promptsLessonSet role instructions and persistent guidance before the user conversation begins.
  6. TemperatureLessonAdjust sampling parameters to control how predictable or varied the model responses are.
  7. Response streamingLessonReceive model output incrementally as tokens are generated rather than waiting for completion.
  8. Controlling model outputLessonGuide the format, length, and stopping points of the text Claude returns.
  9. Structured dataLessonPrompt Claude to return responses in a consistent, machine-readable format.
  10. Quiz on accessing Claude with the APIQuizCheck your understanding of Vertex AI setup, request parameters, and output controls.

Prompt evaluation

  1. Prompt evaluationLessonWhy systematic testing matters when developing prompts for Claude on Google Cloud.
  2. A typical eval workflowLessonThe main steps for designing test cases, running prompts, and scoring the results.
  3. Generating test datasetsLessonCreate sample inputs to test how your prompt handles different cases.
  4. Running the evalLessonExecute your prompt against the test dataset and collect the model outputs.
  5. Model based gradingLessonUse a language model to score and critique the outputs from your evaluation run.
  6. Code based gradingLessonWrite programmatic checks to grade model responses against expected rules or formats.
  7. Quiz on prompt evaluationQuizReview the workflow for building test datasets, running evaluations, and grading outputs.

Prompt engineering techniques

  1. Prompt engineeringLessonAn introduction to practical methods for writing and refining prompts for Claude.
  2. Being clear and directLessonWrite plain, unambiguous instructions so the model knows what task to perform.
  3. Being specificLessonAdd concrete constraints and requirements to narrow down the output you want.
  4. Structure with XML tagsLessonSeparate instructions, context, and inputs using XML tags so the prompt is easy to parse.
  5. Providing examplesLessonInclude sample inputs and outputs in the prompt to demonstrate the target pattern.
  6. Quiz on prompt engineering techniquesQuizTest your grasp of clarity, specificity, XML tags, and example-driven prompting.

Tool use with Claude

  1. Introducing tool useLessonHow Claude requests external function calls and uses their outputs to answer questions.
  2. Project overviewLessonA look at the sample application used across the tool-use lessons.
  3. Tool functionsLessonWrite the underlying code functions that your application will run when Claude calls a tool.
  4. Tool schemasLessonDefine names, descriptions, and input parameters so Claude knows how to call each tool.
  5. Handling message blocksLessonParse response content blocks to detect when Claude wants to invoke a tool.
  6. Sending tool resultsLessonReturn the output of an executed function back to Claude in a follow-up message.
  7. Multi-turn conversations with toolsLessonHow message history works when a conversation includes both text and tool calls.
  8. Implementing multiple turnsLessonBuild a loop that handles repeated tool calls and responses across a conversation.
  9. Using multiple toolsLessonProvide several tool definitions at once so Claude can choose the right one for the task.
  10. The batch toolLessonGroup multiple tool invocations together so they can be requested in a single turn.
  11. Tools for structured dataLessonUse tool schemas to force Claude to return data that matches a strict structure.
  12. The text edit toolLessonLet Claude view and modify text or code files through a dedicated editing tool.
  13. The web search toolLessonConnect Claude to live web search so it can retrieve current information.
  14. Quiz on tool use with ClaudeQuizQuestions covering tool schemas, message blocks, multi-turn loops, and built-in tools.

Retrieval Augmented Generation

  1. Introducing Retrieval Augmented GenerationLessonHow supplying external documents at query time grounds Claude's responses in your data.
  2. Text chunking strategiesLessonSplit large documents into smaller passages that can be indexed and retrieved.
  3. Text embeddingsLessonConvert text chunks into numerical vectors to measure similarity between queries and documents.
  4. The full RAG flowLessonThe end-to-end architecture for indexing documents, retrieving matches, and prompting the model.
  5. Implementing the RAG flowLessonWrite the code to search embedded chunks and pass the results to Claude.
  6. BM25 lexical searchLessonScore document relevance using exact keyword matching alongside vector search.
  7. A Multi-index RAG pipelineLessonCombine results from vector embeddings and lexical search to improve retrieval recall.
  8. Reranking resultsLessonScore and reorder retrieved passages before sending the top matches to Claude.
  9. Contextual retrievalLessonPrepend document context to chunks before indexing so passages keep their meaning.
  10. Quiz on Retrieval Augmented GenerationQuizCheck your knowledge of chunking, embeddings, hybrid search, and reranking.

Features of Claude

  1. Extended thinkingLessonGive Claude a reasoning budget to work through complex problems before answering.
  2. Image supportLessonSend images alongside text in your API requests so Claude can analyze visual inputs.
  3. CitationsLessonHave Claude attach source references to its answers from the documents you provide.
  4. Prompt cachingLessonReuse repeated prompt prefixes across requests to reduce latency and token costs.
  5. Rules of prompt cachingLessonHow cache breakpoints, prefix ordering, and expiration rules affect cache hits.
  6. Prompt caching in actionLessonAdd cache control markers to a real request and inspect the cached token counts.
  7. Quiz on features of ClaudeQuizReview extended thinking, image inputs, source citations, and prompt caching rules.

Model Context Protocol

  1. Introducing MCPLessonHow the Model Context Protocol standardizes connections between AI models and external data or tools.
  2. MCP clientsLessonThe role of an MCP client in discovering and calling capabilities on a server.
  3. Project setupLessonPrepare the local codebase and dependencies for building an MCP server and client.
  4. Defining tools with MCPLessonExpose executable functions from an MCP server so a connected client can invoke them.
  5. The server inspectorLessonTest and debug your MCP server's tools, resources, and prompts using the inspector utility.
  6. Implementing a clientLessonWrite client code that connects to an MCP server and routes tool calls from Claude.
  7. Defining resourcesLessonPublish read-only data sources on an MCP server for clients to fetch as context.
  8. Accessing resourcesLessonQuery and read server resources from your MCP client to include in model requests.
  9. Defining promptsLessonCreate reusable prompt templates on an MCP server that clients can request.
  10. Prompts in the clientLessonFetch server-defined prompt templates in your client and pass them to Claude.
  11. MCP reviewLessonA recap of how tools, resources, and prompts fit together in the Model Context Protocol.
  12. Quiz on Model Context ProtocolQuizQuestions on MCP architecture, server definitions, and client implementation.

Agents and workflows

  1. Agents and workflowsLessonThe difference between fixed multi-step workflows and open-ended agent loops.
  2. Parallelization workflowsLessonRun independent model calls at the same time and combine their outputs.
  3. Chaining workflowsLessonBreak a task into sequential steps where each model call builds on the previous output.
  4. Routing workflowsLessonClassify an incoming request first and send it to a specialized prompt or handler.
  5. Agents and toolsLessonLet Claude decide which tools to call and in what order to complete a goal.
  6. Environment inspectionLessonGive an agent ways to check state and verify results as it works.
  7. Workflows vs agentsLessonHow to choose between predictable workflow patterns and autonomous agents for production tasks.
  8. Quiz on agents and workflowsQuizCheck your understanding of chaining, routing, parallelization, and agent design.

Final assessment

  1. Final assessment quizQuizA comprehensive quiz covering all sections of the Claude on Google Cloud course.

Details

Details
SourceFormatDuration
Claude AcademyCourse521 min