Course Materials

Material status
Required
Optional

# 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

During class

# 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.

# 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.

# 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

# 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

Required preparation: about 30 minutes, including the video and review task below. Reading times are estimates; the textbook is optional.

During class

One-hour comparison workshop: 5 min recap, 10 min comparison checks, 20 min error inspection, 15 min recommendations, and 10 min discussion. Use existing classification outputs; no new model training is needed.

After class

Optional consolidation: about 5–10 minutes. Continue the existing Lab 1 assignment according to its published requirements and deadline; this module adds no separate submission.

# 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.

During class

After class

All follow-up resources below are optional. Choose the item that best addresses a question from 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

Required preparation: about 20 minutes, including the sketch. Read the text-and-images versions of the three short Microsoft Learn units below; the videos and module assessment are not required.

During class

One-hour guided session: 10 min pipeline and prompt walkthrough, 30 min retrieval and answer inspection, 15 min discussion, and 5 min buffer. Classroom notebook and prepared outputs are forthcoming.

After class

Optional consolidation: about 5–10 minutes. Additional project or lab work follows the existing assignment requirements.

# 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

Required preparation: about 20 minutes. Build on the Module 7 workflow; advanced retrieval methods are optional.

During class

One-hour evaluation workshop: 10 min criteria, 25 min comparison, 15 min error discussion, and 10 min Lab 2 connection. Evaluation notebook and comparison outputs are forthcoming.

After class

Optional consolidation: about 5–10 minutes. Complete Lab 2 on its existing schedule; no additional evaluation framework or API subscription is required by this module.

# Module 9

Context Design and Model Benchmarks

Learning objectives: Select and organize instructions, examples, and source evidence for a task; interpret a model benchmark in terms of its tasks, metrics, and testing conditions; explain what additional application-specific evidence is needed before choosing a model.

Before class

Online module on October 26: complete this section and the asynchronous activities below in about 60 minutes total. The two readings account for approximately 20 minutes of that total; no live meeting is scheduled.

During class

Complete the following independently as the asynchronous class activity (estimated 40 minutes). Use your earlier RAG work and the linked readings; model calls and a new notebook are not needed.

After class

All follow-up below is optional and outside the 60-minute module. No additional submission is introduced.

# Module 10

LLM Workflows and Tool Use

Learning objectives: Distinguish a fixed LLM workflow from model-directed tool use; trace a tool request, execution, observation, and final response; diagnose a failed task and propose a concrete safeguard or stopping condition.

Before class

Required preparation: about 20 minutes. Read for the workflow and tool interface; no agent framework installation is needed.

During class

One-hour trace workshop: 10 min overview, 25 min trace inspection, 15 min safeguards, and 10 min project discussion. Classroom traces and worksheet are forthcoming.

  • Planned guided activity: compare a fixed retrieve-then-answer workflow with a model-directed retrieval-tool example. Trace the tool name and arguments, execution result, information returned to the model, and final answer. Inspect one successful trace and one failed trace; verify what actually happened rather than relying on the final message.Required
  • Identify the first consequential failure and propose one targeted safeguard: argument validation, a tool-use limit, a stopping condition, or human approval for a consequential action. Include a case where retrieved text attempts to redirect the task. State how you would check the final outcome.Required
  • Project discussion: justify whether your task needs a single model call, a fixed workflow, or model-directed tool use. Describe the extra evidence you would need before adding complexity.Required

After class

Optional consolidation: about 5–10 minutes; optional extension reading is additional. Building an autonomous agent is not a course requirement.

# Module 11

Model Adaptation

Learning objectives: Distinguish changes to prompts and retrieved evidence from updates to model weights; explain the purpose of parameter-efficient fine-tuning; assess a before-and-after adaptation comparison and decide whether adaptation is justified for a project.

Before class

Required preparation: about 20 minutes. This is an introductory adaptation session and project clinic; no training run, GPU setup, or paid API is required.

During class

One-hour session: 15 min adaptation decisions, 15 min a worked comparison, and 30 min project clinic. The instructor’s comparison example is forthcoming.

After class

Optional consolidation: about 5–10 minutes. Continue the existing project deliverables; this module adds no training assignment.

# 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

  • Confirm that your GitHub repository opens correctly, the README identifies the starting point, and the analysis can be demonstrated during questions.Required
  • Submit the required presentation materials through the designated Canvas link before the presentation window closes.Required