Skip to course
Aulafy

Open artificial intelligence course

Learn AI, from zero to production.

One continuous, compact course in English. Move from foundations to data, software, local models, agents, and safe operations without getting lost in catalogues.

Start with the first lessonFree · open · no sign-up
modules
7
lessons
28
Structural review

Module

1. Understand AI

Build a sound mental model before choosing tools.

01 / 28Editorial status: Stable concept

What generative AI is

A model predicts a likely output; it does not query universal truth.

By the end you can
  • Separate model, interface, and tool
  • Recognize suitable tasks and limits

Models generate text, images, audio, or code from learned patterns. A convincing answer can still be wrong.

Use them to propose, transform, summarize, or explore. Keep human decisions where errors can affect people, money, rights, or safety.

Practice

Choose an everyday task and split it into: delegable draft, human check, and final decision.

Evidence

A three-column table describing delegation limits.

Primary sources · 2
02 / 28Editorial status: Periodic review

Chat, search, RAG, automation, and agents

Not every problem needs an agent.

By the end you can
  • Choose the smallest architecture
  • Avoid unnecessary autonomy

Chat answers; search locates; RAG supplies documents; automation follows defined steps; an agent chooses which tool to use.

Start with the least autonomous mechanism that solves the problem. Add memory, tools, or loops only when you can prove the need.

Practice

Classify five real tasks and justify the simplest option for each.

Evidence

One decision per task and one risk you would avoid.

Primary sources · 2
03 / 28Editorial status: Stable concept

Hallucinations and verification

Fluency is not evidence.

By the end you can
  • Spot verifiable claims
  • Check primary sources

Separate facts, inferences, and recommendations. For each important fact, request a source and verify that it truly supports the claim.

When evidence is insufficient, the correct behavior is to abstain or state uncertainty.

Practice

Audit an answer with three claims and mark each as confirmed, contradicted, or unsupported.

Evidence

Links, checked excerpt, and your own conclusion.

Primary sources · 2
04 / 28Editorial status: Frequent review

Model, chat, and context window

The interface holds a conversation; the model processes the context it receives.

By the end you can
  • Distinguish model, conversation, and external memory
  • Recognize what happens when context fills up

A chat organizes messages and may add files, search, or memory. The model only computes a response from the effective input of that call; it does not remember all your conversations by itself.

The context window has a limit. As instructions, documents, and replies accumulate, the application must trim, summarize, or retrieve only what matters. Every strategy can lose information.

Always check which information is sent, what persists outside the model, and which part comes from a connected tool.

Adapted from the Aulafy backup: Models, chat, and LLMs.

Practice

Draw the path of one question from interface to model and label context, memory, and tools.

Evidence

Diagram with four boundaries and one test for detecting context loss.

Primary sources · 2

Module

2. Work and study with AI

Get useful results without giving up judgment, privacy, or learning.

05 / 28Editorial status: Periodic review

Clear briefs, not magic prompts

Goal, context, constraints, and acceptance criteria.

By the end you can
  • Write verifiable briefs
  • Iterate with evidence

A good brief describes the observable result, allowed data, forbidden behavior, and how it will be checked.

Ask for a plan or small sample first when the work is costly or hard to reverse.

Practice

Turn a vague request into a brief with five acceptance criteria.

Evidence

Original request, improved version, and checklist.

Primary sources · 2
06 / 28Editorial status: Stable concept

Study without outsourcing learning

AI can explain and quiz; you must retrieve and apply.

By the end you can
  • Use active recall
  • Avoid submitting work you do not understand

Request graded explanations, examples, and questions. Then close the chat and reconstruct the idea in your own words.

Disclose AI use when your institution requires it, and never fabricate sources, data, or experiments.

Practice

Study one concept for ten minutes and explain it without looking at the answer.

Evidence

First explanation, detected errors, and second explanation.

Primary sources · 2
07 / 28Editorial status: Periodic review

Privacy and sensitive data

Minimize before you paste.

By the end you can
  • Classify information before sending it
  • Anonymize and reduce context

Do not enter secrets, medical records, case files, credentials, or third-party data without a lawful basis, authorization, and proper controls.

Replace real data with fictional examples and share only the fragment needed for the task.

Practice

Sanitize a fictional document before using it with a model.

Evidence

List of removed, replaced, and retained data.

Primary sources · 2
08 / 28Editorial status: Periodic review

Assess learning when AI is used

Assess reasoning and evidence, not the appearance of the text.

By the end you can
  • Design tasks compatible with disclosed AI use
  • Check understanding without relying on detectors

Guessing whether text was generated does not show what a learner understood. Design submissions that preserve decisions, sources, drafts, and changes.

Combine an AI-assisted phase with a short unaided explanation, an oral defense, or application to a new case.

The policy should explain permitted uses, required disclosure, and which evidence must belong to the learner.

Adapted from the Aulafy backup: Misuse: pedagogical prevention, not surveillance.

Practice

Redesign a summary assignment to require process, sources, a new case, and an unaided check.

Evidence

New brief, four-criterion rubric, and sample AI-use disclosure.

Primary sources · 2

Module

3. Data, search, and RAG

Build traceable answers over real documents and data.

09 / 28Editorial status: Stable concept

Prepare data before the model

Types, quality, and provenance first.

By the end you can
  • Profile data
  • Preserve provenance

Check columns, types, units, nulls, duplicates, and dates before asking for conclusions. AI does not silently repair a broken dataset.

Every transformation must be reproducible and reviewable.

Practice

Profile a small CSV and write five quality checks.

Evidence

Profile report, anomalies, and cleaning decisions.

Primary sources · 1
10 / 28Editorial status: Periodic review

Minimal RAG with citations

Retrieve evidence before answering.

By the end you can
  • Understand ingestion, chunks, and retrieval
  • Require useful citations

RAG splits documents, builds representations for retrieval, and supplies relevant passages to the model. It does not turn incorrect documents into truth.

A citation should locate the document and passage supporting the answer.

Practice

Design ten questions: eight answerable and two out of scope.

Evidence

Questions, retrieved passages, answers, and abstentions.

Primary sources · 2
11 / 28Editorial status: Periodic review

Evaluate retrieval and answers

Measure retrieval and generation separately.

By the end you can
  • Create an evaluation set
  • Separate retrieval failure from answer failure

Record whether the correct passage appeared, whether the answer used it, whether citations were correct, and whether it abstained when required.

Do not improve the prompt to hide a retriever that returns the wrong documents.

Practice

Manually evaluate twenty cases and group failures by cause.

Evidence

Metrics table, failed examples, and next hypothesis.

Primary sources · 2
12 / 28Editorial status: Frequent review

From natural language to verifiable SQL

AI proposes the query; the database engine computes the result.

By the end you can
  • Expose and validate SQL before execution
  • Restrict tables, columns, and operations

Give the model the necessary schema, not unnecessary private rows. Request both a query and an explanation of the fields used.

The controller should initially allow only SELECT, validate tables and columns, impose a row limit, and block extensions or file-path access.

A numerical answer is reproducible when it preserves the question, SQL, dataset version, and result returned by the engine.

Adapted from the Aulafy backup: From natural language to visible, verifiable SQL.

Practice

Turn a question about a fictional CSV into DuckDB SQL, review it, and run it with a limit.

Evidence

Question, allowed schema, SQL, result, and one rejected dangerous query.

Primary sources · 2

Module

4. Build software with AI

Move from an idea to maintainable software without surrendering repository control.

13 / 28Editorial status: Periodic review

Specify before generating

Problem, user, data, states, and acceptance.

By the end you can
  • Create a small specification
  • Reduce rework

Define who uses the product, which problem it solves, which data it touches, and which states it must show. Include loading, empty, error, and success.

Build one small end-to-end path first; expand after testing it.

Practice

Write a one-page specification for a useful tool.

Evidence

Main flow, five criteria, and three risks.

Primary sources · 2
14 / 28Editorial status: Frequent review

Coding agents with boundaries

Explore, plan, change, test, and review.

By the end you can
  • Provide context without overexposure
  • Review diffs and tests

Start read-only. Ask the agent to identify files, constraints, and tests before editing.

Review the diff, run checks proportional to risk, and keep a rollback path.

Practice

Delegate a small change on a branch and review every modified file.

Evidence

Plan, diff, test output, and accept-or-fix decision.

Primary sources · 2
15 / 28Editorial status: Frequent review

Publish a production-minded website

Accessibility, security, SEO, and minimum operations.

By the end you can
  • Prepare preview and production
  • Check mobile, keyboard, and errors

A website is not finished when it compiles. Check navigation, contrast, forms, metadata, secrets, domain, and recovery from a bad deployment.

Keep preview and production separate, and document external variables and costs.

Practice

Publish a minimal page to preview, test it, and document rollback.

Evidence

Preview URL, checklist, and rollback procedure.

Primary sources · 2
16 / 28Editorial status: Periodic review

Git, diffs, and review before integration

A comprehensible change is safer than a massive generation.

By the end you can
  • Split changes into reviewable units
  • Use diffs, tests, and commits as evidence

Before editing, check the branch, repository status, and project instructions. Then review only the files related to the goal.

The diff should communicate intent: avoid mixing formatting, refactors, and new behavior unless they must travel together.

A passing test does not replace reading the change. Review side effects, data, permissions, and rollback before integration.

Adapted from the Aulafy backup: Work with Git and review changes.

Practice

Make a small change, inspect the diff, run the relevant test, and write a commit that explains the outcome.

Evidence

Initial status, reviewed diff, test output, and final commit without unrelated files.

Primary sources · 2

Module

5. Local AI and open models

Choose hardware, models, and licenses with realistic expectations.

17 / 28Editorial status: Frequent review

Choose a model with evidence

Task, license, memory, quality, and cost.

By the end you can
  • Read a model card
  • Avoid universal rankings

Compare models on your own cases. Review license, languages, context, memory requirements, and published limits.

Open weights does not necessarily mean open source or unlimited permission for every use.

Practice

Compare two models on ten examples from your task using the same rubric.

Evidence

Model cards, hardware, results, and justified decision.

Primary sources · 2
18 / 28Editorial status: Frequent review

First local service with Ollama

Download, run, measure, and limit exposure.

By the end you can
  • Run a local model
  • Measure memory and latency

Ollama simplifies local execution, but the model still consumes storage, RAM, or VRAM. Do not expose the service to the Internet without authentication and controls.

Record version, exact model, quantization, and hardware so the test is reproducible.

Practice

Run a small model and measure time to first response and memory use.

Evidence

Command, versions, hardware, and measurements.

Primary sources · 2
19 / 28Editorial status: Periodic review

Local, API, or hybrid

Do not turn a preference into an ideology.

By the end you can
  • Compare privacy, quality, and operations
  • Design fallback

Local can reduce data egress and variable cost, but adds hardware and maintenance. An API can offer greater capability, but introduces dependency, external processing, and usage cost.

A hybrid design uses policy to decide which tasks and data may use each route.

Practice

Create a decision matrix for three real tasks.

Evidence

Criteria, weights, decision, and change condition.

Primary sources · 3
20 / 28Editorial status: Frequent review

Hardware, model, and context without marketing

Size hardware for a measured task, not a universal promise.

By the end you can
  • Relate RAM, VRAM, quantization, and context
  • Design a test before buying hardware

Model weights, quantization, context cache, and other processes compete for memory. A model loading does not mean it responds at the latency you need.

NVIDIA, AMD, and Apple Silicon have different acceleration and compatibility paths. Verify the exact tool, operating system, and model in official sources.

Test with your prompts and measure peak memory, time to first token, and sustained speed. Include the worst context you will actually use.

Adapted from the Aulafy backup: Minimum hardware for local AI in 2026.

Practice

Run two sizes or quantizations of the same model and record quality, memory, and latency.

Evidence

Hardware, versions, exact model, context, measurements, and buy-or-reject decision.

Primary sources · 2

Module

6. Automation and agents

Automate with observability, reversibility, and least privilege.

21 / 28Editorial status: Periodic review

From procedure to workflow

Stabilize the process before automating it.

By the end you can
  • Map steps and exceptions
  • Define human review

Document inputs, decisions, outputs, owners, and failures. If people do not agree on the process, an agent will only automate confusion.

Separate proposal, approval, and execution when an action can cause harm.

Practice

Diagram an office workflow and mark every approval point.

Evidence

Diagram, owner, data, and manual fallback.

Primary sources · 2
22 / 28Editorial status: Frequent review

Tools and MCP

A tool expands risk as well as capability.

By the end you can
  • Understand client, server, and permission
  • Apply least privilege

MCP standardizes how an application exposes resources and tools to a model. It does not make an unsafe tool safe.

Limit scope, validate arguments, log calls, and require approval for writes, payments, publishing, or deletion.

Practice

Design the contract and controls for a read-only tool.

Evidence

Input, output, errors, and permissions schema.

Primary sources · 2
23 / 28Editorial status: Frequent review

State, retries, and idempotency

A failure must not duplicate an action.

By the end you can
  • Store recoverable state
  • Design idempotent operations

Agents fail because of networks, limits, processes, or invalid responses. Store each transition and separate attempt, approval, and execution.

Use idempotency keys, retry limits, and a review queue for ambiguous cases.

Practice

Simulate a failure after execution but before confirmation.

Evidence

Trace proving that the action was not duplicated.

Primary sources · 2
24 / 28Editorial status: Frequent review

From chat to agent in five steps

Model call, tool, MCP, RAG, and agent add different capabilities.

By the end you can
  • Identify which component decides each step
  • Stop before adding unnecessary autonomy

A model call generates from supplied context. A tool executes a bounded function. MCP standardizes how that capability is discovered and invoked. RAG retrieves evidence. An agent can choose the next step.

Build all five steps with the same case so the comparison remains valid. Keep code in control of permissions, steps, citations, and stopping.

Do not add a loop when a deterministic workflow solves the problem. Every step must justify its new capability and new risk.

Adapted from the Aulafy backup: From chat to agent: five distinct steps.

Practice

Model a query over a fictional policy and decide at which step it should stop.

Evidence

Five-step table covering decision, evidence, permission, stop condition, and risk.

Primary sources · 2

Module

7. Production, safety, and capstone

Operate useful systems and prove learning with evidence.

25 / 28Editorial status: Frequent review

Evals, logs, and observability

You cannot improve what you cannot reconstruct.

By the end you can
  • Define evaluation cases
  • Log useful traces without leaking data

Evaluate quality before deployment and monitor failures afterward. Retain minimized input, version, tools, latency, cost, and outcome where appropriate.

Logs are sensitive data too: apply access control, retention, and redaction.

Practice

Create ten evals and a trace schema for one feature.

Evidence

Baseline results, threshold, and three explained failures.

Primary sources · 2
26 / 28Editorial status: Periodic review

Safety and minimum operations

Owner, limits, backups, and degraded mode.

By the end you can
  • Prepare failure response
  • Apply defense in depth

Define who responds, which alerts matter, how credentials are revoked, how a backup is restored, and how the service continues without AI.

Test prompt injection, malicious data, tool abuse, and provider dependency.

Practice

Run one outage drill and one malicious-input drill.

Evidence

Runbook, timings, observed failures, and fixes.

Primary sources · 2
27 / 28Editorial status: Periodic review

Capstone: from problem to reliable system

Integrate usefulness, evidence, safety, and operations.

By the end you can
  • Deliver one small complete system
  • Defend decisions with evidence

Choose a real, narrow problem. Document user, data, minimum architecture, risks, tests, cost, deployment, maintenance, and limits.

The project is complete when another person can run it, verify it, and understand when not to use it.

Practice

Build, test, and present the full flow using fictional or authorized data.

Evidence

Repository, demo, evals, threat model, runbook, and retrospective.

Primary sources · 3
28 / 28Editorial status: Periodic review

Red team: trigger failures before production

Find failures in a controlled, reproducible, and ethical way.

By the end you can
  • Design an adversarial test matrix
  • Prioritize mitigations by impact and reproducibility

Red teaming is not about collecting jailbreaks. Start from the threat model and cover privacy, secrets, instructions in documents, tool abuse, consumption, and harms relevant to the use case.

Run tests only in an authorized environment, with fictional data and no impact on third parties. Record input, configuration, output, severity, and reproducibility.

A mitigation should become code, permissions, filtering, evaluation, or human process and prove it does not break legitimate cases.

Adapted from the Aulafy backup: Red teaming and jailbreaks.

Practice

Design twelve tests for your capstone: three for data, three for instructions, three for tools, and three for consumption.

Evidence

Test log, three reproducible failures, mitigations, and regression tests.

Primary sources · 2