This hands-on workshop introduces researchers to using large language models (LLMs) programmatically to support qualitative research workflows. Using real New Zealand legislative data, you will practice prompting techniques to prepare, label, and analyse unstructured text and images — then learn how to critically evaluate and validate what the model produces. No prior coding or machine learning experience is required.
You run the workshop notebooks on your own laptop, in VS Code. Before the workshop, follow the setup guide. In short:
uv sync in the terminal.On the day, connect to the university VPN, open each notebook from the notebooks folder, and run the cells from top to bottom.
If you could not install VS Code, you can run the notebooks in Google Colab instead. Colab is a free Google service that runs notebooks in your web browser, so there is nothing to install and you do not need the VPN.
.env file. Everything else works the same.Colab does not save your changes for you. To keep your work, choose File → Save a copy in Drive.
| Episode | File | Preview on GitHub | Run in Google Colab |
|---|---|---|---|
| 01 — Environment setup | notebooks/01-environment-setup.ipynb |
View | |
| 02 — LLMs as research instruments | notebooks/02-llms-as-instruments.ipynb |
View | |
| 03 — Exploratory analysis | notebooks/03-prompt-engineering.ipynb |
View | |
| 04 — Visual feature extraction | notebooks/04-visual-extraction.ipynb |
View | |
| 05 — Looping an LLM over many documents | notebooks/05-looping-over-documents.ipynb |
View |
Developed by Dr Toby Johnson, Centre for eResearch, University of Auckland