Building AI Applications: Two-Week Online Course
A two-week online course on the architecture of AI applications, with six 30-minute recorded lectures and a 90-minute live session each week. Week 1 covers knowledge (retrieval and structured data), and week 2 covers action (tools, MCP and orchestration). See Course Formats and Grading for the format, the grading scale and the course policies, and Building AI Applications for an overview of the subject.
At a Glance
Students |
Product managers, analysts, designers, consultants and developers. |
Deployment |
A shared Smarter instance run by the instructor, with a Vectorstore backend, a sample database behind a Connection, and one or two MCP clients set up in advance. |
Workload |
3 hours of instruction and 4 to 6 hours of assignments each week. |
Cost |
Expect less than $6 USD of model charges per student, capped by a per-student Budget. |
Learning Objectives
By the end of the course, students can:
Describe the parts of an AI application and how they fit together.
Build retrieval-augmented assistants that answer from documents, with citations.
Let a model query structured data safely, and check its answers.
Connect an assistant to external systems with plugins and MCP servers.
Choose between a single assistant and an orchestrated workflow on evidence.
Technical Prerequisites
Required: a computer with a current web browser and a reliable connection for video calls.
Required: reading and editing YAML (Learn YAML in Y minutes) and reading JSON.
Required: a general idea of what a database table and a web API are.
Helpful: experience writing system prompts, from the Prompt Engineering course or elsewhere, a GitHub account, and basic SQL for reading generated queries.
Not needed: programming.
Schedule
Week |
Item |
Content |
|---|---|---|
1 |
Lecture 1 (30 min) |
Anatomy of an AI application. Model, instructions, knowledge, tools, guardrails and
orchestration as Smarter resources. A tour from |
1 |
Lecture 2 (30 min) |
Retrieval. Embeddings, similarity search, chunking and citations, without mathematics. Building a Vectorstore. |
1 |
Lecture 3 (30 min) |
Structured data. Text-to-SQL with a SQL Plugin,
read-only connections, and checking generated queries. The |
1 |
Live session 1 (90 min) |
Live build of a teaching assistant over a syllabus. In groups, students find questions that break it, and diagnose why. Start Assignment 1. |
2 |
Lecture 4 (30 min) |
Tools. Function calling, API and Websearch plugins, and how tool descriptions steer the model. |
2 |
Lecture 5 (30 min) |
MCP. The Model Context Protocol, its servers and tools, and MCP clients in Smarter. |
2 |
Lecture 6 (30 min) |
Orchestration and production. Workflows versus agents, the Orchestrator, guardrails, budgets and evaluation. |
2 |
Live session 2 (90 min) |
Capstone presentations (about 5 minutes each, with 2 minutes of questions), then a discussion: which architectures appeared, and why. |
Assignment 1 is due at the end of week 1, Assignment 2 in the middle of week 2, and Assignment 3 and the capstone at the start of Live session 2.
Graded Assignments
Assignment 1: Retrieval Assistant with Evaluation
Students build an assistant over at least five documents of their choice, test it with fifteen questions (twelve answerable, three not), and adjust the system prompt once to improve the results.
Turn in: the manifests, the documents or links, and before-and-after results with citations.
Criterion |
Pts |
Exemplary |
Developing |
|---|---|---|---|
Retrieval and citations |
6 |
Answers draw on, and name, the right documents. |
Answers ignore retrieval, or invent sources. |
Unanswerable questions |
4 |
The assistant admits when it does not know. |
The assistant invents answers. |
Improvement |
6 |
One targeted change, with its measured effect. |
Changes without before-and-after results. |
Reporting |
4 |
Honest and complete. |
Incomplete or inflated. |
Assignment 2: Data Assistant
Students build an assistant over the sample database, ask eight business questions, and check each answer and generated query against the true figure.
Turn in: the manifests, the questions, answers, generated SQL, and a short failure analysis.
Criterion |
Pts |
Exemplary |
Developing |
|---|---|---|---|
Configuration |
4 |
Read-only connection; credentials kept in a Secret. |
Works, but with unnecessary access. |
Accuracy check |
6 |
Every answer checked against the truth. |
Answers accepted without checking. |
Failure analysis |
6 |
Wrong answers explained from the SQL, with a fix tried. |
Wrong answers noted, not explained. |
Risk note |
4 |
Names what could go wrong if real managers relied on it, and a mitigation. |
No discussion of risk. |
Assignment 3: A Tool-Using Assistant
Students give an assistant two tools: one plugin (API or Websearch) and one MCP client provided by the instructor. They show conversations in which the model uses each tool, one in which it correctly uses neither, and explain what decided the model’s choice.
Turn in: the manifests, three Console screenshots, and a one-page explanation.
Criterion |
Pts |
Exemplary |
Developing |
|---|---|---|---|
Both tools work |
6 |
Each tool is called and its result used. |
One tool never called. |
Restraint |
4 |
A conversation where no tool is needed and none is called. |
Tools called for every message. |
Explanation |
6 |
Links the model’s choices to the tool descriptions and system prompt. |
Describes what happened without explaining why. |
Safety |
4 |
Notes what each tool could do if misused, and how it is limited. |
No discussion of safety. |
Capstone Projects
Students choose one, and present it in Live session 2.
Capstone A: A Knowledge and Action Assistant
Learning objective. Combine retrieval, structured data or tools into one coherent assistant for a defined user, and show that it is accurate and safe.
Students design an assistant for a real or realistic user, such as a new employee onboarding assistant, a club treasurer’s helper, or a course advisor. It must use retrieval and at least one of a SQL Plugin, an API Plugin or an MCP client, and at least one guardrail.
What students turn in:
A Git repository with every manifest, and a
README.md.An architecture diagram and a two-page design note that justifies each component.
A test set of twenty-five questions with results.
A five-minute presentation with a live demonstration.
How it is graded (100 points):
Criterion |
Pts |
Exemplary |
Developing |
|---|---|---|---|
Architecture |
25 |
Each component justified by the user’s needs; the diagram matches the build. |
Components added because they were available. |
Accuracy |
25 |
Grounded, cited and correct answers; honest about gaps. |
Correct on easy questions only. |
Safety |
15 |
Guardrails and access limits match the risks. |
A guardrail unrelated to the risks. |
Testing |
20 |
Twenty-five varied questions, failures reported and explained. |
Few or easy questions. |
Presentation |
15 |
Clear, on time, shows design decisions. |
Shows chat only. |
Capstone B: Architecture Comparison Report
Learning objective. Compare alternative architectures for the same job, and recommend one on evidence of cost, latency and quality.
Students choose a job, such as answering questions about a product catalog. They build it three ways: a single LLMClient with documents in a Static Plugin, a retrieval-based LLMClient with a Vectorstore, and an Orchestrator of specialized LLMClients. They evaluate all three on fifteen inputs.
What students turn in:
A Git repository with all three designs.
The inputs, rubric and a table of scores, tokens, cost and response time.
A three-page report with charts and a recommendation.
A five-minute presentation.
How it is graded (100 points):
Criterion |
Pts |
Exemplary |
Developing |
|---|---|---|---|
Three working designs |
25 |
All three complete every input. |
One or more incomplete. |
Fair evaluation |
20 |
Same inputs, model and rubric for all three. |
Inconsistent conditions. |
Measurements |
20 |
From Smarter’s records; repeated where results vary. |
Estimated or partial. |
Analysis and recommendation |
25 |
Explains the trade-offs and when each design is right. |
A winner without reasons. |
Presentation |
10 |
Clear and on time. |
Overruns or unclear. |
Recommended Texts
Required: Chip Huyen, AI Engineering: Building Applications with Foundation Models (O’Reilly, 2025). Week 1: chapters 1 and 6 (retrieval). Week 2: chapter 6 (agents) and chapter 10.
Required: Anthropic, Building effective agents (2024), before Lecture 6.
Optional: Jay Alammar and Maarten Grootendorst, Hands-On Large Language Models (O’Reilly, 2024), chapter 8 on semantic search and retrieval, for students who want the mechanics.
Smarter documentation: Smarter Vectorstore, Smarter MCP Client, Smarter Connection, SQL Plugin and Smarter Orchestrator.
Further Study
Essays: Anthropic’s Building effective agents, the clearest short guide to when a workflow, a single agent or several agents is the right design. Eugene Yan’s writing on patterns for building LLM systems and products.
Standards: the Model Context Protocol specification and its directory of reference servers.
Courses: the free short courses at DeepLearning.AI on retrieval, agents, MCP and evaluation, and the Hugging Face courses on agents and open models.
YouTube: Andrej Karpathy’s channel, especially Intro to Large Language Models, and the AI Engineer World’s Fair talks on the AI Engineer channel.
Podcasts: Latent Space, the podcast of the AI engineering community, and Practical AI.
Writing: Simon Willison’s weblog, on tools, agents and prompt injection as they evolve.