Building systems with LLMs: from prompts to context, RAG, agents and verified loops
AI tools have become part of the daily workflow in many professions. Working productively with them, however, takes far more than "asking good questions": systematically designing what information the model receives, which tools it can use and when the process should stop is an engineering skill. This course builds that skill from the ground up, through hands-on practice.
The course starts from good prompting and develops it step by step, in four layers, into an engineering competence:
A 4th-year elective in Computer Engineering. Cloud models are reached with a single key through OpenRouter, local models with Ollama and LM Studio. Each week has about 100 minutes of theory and 65 minutes of lab; the term ends with a team project that delivers a small but working solution (MVP) to a real problem.
Prerequisites Enough: having tried a tool such as ChatGPT or Claude at least once. Ideal: basic Python (variables, functions, reading files) and familiarity with the command line. Helpful but not required: a machine learning or deep learning course, and software engineering practice (writing tests, using Git).
On successful completion, students will be able to:
Assessment: Short assignments (each about 1–3 hours; a single script and a short note), a midterm on weeks 1–6 (concepts, prompt writing and short code reading) and a team final project. Assignment grades are not mixed into the midterm grade.
Using AI: Since this course teaches working with AI tools, using them in assignments and the project is allowed. State which tool you used and for what in a short note with your submission. You must be able to explain every line you submit; this is checked in the midterm and the project presentation. Models can make things up, so verifying the output is your responsibility. API keys and personal data never go into a prompt or a repository.
Final project (MVP): Teams of 2–3; announced after week 8 and presented in weeks 13–14 with a live demo. Required: working code with a README; a short document explaining which prompts are used and why; either a document-based question answering system (RAG) or a tool-using agent; a verifier with at least 5 automated checks (golden set); sources and quotes in answers for RAG, or a token and time log for agents; and a half-page ethics note (risk of fabrication, risk of bias, telling users the answer comes from AI). Deliverables: GitHub repository, documentation, a 3–5 minute demo video, presentation (PDF) and a 5–10 page report.