The Python Tutorial
docs.python.org
official docs
The official walk-through of the language, from data structures to modules and classes.
→Free directory · Learning· 108 picks
16 steps from writing software to shipping AI systems, in order. Each step says what to learn and what to build, then links the free official docs, courses, repos and papers to learn it. 108 links, all checked on 24 Nov 2026.
108
hand-checked picks
The roadmap
7 phases. Do them in order, finish each step by building its project, then tap a step to see its free resources.
Ship normal software before you add a model: Python, HTTP APIs, a database, Git and containers.
Build: A plain REST API, no AI, deployed
Build a mental model: tokens, embeddings, attention, training, inference, sampling, reasoning models and how to pick one.
Turn single calls into software: messages, streaming, structured output, tool calls, retries, async and cost tracking.
Build: A streaming assistant that calls tools
Write instructions that make outputs predictable: examples, step-by-step reasoning, system prompts, output control, versioning.
Build: Take one real prompt and measurably improve it
Ground answers in your data: parse documents, chunk, embed, search with vectors and BM25, rerank, cite and say no.
Build: A hybrid search engine, then a deployed RAG app
Let the model choose the next step: tool use, ReAct, planning, MCP, memory, multi-agent setups and sandboxed code.
Build: A production-style agent
Treat the context window as a budget: what goes in, what gets compressed, what moves to memory, what gets cached.
Build: A long-running agent that manages its own context
Measure before you ship: test sets, LLM-as-judge, offline vs online evals, regression suites, RAG and agent evals.
Defend against prompt injection, jailbreaks, data leaks and unsafe tool use, then red-team your own app.
Build: Red-team and harden an agentic RAG app
Design the whole system and defend each choice on quality, latency, cost and reliability: routing, caching, fallbacks, feedback.
Build: A written design doc for a real AI product
Version prompts, gate releases on evals, containerize, deploy with CI/CD and watch traces once real users arrive.
Build: Take your RAG app and agent to production
Ship on what teams actually buy: a cloud AI platform, an open-weight host or a router, and know what you give up.
Build: Deploy one app on a managed platform
Go beyond text: vision and document understanding, speech in and out, realtime voice agents and cross-modal search.
Build: Ship one multimodal build
Fine-tune only when prompting and retrieval run out: data curation, SFT, LoRA/QLoRA, DPO, distillation, and prove it with evals.
Build: A LoRA that beats a prompted baseline
Proof, not certificates: combine earlier steps into 3–5 public builds you can demo and defend.
Build: 3–5 public portfolio projects
Turn the work into offers: scenario questions, system-design rounds, debugging cases and defending your projects.
Build: A full mock interview loop
Showing 108 of 108
docs.python.org
official docs
The official walk-through of the language, from data structures to modules and classes.
fastapi.tiangolo.com
official docs
Step-by-step guide to typed Python APIs, the default stack for serving LLM apps.
developer.mozilla.org
official docs
Mozilla's explainer of requests, responses, headers and status codes.
postgresql.org
official docs
The Postgres manual's own intro to tables, queries and joins. Same database you will use for pgvector later.
git-scm.com
free book
The full Git book, free to read online.
docs.docker.com
official docs
Docker's own path from first container to Compose.
missing.csail.mit.edu
free course
MIT's course on the shell, editors, Git, debugging and the tools classes skip.
youtube.com
video · Andrej Karpathy
Karpathy's long general-audience walk-through of how ChatGPT-style models are trained and why they behave the way they do.
3blue1brown.com
video series
Visual lessons on neural nets, transformers and attention.
jalammar.github.io
article · Jay Alammar
The classic picture-by-picture explanation of the transformer.
huggingface.co
free course
Hugging Face's course on transformers, tokenizers, datasets and fine-tuning.
github.com
GitHub roadmap
Maxime Labonne's roadmap and notebooks: LLM fundamentals, the scientist track and the engineer track.
tiktokenizer.vercel.app
tool
Paste text and see exactly how it splits into tokens.
arena.ai
leaderboard
Rankings built from people voting on real head-to-head model answers.
artificialanalysis.ai
benchmarks
Compares models on quality, price, speed and latency.
developers.openai.com
official docs
First request to the OpenAI API, then text, images, tools and streaming.
platform.claude.com
official docs
Anthropic's first-call guide for the Claude API.
aistudio.google.com
official docs
Google's docs for the Gemini API, with a free tier.
developers.openai.com
official docs
Make the model return JSON that matches your schema.
ai.pydantic.dev
framework
Type-safe Python agent framework from the Pydantic team.
python.useinstructor.com
library
Structured outputs from any LLM, validated with Pydantic.
docs.langchain.com
framework
Docs for LangChain and LangGraph, the most common orchestration stack.
deeplearning.ai
free courses
1–2 hour courses on building with LLMs, many made with the model labs.
platform.claude.com
official docs
Anthropic's guide to clear prompts, examples, XML tags and chaining.
developers.openai.com
official docs
OpenAI's guide to messages, roles and few-shot prompting.
aistudio.google.com
official docs
Google's prompt design guide for Gemini.
github.com
GitHub · Anthropic
Anthropic's 9-chapter hands-on notebook course with exercises.
promptingguide.ai
guide
Open guide to prompting techniques, each linked to its paper.
github.com
GitHub
Turns PDFs, DOCX, HTML and slides into clean Markdown or JSON for retrieval.
sbert.net
library
The standard library for embedding and reranking models.
huggingface.co
leaderboard
Benchmark for choosing an embedding model by task and language.
github.com
GitHub
Vector search inside Postgres, with HNSW and IVFFlat indexes.
qdrant.tech
official docs
Open-source vector database with filtering and hybrid search.
anthropic.com
article · Anthropic
Anthropic's write-up on contextual embeddings + BM25 + reranking, with measured drops in failed retrievals.
docs.llamaindex.ai
framework
Framework for indexing documents and building RAG pipelines.
pinecone.io
guides
Free articles on embeddings, chunking, hybrid search and reranking.
arxiv.org
paper
The paper that named retrieval-augmented generation.
anthropic.com
article · Anthropic
When to use workflows vs agents, and the patterns that hold up in production.
modelcontextprotocol.io
official docs
The open standard for connecting agents to tools and data.
docs.langchain.com
framework
Graph-based framework for stateful, long-running agents.
openai.github.io
framework
Lightweight Python SDK for agents, handoffs and guardrails.
huggingface.co
free course
Free course from agent basics to frameworks, with a certificate.
arxiv.org
paper
Reasoning + acting interleaved: the loop most agents still run.
github.com
GitHub
Open-source cloud sandboxes for running agent-written code safely.
anthropic.com
article · Anthropic
Anthropic on curating context for agents: compaction, note-taking and sub-agents.
blog.langchain.com
article · LangChain
Write, select, compress and isolate: the four strategies, with examples.
manus.im
article · Manus
Production lessons: KV-cache hit rate, file system as memory, keeping errors in context.
arxiv.org
paper
Shows models use information at the start and end of long contexts better than the middle.
platform.claude.com
official docs
Cache long, repeated context to cut cost and latency.
hamel.dev
article · Hamel Husain
The practical case and method for evals, from unit tests to human review.
github.com
GitHub
CLI for testing prompts, agents and RAG, plus red teaming.
github.com
GitHub
Pytest-style evaluation framework for LLM apps.
docs.ragas.io
official docs
Metrics and test-set generation for RAG and agent evaluation.
inspect.aisi.org.uk
framework · UK AISI
The UK AI Security Institute's open-source framework for model evals.
github.com
GitHub
OpenAI's framework and open registry of benchmarks.
github.com
GitHub
EleutherAI's standard harness for running academic benchmarks.
genai.owasp.org
standard
The 10 most critical risks for LLM apps, with mitigations.
atlas.mitre.org
knowledge base
Attack tactics and techniques against AI systems, built from real cases.
standard
The US framework for mapping, measuring and managing AI risk.
simonwillison.net
blog
The running record of prompt injection attacks and why they are hard to fix.
github.com
GitHub · NVIDIA
LLM vulnerability scanner: probes for injection, jailbreaks and leaks.
github.com
GitHub · Microsoft
Python toolkit for red-teaming generative AI systems.
github.com
GitHub · NVIDIA
Add programmable input, output and dialog rails to LLM apps.
github.com
GitHub
Detect and anonymize PII in text and images before it reaches a model.
huyenchip.com
article · Chip Huyen
The common components of a GenAI platform, added one layer at a time.
eugeneyan.com
article · Eugene Yan
Seven patterns: evals, RAG, fine-tuning, caching, guardrails, defensive UX, feedback.
applied-llms.org
guide
Tactical, operational and strategic lessons from six practitioners.
github.com
GitHub · ByteByteGo
Visual explanations of general system design, the base AI design builds on.
github.com
GitHub
One API and proxy for 100+ model providers, with fallbacks and spend tracking.
docs.vllm.ai
official docs
High-throughput open-source inference engine for serving models.
github.com
GitHub
Open-source LLM tracing, prompt management and evals. Self-hostable.
github.com
GitHub
Open-source tracing and evaluation for LLM apps, built on OpenTelemetry.
mlflow.org
official docs
Tracking, tracing, prompt registry and evaluation for LLM apps.
opentelemetry.io
standard
The standard attribute names for tracing model and agent calls.
docs.github.com
official docs
CI/CD to run tests and evals on every change.
madewithml.com
free course
Goku Mohandas's free course on putting ML into production.
docs.aws.amazon.com
official docs
AWS's managed service for foundation models, agents and knowledge bases.
docs.cloud.google.com
official docs
Google Cloud's managed platform for Gemini and partner models.
learn.microsoft.com
official docs
Azure's platform for models, agents and evaluation.
openrouter.ai
official docs
One API across hundreds of models and providers.
huggingface.co
official docs
Call open-weight models through many hosts with one client.
docs.together.ai
official docs
Serverless and dedicated hosting for open-weight models.
aistudio.google.com
official docs
Captioning, visual Q&A, object detection and segmentation with Gemini.
developers.openai.com
official docs
Low-latency speech-to-speech for voice agents.
github.com
GitHub · OpenAI
Open-source speech recognition and translation model.
github.com
GitHub
Framework for realtime voice and video AI agents.
github.com
GitHub
Open-source Python framework for voice and multimodal agents.
github.com
GitHub · OpenAI
Joint image–text embeddings, the base of most cross-modal search.
github.com
GitHub
Retrieve document pages straight from their images, no OCR step.
github.com
GitHub
Faster, lower-memory fine-tuning with free Colab notebooks.
huggingface.co
official docs · Hugging Face
SFT, DPO, GRPO and reward modeling in one library.
huggingface.co
official docs · Hugging Face
LoRA and other parameter-efficient methods.
github.com
GitHub
Config-driven fine-tuning for many model families.
github.com
GitHub · Hugging Face
Hands-on course on aligning small models, runs on modest hardware.
arxiv.org
paper
Low-rank adaptation: train a small fraction of the weights.
arxiv.org
paper
LoRA on a 4-bit quantized model, fine-tuning on a single GPU.
arxiv.org
paper
Preference tuning without a separate reward model.
cookbook.openai.com
examples
Runnable examples for RAG, agents, evals and more.
github.com
GitHub · Anthropic
Notebooks and recipes for building with Claude.
github.com
GitHub · Google
Examples and guides for the Gemini API.
karpathy.ai
free course · Andrej Karpathy
Build neural nets up to a GPT from scratch, in code.
github.com
GitHub
Small, readable repo for training and fine-tuning GPT models.
cs336.stanford.edu
free course
Language Modeling from Scratch: build every piece of an LLM yourself.
fullstackdeeplearning.com
free course
Full Stack Deep Learning's free lectures on shipping LLM apps.
huggingface.co
hosting
Host your demos for free so anyone can try them.
huyenchip.com
free book · Chip Huyen
How ML interviews work, plus 200+ knowledge questions.
github.com
GitHub · Chip Huyen
Free companion repo to the AI Engineering book: summaries, case studies, prompt examples.
techinterviewhandbook.org
free guide
Free guide to coding interviews, résumés, negotiation and behavioral rounds.
Everything linked here is free to read or use. Each link goes to the official docs, the author's own site or the original repo or paper.
The step order follows the free AI Engineering Roadmap by CampusX (16 levels, 286 sessions), which went viral on X. The resources and the wording on this page are our own.
An AI engineer builds software products on top of models like GPT, Claude and Gemini: retrieval (RAG), agents, evals, guardrails and the production systems around them. Most of the job is software engineering, not training models from scratch.
Not to start. Steps 01–12 need solid Python and software skills. The math matters more at step 14 (fine-tuning) and for research roles.
It depends on your starting point and hours per week. The CampusX roadmap this order follows counts 286 sessions across 16 levels, and also offers a 100-day accelerated track covering the core (LLMs, APIs, prompting, RAG, agents, shipping).
Yes. Every link is free docs, a free course, an open-source repo, a free book or an open paper. Some cloud platforms in step 12 charge for usage beyond their free tiers.
RAG (step 05), agents (step 06), evals (step 08) and system design (step 10) come up most in AI engineer interviews and job descriptions. Ship a public project for each.
One new goldmine a day
Free. One email when a new list drops. No spam, unsubscribe in one click.
Or follow @eng_khairallah1 on X.
AI models
Uncensored and abliterated open models on Hugging Face and Ollama, plus the free apps that run them offline. Links to the official pages only.
AI models
21 open models you can run fully offline with one Ollama command each. Sizes from ollama.com, checked 22 Nov 2026.
Dev tools
15 AI coding agents with public source + 4 free local models to power them. Real install commands from each official repo.