Skip to content
All paths
IntermediateData & AI

AI Engineering with Python

Learn to build reliable applications on top of large language models: API calls, prompting, embeddings, RAG, tool use and agents, all measured with evals and deployed as real services. Vendor-neutral, using each provider's official SDK docs.

What you will be able to do

  • Call LLM APIs with streaming, structured output, retries and cost control
  • Write and version prompts that behave predictably
  • Build retrieval-augmented generation over your own documents
  • Give models tools and build safe, bounded agent loops
  • Measure quality with evals and deploy an LLM service to production

Roadmap

Bar length shows each module's share of study time.

  1. 1

    Foundations

    Enough theory and Python to build with confidence.

    10h3 topics
    Not started
    Show topics
  2. 2

    Working with LLM APIs

    Production-quality calls to any model provider.

    12h5 topics
    Not started
    Show topics
    • Send multi-turn chat requests with system prompts using a provider's official Python SDK.

      • Install a provider SDK and set API keys
      • Send a single-turn request
      • Add a system prompt
      • Build a multi-turn conversation
    • Stream tokens to a terminal or web client and handle partial output.

      • Stream tokens to the terminal
      • Stream to a web client
      • Handle partial and interrupted output
    • Get validated, typed objects back from a model instead of free text.

      • Define an output JSON schema
      • Request structured output from the model
      • Parse responses into Pydantic models
      • Handle validation failures
    • Wrap model calls with backoff, timeouts and graceful fallbacks.

      • Add timeouts to model calls
      • Retry with exponential backoff
      • Handle rate limit errors
      • Add a fallback model
    • Estimate per-request cost and cut it with shorter prompts, caching and smaller models.

      • Count tokens before sending
      • Estimate cost per request
      • Measure latency per call
      • Cut cost with caching and smaller models
  3. 3

    Prompt engineering

    Clear instructions beat clever tricks.

    7h3 topics
    Not started
    Show topics
  4. 4

    Embeddings & retrieval

    Find the right information before the model answers.

    12h4 topics
    Not started
    Show topics
  5. 5

    Retrieval-augmented generation

    Answers grounded in your own data.

    10h3 topics
    Not started
    Show topics
  6. 6

    Tool use & agents

    Let models take actions, within limits.

    12h4 topics
    Not started
    Show topics
  7. 7

    Evaluation & observability

    If you can't measure it, you can't improve it.

    12h5 topics
    Not started
    Show topics
    • Create a labelled test set from real and synthetic examples covering edge cases.

      • Collect real user examples
      • Generate synthetic edge cases
      • Label expected outputs
      • Version the dataset
    • Score outputs automatically and calibrate an LLM judge against human labels.

      • Write deterministic code checks
      • Build an LLM-as-judge rubric
      • Calibrate the judge against human labels
      • Review disagreements by hand
    • Measure retrieval recall and answer faithfulness separately.

      • Measure retrieval recall and precision
      • Measure answer faithfulness
      • Diagnose retrieval vs generation failures
    • Block prompt or model changes that lower eval scores.

      • Run evals in a CI job
      • Set score thresholds
      • Fail builds on regressions
    • Trace every model call with inputs, outputs, latency and cost and collect user feedback.

      • Trace every model call
      • Log inputs, outputs, latency and cost
      • Collect user feedback
      • Review traces to find failures
  8. 8

    Deployment

    From notebook to a service people rely on.

    12h4 topics
    Not started
    Show topics
  9. 9

    Capstone project

    An AI app with evidence that it works.

    17h2 topics
    Not started
    Show topics