Courses / AI Engineering: LLMs, RAG and Agentic System Design
Course · Beta · FreeAI Engineering: LLMs, RAG and Agentic System Design
Start with how language models work: tokens, attention, sampling and context limits. Then build on them: prompts, model APIs, vector search, RAG and fine-tuning. Write an agent loop and a small multi-agent team, learn the design patterns behind agentic systems, and apply them in eight case studies, from a conversational recommender to a personal assistant. Three chapters on evals, security and production, and a timed mock interview, finish the course.
0 of 24 chapters done · saved on this device
Try a scene from chapter 1
Watch for the answer returning to design when a requirement changes
Read it as steps
What you will be able to do
- Explain tokens, attention, sampling and context limits, and size a model for a machine
- Call model APIs with streaming, retries, structured output and a cost estimate
- Build a RAG pipeline with hybrid search, reranking, citations and retrieval metrics
- Choose between prompting, RAG and fine-tuning, and explain LoRA in numbers
- Write an agent loop with tools, a step budget, guards and human approval
- Design multi-agent systems for recommendation, web tasks, diagnosis and assistants
- Evaluate LLM systems with test sets, validated judges and confidence intervals
- Contain prompt injection and run an agent within cost and latency budgets
Who it is for
Software engineers with about 2 to 10 years of experience who build backends or products and now face AI engineering, GenAI or agent design rounds, and engineers already shipping LLM features who want the vocabulary and design method those rounds expect. Basic Python is enough to start.
You will need
Python 3.12 and uv, and comfort with functions, classes, JSON and HTTP. Examples call an OpenAI-compatible endpoint: a local Ollama with an open 12B model on a machine with about 16 GB of memory, or any hosted provider by setting three environment variables. No GPU or paid API is needed.
Pick a path
Curriculum
11 modules · 24 chapters · 13 hModule 1The interview0 of 1 done
How AI engineering rounds run and how to prepare for them.
Module 2Generative AI foundations0 of 3 done
How language models work, how to prompt them and how to call them from code.
- Not started: 02Generative AI and how LLMs work38 min · 3 scenesTokens, next-token prediction, attention, chat tuning, context limits and memory sizing, all run locally.
- Not started: 03Prompt engineering31 min · 2 scenesInstructions, roles, few-shot examples, reasoning prompts, self-consistency and prompts kept as code.
- Not started: 04Working with model APIs30 min · 2 scenesChat requests, parameters, streaming, errors and retries, structured output, usage and cost.
Module 3Vector search and LLM applications0 of 3 done
Embeddings and vector stores, composing LLM calls, and grounding answers with retrieval.
- Not started: 05Embeddings and vector databases33 min · 3 scenesEmbeddings, similarity, exact and approximate indexes, metadata filters and choosing a vector store.
- Not started: 06Building LLM applications: chains, tools and memory25 min · 2 scenesPrompt templates, chained calls, tool calling, conversation memory and routing, then a framework.
- Not started: 07Retrieval-augmented generation37 min · 3 scenesIngesting, chunking, hybrid search, reranking, cited answers and measuring retrieval.
Module 4Fine-tuning and first agents0 of 2 done
Changing a model's weights, and letting a model act through tools.
- Not started: 08Fine-tuning language models29 min · 2 scenesWhen to fine-tune, preparing data, LoRA and QLoRA, preference tuning, and evaluating adapters.
- Not started: 09AI agents and multi-agent systems33 min · 3 scenesAn agent loop in plain Python, tools and stop rules, role-based teams, a manager and MCP tools.
Module 5Agent design fundamentals0 of 1 done
The components, memory, orchestration patterns and guardrails every agentic design uses.
Module 6Case studies: recommenders and reward design0 of 3 done
A multi-agent conversational recommender, and agents that write reward functions.
- Not started: 11Case study: a multi-agent conversational recommender29 min · 3 scenesResponder agents, a planner that picks the next act, feedback-aware reflection and simulated users.
- Not started: 12Case study: an agent that writes reward functions28 min · 3 scenesReward design as search: candidates from a model, training runs as tests, and reflection on results.
- Not started: 13Building a reward-design agent29 min · 2 scenesA small environment, a learner, a safe reward language and the propose-train-reflect loop, run locally.
Module 7Case studies: applying the design principles0 of 2 done
Two open design exercises: a parking system and an agent that builds pipelines.
- Not started: 14Case study: a smart parking agent system32 min · 3 scenesSensing, pricing and reservation agents, payments behind approval, and failure handling.
- Not started: 15Case study: an agent that builds LLM pipelines35 min · 3 scenesGenerating candidate pipelines from a task, testing them on examples and keeping the best one.
Module 8Case studies: web and multimodal agents0 of 3 done
Agents that use websites, see screenshots and compose images object by object.
- Not started: 16Case study: designing a web agent37 min · 3 scenesObservations, actions, planning, safety limits and task-success checks for an agent that uses websites.
- Not started: 17Building a multimodal web agent38 min · 2 scenesScreenshots, numbered marks over elements and a vision model choosing actions on a local site.
- Not started: 18Case study: a multimodal agent for multi-object image generation35 min · 3 scenesPlanning objects, generating one at a time and checking each step with a vision model.
Module 9Case studies: diagnosis teams and personal assistants0 of 2 done
A multi-agent consultation simulator and an assistant that lives in your chat apps.
- Not started: 19Case study: a multi-agent medical diagnosis simulator32 min · 3 scenesPatient, doctor and examiner roles, multi-turn evaluation and a dispute step between doctors.
- Not started: 20Case study: a personal AI assistant45 min · 3 scenesChannels, a gateway, memory, scheduled tasks, pairing and the guards that keep an assistant safe.
Module 10Evals, security and production0 of 3 done
Knowing a system works, keeping it safe and running it within budget.
- Not started: 21Evaluating LLM and agent systems33 min · 3 scenesError analysis, code checks, validated judges, pass-rate intervals, agent scoring and eval gates in CI.
- Not started: 22Securing LLM applications and agents29 min · 2 scenesThe OWASP LLM risks, prompt injection, containment, permissions, output handling and redaction, with tests.
- Not started: 23Running LLM systems in production39 min · 3 scenesLatency, budgets, caching, gateways, tracing, self-hosting and rollouts gated by recorded evals.
Module 11Mock interview0 of 1 done
Timed prompts with model answers and a rubric.
How this course is made
Written by the aiiolar team. Every chapter is fact-checked by a second reviewer, checked against a shared set of numbers so chapters agree, and checked for originality before it goes up. Found a mistake? Tell us and we fix it within a week.
Questions
Do I need a GPU or a paid API key?
No. Every example runs against Ollama on your own machine with an open 12B model and a small embedding model. The code uses the OpenAI-compatible Chat Completions and Embeddings endpoints, so it also runs against a hosted provider once you set the base URL, key and model name.
Is the course tied to one framework?
No. Each pattern is built first in plain Python so you can see the mechanism. Where the industry uses a framework for that pattern, the chapter names one and shows how its parts map to the code you wrote.
Is every output on the page real?
Yes. Every code block was run and its output copied from that run. Model output is not reproducible, so pages that show it say it comes from one run, and tests check structure, fields and limits rather than exact wording.
Where do the case studies come from?
Most follow published research systems, such as a multi-agent recommender, a reward-writing agent, web agents and a medical consultation simulator, each cited in its chapter. The designs, code and runs are written for this course and scaled to run on one machine.
How much maths do I need?
School algebra and a little probability. Vectors, dot products, softmax and low-rank matrices are explained when they first appear, each with a few lines of NumPy you can run.
How much time should I plan?
About 13 hours of reading, plus the time you spend running and changing the code. Most engineers preparing for a round do one chapter a day for three to four weeks, then repeat the mock.
Does it cover classic system design?
Only where an LLM system needs it, such as caching, rate limits and queues around a model. The System Design course covers general design rounds.