Topic

AI fundamentals and RAG

Claude from the API up: prompts, structured output, tools, cost, MCP and retrieval augmented generation.

  • 10 hands-on labs
  • Beginner to advanced
  • AI plan

Opens with the AI plan, which includes the DevOps tracks, or with a Teams seat.

Labs

10 labs in order. Beginner to advanced.

Each lab is a real machine built only for you, with a guide and checks that read what you actually did.

  1. Beginner

    Your first calls to Claude

    Send your first request to Claude with curl, then from Python with the Anthropic SDK and a system prompt, read each answer's stop reason and token usage, and work out what a call costs.

  2. Beginner

    Prompts that classify log lines

    Classify 40 real looking server log lines with Claude, zero shot, then with examples, then step by step, keep every prompt version, and get at least 36 right.

  3. Beginner

    Structured output for ticket triage

    Build a ticket triage tool that asks Claude for answers in a JSON schema with structured outputs, checks every record, retries one that fails, and follows the team's priority rules.

  4. Intermediate

    A tool loop that diagnoses a server

    Give Claude read only tools for the journal, the service status and directory listings, write the tool loop yourself, and let it find why the inventory API stopped.

  5. Intermediate

    Tokens, caching and cost

    Count tokens before sending, cache a long runbook so later questions read it at a tenth of the price, compare Haiku and Sonnet on the same question, and keep a cost report with a spend guard.

  6. Intermediate

    An MCP server for host facts

    Build a read only MCP server that reports uptime, disk use and listening ports with the Python MCP SDK, then a tool loop that starts it, offers its tools to Claude and calls them through MCP, logging every call.

  7. Intermediate

    Ground answers in your runbooks

    Find the passage that answers each question with a keyword baseline, then with local embeddings and cosine similarity, and ask Claude for an answer grounded in the passages it is given, with a citation.

  8. Intermediate

    A vector store with metadata filters

    Compare ways to chunk the runbooks, build a small vector store in numpy that saves and loads, then a persistent sqlite-vec database with topic and service metadata, and measure recall at 3 with filtered queries.

  9. Intermediate

    A runbook assistant that cites its sources

    Build an assistant service that retrieves runbook passages, answers only from them with citations, refuses questions the runbooks do not cover, and runs under systemd with a health check.

  10. Advanced

    Evaluate a retrieval pipeline

    Evaluate retrieval on a golden set of 20 questions for two chunk sizes: hit rate at 3, answers judged for groundedness by Claude with structured output, and the setting the numbers support.

Learning paths

On these learning paths.