Generative AI

Generative AI: Intermediate Level

Build real applications with language model APIs: structured outputs, tools and RAG over your documents.

Intermediate · 25 hours · 20 lessons · Course language: Spanish and English

Go from using assistants to building products. You'll program with the Claude API, make the model return structured data and call your functions, build a RAG system over a company's documents and learn to measure its quality and cost before taking it to production. The lessons and quizzes are in English; the code, the sample corpus and its queries keep their original Spanish names, and every lesson explains them.

What you will learn

  • Call the Claude API from Python and TypeScript with good error handling
  • Control costs with token counting and prompt caching
  • Get valid JSON with schemas and connect the model to your own functions
  • Build a RAG system with semantic and hybrid search and answers with citations
  • Measure quality with test sets and automated evaluations
  • Deploy an AI API with observability and cost control

Skills

Claude API, Python and TypeScript, Structured outputs (JSON), Tool use, Embeddings, RAG, LLM evaluation, API deployment

Program

Module 1: Programming with language model APIs

Your first application: messages, conversations, streaming, errors and costs.

Project: A command-line assistant with conversation memory.

  1. Your first call to the Claude API: An API key, the official SDK and a first answer from Python and TypeScript.
  2. Messages, roles and multi-turn conversations: The system prompt, the conversation history and how to keep the context.
  3. Costs, tokens and prompt caching: Estimate an application's cost and reduce it without losing quality.
  4. Streaming and error handling: Real-time answers, retries, rate limits and timeouts.

Module 2: Structured outputs and tools

Make the model return reliable data and call your functions.

Project: An assistant that queries a real API and answers with verified data.

  1. Reliable JSON with schemas: Structured outputs validated against a schema.
  2. Tool use: let the model call your functions: Define tools, run calls and return results.
  3. Lab: an assistant that queries a real API: An assistant that queries external data and answers with it.

Module 3: Embeddings and semantic search

Represent meaning with vectors and search by similarity.

Project: A semantic search engine over a company's frequently asked questions.

  1. What an embedding is: Vectors that represent meaning, and how to compare them.
  2. Vector databases: Index and search millions of vectors.
  3. Hybrid search: Combine keyword and semantic search.

Module 4: RAG from start to finish

Ingestion, chunking, retrieval, re-ranking and generation with citations.

Project: A chat with a company's internal documents.

  1. Ingestion and chunking: Preparing documents: cleaning, splitting and metadata.
  2. Retrieval and re-ranking: Find the right fragments and order them.
  3. Generation with citations: Answers that cite the source and admit when they don't know.
  4. Lab: chat with your documents: We build a complete RAG from start to finish.

Module 5: Evaluation and quality

Measure, compare and protect an AI system.

Project: An automated evaluation suite for your RAG system.

  1. How to measure an AI system: Test sets, metrics and baselines.
  2. Automated evaluations with an LLM as judge: Use a model to grade answers with a rubric.
  3. Guardrails and security: Prompt injection, sensitive data and limits.

Module 6: Deployment and final project

Take the application to production and present it.

Project: A deployed RAG assistant for a business case.

  1. Deploying an AI API: From the notebook to a service in the cloud.
  2. Observability and costs in production: Log, monitor and budget.
  3. Final project: a RAG assistant for a company: Presenting the deployed project.

Prerequisites

  • Basic Python or JavaScript (variables, functions, lists)
  • Having taken Generative AI: Beginner Level, or equivalent experience
  • An account at platform.claude.com to get an API key

See all courses