✨ Course · 16 lessons · about 9.3 hours

Generative AI & LLM Engineering

Build production LLM features: call model APIs, get structured outputs, use tools, search with embeddings and vector databases, then evaluate, secure, trace, and ship them.

Start lesson 1 →Roles: Generative AI Engineer · LLM Application Engineer · AI Engineer

Before you start

Python through Advanced PythonPrompt Engineering and RAG (AI & ML)

Part of these career paths

AI EngineerAgentic AI EngineerFull-Stack Developer (AI-enabled)AI Security EngineerGenerative AI DeveloperMLOps Engineer

Module 1 · Building with LLM APIs

Talk to models from code and get reliable, machine-readable answers back.

  1. Lesson 0135 minCalling LLM APIs — SDKs, Messages and StreamingMake your first model call from Python, structure system and user messages, stream tokens to the user, and handle errors and retries.
  2. Lesson 0225 minTokens, Pricing and Rate LimitsCount tokens, estimate the cost of a feature in rupees and dollars, and design around rate limits and timeouts.
  3. Lesson 0330 minStructured Outputs with JSON Schema and PydanticMake models return validated JSON using JSON Schema, provider structured-output modes, and Pydantic models, and recover when validation fails.
  4. Lesson 0435 minFunction and Tool CallingDescribe tools to a model, execute the calls it requests, return results, and keep the loop safe and bounded.
  5. Lesson 0535 minMultimodal APIs — Vision, Audio and SpeechSend images and documents to vision-capable models, transcribe and generate speech, and design features that combine text, images and audio.

Module 2 · Retrieval & Vector Databases

Turn documents into searchable vectors and retrieve the right context.

  1. Lesson 0630 minEmbeddings in Practice — Chunking and Similarity SearchGenerate embeddings, choose a chunking strategy, and run cosine-similarity search over your own documents.
  2. Lesson 0735 minVector Databases — pgvector, Chroma, Pinecone and FAISSStore and query embeddings at scale: indexes (HNSW, IVF), metadata filters, hybrid search, and how to choose a vector store.

Module 3 · Quality, Safety & Operations

Prove your LLM feature works, keep it safe, and keep it affordable.

  1. Lesson 0835 minEvaluating LLM Apps — Eval Sets, LLM-as-Judge and RAG MetricsBuild an evaluation set, score outputs with code checks and LLM judges, measure RAG faithfulness and relevance, and gate releases on results.
  2. Lesson 0935 minGuardrails, Prompt Injection and PII HandlingDefend LLM features against direct and indirect prompt injection, filter unsafe input and output, and keep personal data out of prompts and logs.
  3. Lesson 1030 minObservability and Tracing for LLM AppsTrace every model call, retrieval, and tool call with OpenTelemetry-style spans; track cost, latency, and quality in production.
  4. Lesson 1130 minCost and Latency Optimisation — Caching, Batching and RoutingCut cost and response time with prompt caching, response caching, batching, smaller-model routing, and output limits.

Module 4 · Shipping LLM Features

Choose your tooling and put an AI feature in front of users.

  1. Lesson 1225 minLLM Frameworks — LangChain and LlamaIndex: When to Use ThemWhat LangChain and LlamaIndex give you, what they cost in complexity, and how to decide between a framework and plain SDK code.
  2. Lesson 1335 minRunning Open Models — Ollama, vLLM and Hugging FaceRun open-weight models locally with Ollama, serve them with vLLM, pick a model from Hugging Face, and compare cost, latency and quality with hosted APIs.
  3. Lesson 1440 minShipping an AI Feature — FastAPI Backend and Chat UIWrap a RAG assistant in a FastAPI service with streaming responses, a minimal chat UI, configuration, and deployment checks.

Module 5 · Capstone & Career

Put everything together in one production project, then prepare for interviews.

  1. Lesson 1560 minCapstone — Production RAG AssistantPlan, build, evaluate and deploy a RAG assistant over a real document set with structured outputs, guardrails, tracing and a cost budget.
  2. Lesson 1645 minGenerative AI Interview PrepThe LLM engineering questions interviewers ask most — RAG design, evaluation, cost, safety and system design — with model answers.