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.

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

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

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

# 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

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.

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

# 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