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 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”Optional
During class
# Module 6
Context Design, Model Benchmarks, and Evaluation
Learning objectives: Construct prompts with clear instructions, examples, context, and output constraints; distinguish model benchmarks from application and system evaluations; compare deterministic checks, rubrics, pairwise judgments, and human review; explain limitations involving prompt sensitivity, contamination, saturation, judge bias, latency, and cost.
Before class
- Chapter 6: “Prompt Engineering”Optional
During class
- Mini evaluation lab: define grading criteria, compare two model or prompt conditions, and inspect disagreements among deterministic checks, rubric judgments, and human reviewRequired
# Module 7
RAG I: Dense Retrieval and Grounded Generation
Learning objectives: Chunk and embed a small document collection; build a dense semantic-retrieval workflow; use retrieved passages to produce grounded answers with source citations; distinguish retrieval failures from unsupported generation.
Before class
- Selected sections from Chapter 8: dense retrieval and retrieval-augmented generationOptional
During class
- Guided lab: chunk and embed a document collection, retrieve relevant passages, and generate cited answers while tracing retrieval and generation failuresRequired
# Module 8
RAG II: Hybrid Retrieval, Reranking, and Evaluation
Learning objectives: Compare lexical, dense, and hybrid retrieval; use a cross-encoder to rerank candidate passages; evaluate retrieval and answer quality; explain tradeoffs involving accuracy, latency, complexity, and cost.
Before class
During class
- Guided lab: compare dense retrieval with a lexical or hybrid baseline, rerank candidates, and measure retrieval and grounded-answer qualityRequired
# Module 9
LLM Workflows, Tool Use, and Agentic RAG
Learning objectives: Distinguish deterministic workflows from model-directed agents; trace the tool-call, execution, observation, and response loop; explain how context, permissions, stopping conditions, and retrieval-as-a-tool affect reliability; identify failures from a supplied execution trace.
Before class
- Chapter 7: “Advanced Text Generation Techniques and Tools”Optional
During class
- Online activity: analyze successful and failed tool-use traces, identify the first failure, check the actual task outcome, and propose a safeguardRequired
# Module 10
Model Adaptation I: Text Embedding Models
Learning objectives: Explain when a general embedding model needs task or domain adaptation; organize query-positive pairs and hard negatives for contrastive learning; fine-tune a small embedding model; compare the original and adapted models on held-out retrieval examples.
Before class
- Chapter 10: “Creating Text Embedding Models”Optional
During class
- Guided lab: fine-tune a small embedding model with query-positive pairs and hard negatives, then compare before-and-after retrieval on held-out queriesRequired
# Module 11
Model Adaptation II: Parameter-Efficient Fine-Tuning
Learning objectives: Choose among prompting, retrieval, embedding adaptation, and generative fine-tuning; prepare instruction or conversational data with the correct chat template; explain LoRA and QLoRA; compare a base and adapted model while assessing overfitting, privacy, computing, and maintenance risks.
Before class
- Hugging Face PEFT, “LoRA”Required
- Selected sections from Chapter 12, “Fine-Tuning Generation Models”: supervised fine-tuning, LoRA/QLoRA, instruction data, and evaluationOptional
During class
- Instructor overview: deciding among prompting, retrieval, embedding adaptation, and generative fine-tuningRequired
- Guided lab: fine-tune a small model with LoRA or QLoRA and compare the base and adapted models on held-out task examplesRequired
# 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