Unit 2: Working with LLMs
This unit covers how large language models process prompts, how to prompt them well, how to judge how far their output can be trusted, and how to be transparent about using them. You’ll explore a set of historical letters with an AI research tool, and find out what it does well, and what it can’t do reliably.
Throughout the unit, a six-step exercise follows one short letter (Stevenson to Sidney Colvin, August 1877) from a first question to a disclosure statement.
TipRequirements
NoteLearning Objectives
- Explain what an LLM actually receives when you use it (system prompts, chat history, documents, retrieved passages) and how the context window limits it
- Write more effective prompts, treating prompting as task design: structure, iteration, and grounding in sources
- Use a research tool such as Gemini Notebook to explore a set of documents, and judge what its output can and can’t be relied on for
- Recognize the characteristic ways LLMs fail, including hallucination, sycophancy, and quieter errors such as omission and over-interpretation
- Calibrate trust to the stakes, and verify LLM output in concrete ways
- Keep a proportionate record of AI use, and acknowledge it appropriately
Contents
- Reading: Prompt Processing
- The model’s actual input: your prompt, the system prompt, documents, chat history, and retrieved passages
- Context windows, long conversations, and summaries
- Instructions as strong signals, not hard rules; drift, forgetting, and self-contradiction
- Reading: Prompting Strategies
- Prompting as task design: source, task, output, and standard
- Iteration, follow-up questions, and grounding
- Activity: Gemini Notebook
- Exploring 20 Stevenson letters, and the entity resolution problem
- Structured output: a real data file and a network graph
- Reliability: reproducibility, visible code, versions, and scale
- Reading: Assessing Reliability
- Failure modes: patterns, not accidents
- Trust as fit for purpose, matching verification to the stakes, practical verification approaches
- From spot checks to systematic evaluation against ground truth
- Reading: Documenting Your Work
- Proportionality, and a documentation template (with two worked examples)
- Explicit processing: requesting the script, not the result
- Activity: AI-Assisted Work: six scenarios for discussion
- Reading: Acknowledging AI Use
- Citing sources, not the model, and acknowledging tools in proportion to their impact
- A decision framework, example disclosure statements, and a note on AI detectors