Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
⁠ ⁠100 Days of AI Engineering
New
Rating: 5.0 out of 5(2 ratings)
516 students

⁠ ⁠100 Days of AI Engineering

Build 100 hands-on projects with Python, LLMs, RAG and AI agents, progressing from foundations to enterprise application
Last updated 10/2026
English
English [Auto],

What you'll learn

  • Build Python data pipelines and machine learning models, using validation, testing, and evaluation to measure results.
  • Develop LLM applications with structured outputs, conversation history, streaming responses, and validated tool calls.
  • Build RAG assistants with document ingestion, semantic search, citations, reranking, and evidence-based answer evaluation.
  • 1. Create AI agents and MCP integrations with human approvals, then expose applications through APIs with access controls and monitoring.

Course content

10 sections • 199 lectures • 14h 22m total length
  • Reproducible AI Development Environments4:15

    Reproducible AI Development Environments. Every AI project starts with an environment, and a project that only runs on one laptop is a project nobody can trust. This lecture explains why reproducibility matters and how to set up Python environments that behave the same on every machine.


    We begin with the common failures. A library updates and quietly changes behavior, a teammate has a different Python version, or a notebook works only because of packages installed months ago. In AI work these differences can change numerical results, break model loading and make experiments impossible to compare.


    You will learn the practical toolkit: choosing a Python version, creating isolated virtual environments, declaring dependencies in a requirements or project file, pinning exact versions and recording how to recreate the setup from scratch. We also cover keeping secrets and API keys out of source code, organizing a project folder and writing a short readme so that another person can run your work.


    The lecture connects environment discipline to the rest of the course, where you will train models, call language models and deploy services. Each of those depends on knowing exactly what software produced a result.


    We also discuss simple checks, such as printing versions and running a smoke test, that confirm an environment is healthy before you start work.


    By the end of this lecture you will be able to explain why reproducibility matters, create an isolated Python environment and document it so that others can rebuild it.

  • Day 1: Python Development Setup — Build a command-line environment checker4:14

    Day 1: Python Development Setup — Build a command-line environment checker. On your first day you set up your tools and build a small utility that checks whether a machine is ready for AI engineering work. It is a gentle project that proves your setup works and introduces habits you will use for the next hundred days.


    The steps I would expect you to follow are these. First, create a project folder with a virtual environment and a clear structure. Second, install the required tools and pin the versions in a requirements file. Third, write a Python script that reports the Python version, the operating system, the installed packages and whether the expected versions are present. Fourth, add command-line arguments so the user can choose a quiet or detailed report. Fifth, return clear messages and a meaningful exit code when something is missing, so the checker can be used in automation. Sixth, write a short readme describing how to run it.


    The project introduces functions, string formatting, reading package metadata and basic command-line interfaces, all in a small, achievable scope.


    Use only your own machine and no private data. Save your work in version control from the first day.


    By the end of this project you will have a working environment checker, a clean project template and a daily routine of building, testing and documenting small tools.

  • Token Budgets and Inference Cost4:25

    Token Budgets and Inference Cost. Language models charge by the token, and uncontrolled usage can turn a small prototype into a surprising bill. This lecture introduces tokens, context limits and the arithmetic of inference cost, using basic Python concepts you are about to practice.


    A token is a small chunk of text, often a piece of a word. Models measure both what you send and what they generate in tokens, and each model has a maximum context size and a price per unit of input and output. Because output tokens are usually priced higher than input tokens, long answers cost more than long questions.


    We work through simple calculations. Given the average prompt length, the expected response length, the number of requests per day and the price per thousand tokens, you can estimate daily and monthly cost. We discuss how retries, long conversation history and large documents increase usage, and why cost estimates should include a safety margin.


    You will see how variables, numeric types and functions make these calculations reusable, and why careful handling of units and rounding matters when money is involved.


    We also introduce the idea of a budget as a design constraint, which will appear again when you build monitoring dashboards and rate limits later in the course.


    By the end of this lecture you will be able to estimate token usage and cost for a workload and explain the factors that drive it.

  • Day 2: Variables, Types, and Functions — Build an AI usage cost calculator4:11

    Day 2: Variables, Types, and Functions — Build an AI usage cost calculator. Today you turn the cost arithmetic from the previous lecture into a small, reliable calculator. The project practices variables, numeric types and functions while solving a real engineering problem.


    The steps I would expect you to follow are these. First, define the inputs, such as model name, input price, output price, prompt tokens, response tokens and requests per day. Second, write small functions, one for the cost of a single request, one for daily cost and one for monthly projection, each with clear parameters and return values. Third, handle units carefully, converting prices per million tokens into per token values. Fourth, add type hints and docstrings so that each function explains itself. Fifth, build a simple command-line interface that accepts the inputs and prints a readable summary. Sixth, test with a few hand-calculated examples to confirm the answers.


    You will also practice avoiding common mistakes, such as mixing integers and floats carelessly, hiding magic numbers in code and writing one giant function.


    Use illustrative prices, since real prices change, and keep the prices in a configuration dictionary that is easy to update.


    By the end of this project you will have a tested cost calculator and a stronger grasp of functions, types and clean, readable Python.

  • Data Identity and Deduplication4:14

    Data Identity and Deduplication. The same customer, document or event can appear many times in different forms, and AI systems that ignore this learn the wrong lessons. This lecture explains data identity and deduplication using the core Python collections you are about to use.


    Identity answers a simple question: when are two records the same thing? Sometimes a stable identifier exists, such as a customer number. Often it does not, and records differ by spelling, spacing, capitalization or formatting. Deciding what makes two records equivalent is a design decision, not a technical accident.


    We discuss why duplicates cause harm. They inflate counts, bias statistics, leak between training and test sets and waste storage and cost in downstream processing. We introduce the strategies: exact matching on normalized keys, matching on combinations of fields and flagging near-duplicates for review rather than deleting them automatically.


    You will see how lists preserve order, dictionaries provide fast lookup by key and sets handle uniqueness and membership efficiently, and how to choose among them. We also discuss normalization steps such as trimming whitespace and standardizing case, and the importance of keeping an audit record of what was merged.


    Careful deduplication should be reversible and explainable, because mistaken merges can damage data quality.


    By the end of this lecture you will be able to define record identity, choose appropriate collections and reason about safe deduplication.

  • Day 3: Lists, Dictionaries, and Sets — Build a customer-record deduplication too4:13

    Day 3: Lists, Dictionaries, and Sets — Build a customer-record deduplication tool. Today you build a practical tool that finds duplicate customer records, using lists, dictionaries and sets together. The project uses synthetic data, so no real personal information is involved.


    The steps I would expect you to follow are these. First, create a sample dataset of customer records with deliberate duplicates, such as extra spaces, different capitalization and slightly different formatting of emails or phone numbers. Second, write normalization functions that produce a clean comparison key. Third, use a dictionary to group records by key and a set to track seen identifiers. Fourth, decide which record to keep in each group, for example the most complete or the most recent, and document the rule. Fifth, output a report listing the groups, the chosen record and the discarded ones, rather than silently deleting anything. Sixth, write tests for edge cases such as empty fields and records with identical names but different emails.


    Pay attention to efficiency. Looking up a key in a dictionary is much faster than scanning a list, which matters when datasets grow.


    Keep the sample data, the merge rule and the report together in your project folder, so that you can rerun the tool later, explain every decision it made and adjust the rule without guessing.


    By the end of this project you will have a working deduplication tool, a clear merge policy and practical fluency with Python collections.

  • AI Dataset Formats and Serialization4:19

    AI Dataset Formats and Serialization. Before a model can learn from data, the data must be stored, exchanged and loaded reliably. This lecture explains common dataset formats and serialization, the process of turning in-memory objects into files and back.


    We compare the formats you will meet constantly. CSV is simple and widely supported, but it has no types and struggles with commas, quotes and line breaks inside values. JSON preserves nested structure and is the standard for APIs and configuration, but large files are awkward to process. JSON Lines stores one record per line, which suits streaming and very large datasets. Binary formats can be faster and smaller, but are less human readable.


    You will learn the questions that guide the choice: who consumes the data, how large it is, whether it has nested fields, whether types must be preserved and whether it must be appended to over time. We also cover encodings, since text files that look fine on one system can be corrupted on another, and why you should always state the encoding explicitly.


    Serialization has risks. Loading untrusted files with unsafe mechanisms can be dangerous, so prefer simple, well-defined formats for data exchange.


    Finally, we discuss validating data after loading, since a successful parse does not prove the content is correct.


    By the end of this lecture you will be able to choose a format, read and write it safely and explain the tradeoffs.

  • Day 4: Files, JSON, and CSV — Build a dataset format converter4:13

    Day 4: Files, JSON, and CSV — Build a dataset format converter. Today you build a tool that converts datasets between CSV, JSON and JSON Lines, practicing file handling and careful data handling at the same time.


    The steps I would expect you to follow are these. First, create small sample files in each format using synthetic records, including awkward cases such as commas inside values, missing fields, nested objects and non-English characters. Second, write reader functions for each format that return a common list of dictionaries. Third, write writer functions that output each format with explicit encoding. Fourth, build a command-line interface that takes an input path, an output path and a target format. Fifth, add safeguards: refuse to overwrite existing files by default, report how many records were converted and warn about fields that cannot be represented, such as nested data in CSV. Sixth, write tests that convert a file through every format and confirm that the content survives the round trip.


    Use context managers for files so they always close, and handle encoding errors with clear messages.


    Keep the sample files and round-trip tests in your repository, and rerun them whenever you add a format, because conversion bugs usually appear first in small details such as quoting, encoding and empty values.


    By the end of this project you will have a reliable converter and solid habits for working with files, JSON and CSV.

  • Input Validation and Failure Handling4:15

    Input Validation and Failure Handling. Real data is messy, and real programs fail. This lecture explains how to validate inputs and handle failures so that your AI pipelines behave predictably instead of crashing or silently producing wrong results.


    We start with the distinction between errors you can prevent and errors you must handle. Validation checks inputs before using them: types, required fields, ranges, formats and allowed values. Exception handling deals with problems that occur anyway, such as a missing file, a malformed record or a network failure.


    You will learn Python's exception model: raising meaningful exceptions, catching specific types rather than everything, using finally and context managers to clean up and creating custom exceptions that carry useful information. We discuss the danger of swallowing errors, which hides problems until they cause bigger ones, and the value of failing fast when continuing would corrupt results.


    For data pipelines, a useful pattern is to separate good records from bad ones. Valid records continue, invalid ones go to a rejected collection with a reason, and a summary reports counts. This keeps one bad row from stopping a large job while keeping problems visible.


    We also discuss clear error messages that tell the user what happened and what to do next, without exposing sensitive details.


    By the end of this lecture you will be able to design validation rules and failure handling that make data code resilient and transparent.

  • Day 5: Exceptions and Input Validation — Build a resilient data import utility4:16

    Day 5: Exceptions and Input Validation — Build a resilient data import utility. Today you build an importer that reads messy data, validates every record and reports problems instead of crashing. It is a small version of the tools that keep real pipelines healthy.


    The steps I would expect you to follow are these. First, prepare a synthetic input file with deliberate problems, such as missing required fields, wrong types, impossible dates, negative quantities and a corrupted line. Second, define validation rules as small functions that return clear error messages. Third, write the import loop so that each record is validated, and valid and invalid records are collected separately. Fourth, define custom exceptions for different failure types and handle file-level failures, such as a missing file or a bad encoding, with helpful messages. Fifth, write the rejected records to a separate file with the reason for each rejection. Sixth, print a summary with counts of accepted and rejected records and return an exit code that reflects the outcome.


    Write tests with both valid and invalid data, and confirm that nothing is silently dropped.


    Keep the rejected-records file and the summary output as part of your project, because a clear record of what was refused and why is what makes an importer trustworthy to the people who rely on it.


    By the end of this project you will have a resilient import utility and practical skill in exceptions, validation and honest reporting.

  • Reusable AI Pipeline Components4:05

    Reusable AI Pipeline Components. AI systems are made of many small steps, and the quality of those steps determines whether the whole system can be maintained. This lecture explains how to design reusable pipeline components using Python modules and packages.


    A component does one job, takes clear inputs and returns clear outputs. Examples include a text cleaner, a tokenizer wrapper, a validator and a feature builder. When these live in a single large script, they are hard to test, hard to reuse and easy to break. Splitting them into modules, and grouping related modules into packages, gives your project structure.


    You will learn how Python finds and imports code, how to organize a package with an init file, how to expose a clean public interface and how to avoid circular imports. We discuss naming, keeping functions pure where possible so that the same input always gives the same output and documenting each component with a short docstring.


    We also cover how packaging supports collaboration. When components have stable interfaces, teammates can improve one without breaking the others, and tests can target each piece independently.


    Finally, we introduce the idea of installing your own package into your environment so that every project can reuse it consistently.


    By the end of this lecture you will be able to organize code into modules and packages and design components that are testable and reusable.

  • Day 6: Modules and Packages — Package reusable text-cleaning functions4:13

    Day 6: Modules and Packages — Package reusable text-cleaning functions. Today you build a small, installable package of text-cleaning functions that you can reuse in later projects, including those that prepare text for language models.


    The steps I would expect you to follow are these. First, create a package folder with a clear name and an init file, plus a separate module for each concern, such as whitespace handling, case normalization, punctuation removal and simple tokenization. Second, write each function with type hints and a docstring, keeping them small and free of side effects. Third, expose a clean public interface so that users can import the main functions directly. Fourth, create a project configuration file that allows the package to be installed in editable mode. Fifth, write a small demonstration script that imports your package and cleans sample text. Sixth, add tests for edge cases, such as empty strings, unusual spacing and non-English characters.


    Think about order, because cleaning steps can interact, and document the intended sequence.


    Use only synthetic or public text for the examples.


    Keep a short readme that lists each function, its purpose and an example of its input and output, so that you or a teammate can reuse the package in a later project without rereading the source code.


    By the end of this project you will have a reusable package, a clean import structure and the confidence to organize future code into well-defined modules.

  • Document Identity and State Management4:17

    Document Identity and State Management. Documents move through pipelines, change over time and need to be tracked reliably. This lecture explains how to model document identity and state using object-oriented Python.


    Every document needs a stable identity, such as an identifier that does not change when the title or content is edited, plus attributes that do change, such as version, status and timestamps. Mixing these up causes duplicate entries, lost history and confusing bugs. We discuss how to decide what defines a document and what should be metadata.


    Classes let you bundle data and behavior. A document class can hold its content and metadata and offer methods that change state in controlled ways, for example marking a document as processed or archived. A collection class can manage many documents, enforce uniqueness of identifiers and provide search and filtering.


    You will learn about initialization, instance and class attributes, properties, special methods such as string representation and equality and the idea of keeping invalid states impossible by validating inside the class. We also discuss composition versus inheritance and when simple data classes are enough.


    State management matters in AI pipelines because a document may be new, extracted, chunked, embedded or deleted, and downstream steps need to know which.


    By the end of this lecture you will be able to design classes that model documents and their lifecycle safely.

  • Day 7: Object-Oriented Python — Build a document collection manager4:11

    Day 7: Object-Oriented Python — Build a document collection manager. Today you build a manager that stores documents, tracks their state and supports searching and updates, using classes and clear interfaces.


    The steps I would expect you to follow are these. First, define a document class with an identifier, title, content, version, status and timestamps, validating inputs when objects are created. Second, add methods for controlled state changes, such as marking a document as reviewed or archived, and prevent invalid transitions. Third, write a collection class that stores documents by identifier, rejects duplicates and supports adding, retrieving, updating and removing items. Fourth, add search and filter methods, such as finding documents by status or by a keyword in the title. Fifth, implement readable string representations to help debugging. Sixth, write tests for normal operations and edge cases, such as updating a missing document or archiving twice.


    Persist the collection to a JSON file and reload it, practicing serialization of objects.


    Use synthetic documents so that no confidential material is involved.


    Keep the tests and the saved JSON file in your repository, and add a short note on the allowed state transitions, so that anyone extending the manager understands which changes are permitted and why.


    By the end of this project you will have a working document manager and practical experience with classes, encapsulation and lifecycle modeling.

  • Streaming Data and Incremental Processing4:08

    Streaming Data and Incremental Processing. Many AI datasets are too large to fit in memory, and many data sources never stop producing records. This lecture explains streaming and incremental processing using Python iterators and generators.


    When you load an entire file into a list, memory use grows with the file. Streaming reads and processes one record, or one small batch, at a time, so memory use stays small regardless of file size. The same approach works for log files, event feeds, large exports and API responses.


    You will learn what iterators are, how the iteration protocol works and how generators let you write lazy pipelines with the yield keyword. Generators can be chained so that each stage handles a record and passes it on, forming a pipeline in which data flows through without being stored in full.


    We discuss the tradeoffs. Streaming is memory efficient but you can only pass over the data once unless you reopen it, you must handle partial failures and you need to think about batching for efficiency. Incremental processing also requires remembering where you stopped, so a job can resume after interruption without repeating work.


    These ideas return in later sections, when you process large document collections, ingest API data and build monitoring pipelines.


    By the end of this lecture you will be able to explain iterators and generators and design memory-efficient streaming pipelines.

  • Day 8: Iterators and Generators — Build a streaming log processor4:11

    Day 8: Iterators and Generators — Build a streaming log processor. Today you build a processor that reads a large log file line by line, filters and transforms the entries and produces summaries without loading the whole file into memory.


    The steps I would expect you to follow are these. First, generate a synthetic log file with many lines, including different severity levels, timestamps and a few malformed lines. Second, write a generator that reads the file lazily and yields one line at a time. Third, write further generators that parse each line into a structured record, skip or count malformed lines and filter by severity or time window. Fourth, chain the generators into a pipeline. Fifth, compute running summaries, such as counts per severity and the most frequent messages, while streaming. Sixth, add batching so that results can be written out in groups, and measure memory use compared with a version that loads everything.


    Include a checkpoint, such as the line number reached, so that processing can resume after an interruption.


    Write tests using small in-memory inputs to verify the logic of each stage.


    Keep the sample log generator, the pipeline stages and the memory comparison together, so that you can repeat the measurement later and show concrete evidence of the benefit of streaming over loading everything.


    By the end of this project you will have a streaming processor and a practical understanding of generators and lazy evaluation.

  • Behavioral Testing for AI Components4:03

    Behavioral Testing for AI Components. AI code often fails quietly, producing plausible but wrong output, so testing is a core engineering skill rather than an optional extra. This lecture introduces behavioral testing for AI components and the pytest tool you will use to automate it.


    A behavioral test checks what a component does, not how it does it. Given an input, does the validator reject the bad record? Does the cleaner preserve the meaning of the text? Does the function return the expected result for edge cases? Such tests protect you when you refactor or change a dependency.


    We cover how to design useful tests: pick representative cases, include boundary values and unusual inputs, test failure paths as carefully as success paths and keep each test small and focused. We discuss fixtures for shared setup, parameterized tests for running the same check over many inputs and temporary files for testing code that touches the disk.


    For AI-related components, there are special concerns. Outputs may vary, so tests should check properties, such as format and constraints, instead of exact wording. External services should be replaced with simple fakes so that tests are fast, repeatable and free.


    Tests also serve as documentation, showing how a component is meant to be used.


    By the end of this lecture you will be able to design behavioral tests and explain how they support safe change.

  • Day 9: Testing with Pytest — Build a tested data-validation library4:20

    Day 9: Testing with Pytest — Build a tested data-validation library. Today you build a small validation library and a thorough pytest suite around it, practicing the habit of writing tests alongside code.


    The steps I would expect you to follow are these. First, design a small library of validators, such as checks for required fields, numeric ranges, email-like formats, allowed categories and date ordering, each returning a clear result with a message. Second, write tests for every validator, covering valid input, invalid input and boundary values. Third, use parameterized tests to run many cases compactly. Fourth, use fixtures to create reusable sample records and temporary files. Fifth, test that errors are reported with helpful messages and that unusual inputs, such as empty values or unexpected types, do not crash the library. Sixth, run the suite with coverage reporting and look at which lines are untested.


    Practice writing a test first for a new behavior, watching it fail and then implementing the code to make it pass.


    Use synthetic data only.


    Keep the test suite in your repository and run it before every change, since the real value of this project is the habit of letting automated checks tell you whether a modification was safe.


    By the end of this project you will have a tested library, a pytest workflow you can reuse and an appreciation of how tests make later AI work safer.

  • Configuration and Data-Quality Monitoring4:20

    Configuration and Data-Quality Monitoring. Pipelines run for months, and the settings and data around them keep changing. This lecture explains how configuration and logging, together with data-quality checks, keep AI systems understandable and trustworthy.


    Configuration separates settings from code. Thresholds, file paths, model names and feature flags belong in configuration files or environment variables, not scattered through the source. Secrets must be handled separately and never committed. Good configuration is validated at startup, so that a missing or invalid value stops the program immediately with a clear message.


    Logging records what a program did. You will learn log levels, structured messages, including context such as identifiers and counts, and why print statements are a poor substitute. Logs should help you answer questions later, such as which records were rejected and why, without exposing sensitive content.


    Data-quality monitoring turns these ideas into checks on the data itself: counts of missing values, duplicates, out-of-range values, unexpected categories, and changes in distributions compared with a baseline. Reporting these metrics each run reveals problems early, before they reach a model.


    We discuss thresholds and alerts, and the need to distinguish a warning that deserves attention from an error that should stop the pipeline.


    By the end of this lecture you will be able to design configuration and logging that support reliable, observable data pipelines.

  • Day 10: Logging and Configuration — Build a configurable dataset quality checker4:17

    Day 10: Logging and Configuration — Build a configurable dataset quality checker. Today you complete the first section with a tool that reads a dataset, checks its quality according to a configuration file and writes a clear, logged report.


    The steps I would expect you to follow are these. First, define a configuration file, in a simple format such as JSON or YAML, that lists required columns, allowed ranges, maximum missing rates and duplicate rules. Second, load and validate the configuration, failing with a clear message when it is invalid. Third, set up logging with levels, timestamps and a log file. Fourth, write checks for missing values, duplicates, out-of-range values and unexpected categories, using the streaming ideas from earlier days where files are large. Fifth, produce a summary report with pass or fail status for each check and an overall result. Sixth, return an exit code suitable for automation and write tests for the main checks.


    Use a synthetic dataset with planted problems, so you can confirm that the checker finds each one.


    Keep thresholds in configuration instead of code, so that different datasets can use different rules.


    By the end of this project you will have a reusable quality checker and a solid foundation of Python habits for the data engineering section.

Requirements

  • A computer with internet access, permission to install Python and development tools, and basic computer skills. Python foundations are included; prior AI experience is not required. Some exercises require model downloads. Docker is needed for container exercises, and optional hosted model services may incur charges.

Description

This course contains the use of artificial intelligence.

Build practical AI engineering skills through 100 days of structured, hands-on learning. This course connects essential concepts with daily projects, guiding you from Python foundations to integrated AI applications.

Start with Python, data processing, SQL, APIs, validation, and automated testing. Learn to prepare reliable datasets, build reusable pipelines, and diagnose common failures. Then explore machine learning through regression, classification, clustering, anomaly detection, and model evaluation.

Develop your understanding of neural networks, pretrained models, embeddings, semantic search, and vector indexes. Build LLM applications with effective prompts, structured outputs, conversation history, streaming responses, and validated tool calls.

Create retrieval-augmented generation workflows that ingest documents, retrieve evidence, and produce answers with citations. Practice query rewriting, reranking, abstention, and evaluation to understand where these systems succeed and fail.

Move into agents and controlled workflows using planning, checkpoints, memory, human approvals, and failure recovery. Connect tools and business systems through MCP while exploring authentication, authorization, and integration security.

Finally, bring these skills together through APIs, user interfaces, deployment practices, observability, reliability exercises, and an enterprise AI capstone.

With guided labs, reference code, lessons, and assessments, this course helps aspiring AI engineers and developers build, explain, evaluate, and document projects they can refine for their portfolios.

Who this course is for:

  • Aspiring AI engineers, Python developers, software engineers, and technical learners seeking a structured, project-based introduction to AI application development. Suitable for learners who want to build and evaluate machine learning models, LLM applications, RAG assistants, agents, and enterprise integrations.