Course Materials
# Module 1
Getting Started: Google Colab and GitHub
Learning objectives: Open, run, and save a notebook in Google Colab; navigate a GitHub repository and open a notebook from it; describe the course workflow for accessing, editing, and retaining copies of code.
Before class
- Sign in to Google ColabOptional
During class
- Practice opening, running, copying, and saving a course notebook.Required
# Module 2
Tokens and Embeddings
Learning objectives: Tokenize short texts and interpret token IDs; use sentence embeddings to compare semantic similarity; distinguish representation models from text-generation models; explain how next-token probabilities produce generated text.
Before class
- Read Chapter 1, “An Introduction to Large Language Models,” and Chapter 2, “Tokens and Embeddings.”Optional
During class
# Module 3
Text Classification I: Encoder Models
Learning objectives: Distinguish binary, multiclass, and multilabel classification problems; apply task-specific and embedding-based classifiers; evaluate predictions using suitable metrics and structured error analysis.
Before class
- Read Chapter 3, “Looking Inside Large Language Models,” and the Chapter 4 sections on task-specific and embedding-based text classification.Optional
During class
After class
# Module 4
Text Classification II: Zero-Shot and Few-Shot Models
Learning objectives: Compare NLI-based zero-shot classification with prompted generative classification; use label descriptions, few-shot examples, and constrained outputs; test how label wording and examples affect classification performance.
Before class
- Read Chapter 4, “Text Classification,” from “What If We Do Not Have Labeled Data?” through “Text Classification with Generative Models,” including the Flan-T5 and ChatGPT classification examples.Optional
During class
# Module 5
Text Classification III: Evaluation and Error Analysis
Learning objectives: Compare classifiers on the same held-out examples using aggregate and per-class results; categorize errors and disagreements with reference to the original text; recommend an approach while distinguishing development decisions from final evaluation.
Before class
- Chapter 4, “Text Classification”: metrics in “Using a Task-Specific Model”Optional
During class
After class
# Module 6
Text Clustering and Topic Modeling
Learning objectives: Create document embeddings for an unlabeled text collection; cluster and visualize semantically related documents; interpret topic representations while identifying instability, labeling choices, and other limitations.
Before class
- Chapter 5, “Text Clustering and Topic Modeling”: through the BERTopic discussion before “Adding a Special Lego Block”Optional
During class
# Module 7
RAG I: Dense Retrieval and Grounded Generation
Learning objectives: Trace how a question moves through chunking, embeddings, retrieval, and answer generation; use a scaffolded dense-retrieval workflow; construct a grounded-answer prompt and check whether cited passages support the answer.
Before class
- Chapter 8: semantic search overview, opening dense-retrieval example, and “From Search to RAG”Optional
During class
After class
# Module 8
RAG II: Evaluation and Improvement
Learning objectives: Distinguish retrieval failures from generation failures; assess evidence relevance, answer correctness, groundedness, and unanswerable questions; compare one retrieval or prompt change using fixed examples and report its tradeoffs.
Before class
- Chapter 8, “Retrieval Evaluation Metrics”: queries and relevance judgments; calculations optionalOptional
# Module 9
Prompt and Context Engineering
Learning objectives: Distinguish prompt engineering from context engineering; select and organize instructions, examples, and source evidence; revise a prompt and assess whether the answer becomes more informative and supported by its sources.
Before class
- Chapter 6, “Prompt Engineering”: “The Basic Ingredients of a Prompt” and “Instruction-Based Prompting”Optional
During class
- Prompt-engineering exercise: revise instructions while keeping the source packet fixed; compare useful details and check source support.Required
# Module 10
Evaluating LLM Answers
Learning objectives: Distinguish faithfulness to sources, completeness, and relevance; compare human evaluation, automatic metrics, and LLM-as-a-judge; apply a rubric to Module 9 answers and check the judge’s decisions against source evidence.
Before class
During class
- Evaluate the fixed Module 9 answers with an LLM judge, then audit its ratings using the sources and a shared rubric.Required
# Module 11
AI Agents and Model Adaptation
Learning objectives: Trace an agent’s tool-use loop and stopping condition; distinguish prompt, context, and workflow changes from updates to model weights; explain parameter-efficient fine-tuning; use evaluation evidence to choose a feasible project improvement.
Before class
- Bring one project result, one failure example, and one question for the project clinic.Required
During class
After class
- Chapter 7: introductions to chains and agents through ReAct; skip LangChain. Or Chapter 12: SFT, full fine-tuning, and PEFT through LoRA; stop before QLoRA.Optional
# Module 12
Project Presentations
Learning objectives: Present the project question, data, workflow, evaluation, and results as a coherent analytical story; use clear visuals or examples to explain model behavior; discuss limitations and responsible use and respond thoughtfully to questions and peer feedback.
Before class
- Check that your GitHub repository and README are ready for questions.Required
- Submit presentation materials through Canvas by the published deadline.Required