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.
- Your first call to the Claude API: An API key, the official SDK and a first answer from Python and TypeScript.
- Messages, roles and multi-turn conversations: The system prompt, the conversation history and how to keep the context.
- Costs, tokens and prompt caching: Estimate an application's cost and reduce it without losing quality.
- 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.
- Reliable JSON with schemas: Structured outputs validated against a schema.
- Tool use: let the model call your functions: Define tools, run calls and return results.
- 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.
- What an embedding is: Vectors that represent meaning, and how to compare them.
- Vector databases: Index and search millions of vectors.
- 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.
- Ingestion and chunking: Preparing documents: cleaning, splitting and metadata.
- Retrieval and re-ranking: Find the right fragments and order them.
- Generation with citations: Answers that cite the source and admit when they don't know.
- 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.
- How to measure an AI system: Test sets, metrics and baselines.
- Automated evaluations with an LLM as judge: Use a model to grade answers with a rubric.
- 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.
- Deploying an AI API: From the notebook to a service in the cloud.
- Observability and costs in production: Log, monitor and budget.
- 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