Coming soon
AI with Python
Move past toy prompts to build production-ready AI applications: structured outputs, semantic search, RAG, and autonomous tool-using agents.
- 12 modules
- 12 lessons
- Shallows to Landfall
- Free to learn
This course is being written. Its lessons will be free here, like every lesson on Mawj. The outline below is what it will teach; follow the Telegram channel to hear the day it opens.
What you'll be able to do
- Call leading LLM APIs programmatically and reliably
- Extract validated data using Pydantic structured outputs
- Implement semantic search and retrieval-augmented generation (RAG)
- Build autonomous tool-using AI agents that solve complex workflows
The full syllabus
12 modules, from the Shallows down. Open any module to see its lessons.
The Shallows
Modules 1–3, 3 lessons
Understanding LLMs, calling APIs from Python, and prompt engineering.
- , coming soon
1How LLMs workIntuition for tokens, context windows, and probabilistic text generation.Coming soon
- , coming soon
2Calling LLM APIsConnect to model APIs from Python, manage keys, and stream responses.Coming soon
- , coming soon
3Prompt engineeringInstructions, few-shot examples, system messages, and role definitions.Coming soon
Currents
Modules 4–7, 4 lessons
Structured outputs, data manipulation, embeddings, and RAG.
- , coming soon
4Structured outputs with PydanticEnforce strict JSON schemas and parse LLM outputs into typed objects.Coming soon
- , coming soon
5Data essentials: NumPy & pandasJust enough data handling for vectors, matrices, and tabular datasets.Coming soon
- , coming soon
6Embeddings and semantic searchConvert text into high-dimensional vectors and perform cosine similarity search.Coming soon
- , coming soon
7Retrieval-augmented generation (RAG)Chunk documents, retrieve relevant contexts, and synthesize grounded answers.Coming soon
Deep Water
Modules 8–10, 3 lessons
Tool calling, autonomous agents, evaluation, and production safety.
- , coming soon
8Tool use and agentsLet an LLM call Python functions, search databases, and take actions.Coming soon
- , coming soon
9Evaluating AI featuresMeasure accuracy, hallucinations, and regression across prompt revisions.Coming soon
- , coming soon
10Cost, latency, and safetyRate limiting, caching, cost monitoring, and guardrails for production.Coming soon
Landfall
Modules 11–12, 2 lessons
Ship AI behind FastAPI and complete the document assistant capstone.
- , coming soon
11Shipping AI behind FastAPIExpose streaming AI features and RAG pipelines via fast web endpoints.Coming soon
- , coming soon
12Capstone: Document assistantBuild an end-to-end assistant that answers questions over custom PDF and markdown files.Coming soon
Who it's for
- Python developers wanting to integrate modern AI into real products
- Software engineers who want to build with RAG, embeddings, and agents
- Students aiming for practical AI engineering skills beyond theory
What you need
- Comfortable with Python functions, dictionaries, and virtual environments
- An internet connection and an API key for experimentation