Mark Andrews
  • training courses
  • book
  • publications
  • presentations
  • notes
  • about

Qualitative text analysis with local LLMs

llm
R

A note on how to analyse text for themes and topics using local LLMs like Llama. This note is divided into three parts. I cover how to install Ollama and use it in R, provide a worked example of qualitative text analysis using Llama, and then discuss the computational power requirements for using local LLMs for real-world analyses.

Author

Mark Andrews

Published

January 28, 2025

Qualitative text analysis with local LLMs: Part I

This is Part I of a three part note on qualitative text analysis with a locally running LLM. In this part, I provide some background context and describe how to install local LLMs with Ollama and how to use them in R.
28th January, 2025

Qualitative text analysis with local LLMs: Part II

This is Part II of a three part note on analysing text with a locally running LLM. In this part, I provide a worked example of doing text analysis with a local LLM using R. The example problem comes from a free-text rating problem in recently published Psychological Science paper.
28th January, 2025

Qualitative text analysis with local LLMs: Part III

In this third part of a three part note on qualitative text analysis with LLMs, I discuss some practical issues concerning using local LLMs, especially the computational power requirements.
28th January, 2025
No matching items
Back to top

© Mark Andrews 2021-2025. CC BY-SA 4.0.