Although traditional coding softwares such as Dedoose and NVivo are incorporating LLMs, and new tools are being built around them, we decided not to use any of those softwares and instead to create our own coding tool from scratch. Those softwares are very easy to use, but their AI tools are not transparent to the user. The way these new tools work is that the user uploads their transcript and the tool suggests codes. However, how it suggests them and why is not transparent to the user.
Our coding tool is built in Obsidian
We built our own coding tool using a platform called Obsidian. At its most basic, Obsidian is an environment that allows you to link different pages of text files, creating something that looks like a wiki.
We tried to replicate the traditional coding platforms in our Obsidian. We had folders with our interviews, our codebook, and a coding skill. We used Quadro, an Obsidian plugin designed by sociologist Chris Grieser as an open alternative to MAXQDA and Atlas.ti. Quadro allows us to select a passage and assign a code to it. Quadro then turns that code in the transcript into a link and keeps a page for the code, which links back to every passage in the corpus it is assigned to. You can use Quadro on its own to hand code the interviews. We are also experimenting with using LLM coding in our Obsidian vault.
How do I set up Obsidian and Quadro?
Obsidian is a free app for Mac, Windows and Linux. It does not store your notes in a database. A "vault" is an ordinary folder of text files on your computer, written in Markdown, a way of marking headings and links with plain characters. A link between two pages is the page name inside double square brackets.
Quadro is a free plugin that adds coding commands to Obsidian. Because everything is a text file, a code is a file too: assigning a code writes a link into the transcript file and a link back into the code's file. To install it, follow the steps on Quadro's page, then point it at the folders that hold your transcripts and your codes.
The vault is a folder, so it lives wherever you put it. Ours holds only de-identified transcripts.
The AI proposes codes, and we approve or decline them
Our coding skill is a set of written instructions that the LLM follows as it reads our interviews. For every passage it proposes codes, which we then approve or decline. The one thing we did not like about Quadro is that it did not let us code whole passages and then have overlapping passages carry different codes, so that is something we changed by writing it into the coding skill.
A record of who applied each code, when, and with what model
We also have a program that adds excerpts of the passages where a code was used onto the page for that code. It also writes a CSV with one row per code application, and records who applied the code, when, and with what model. This allows us to keep track of how decisions are being made and compare the coding skill with hand coding.
What is the program?
A Python script that runs on our own computer. Every code application in the vault is a link inside a text file, so the script reads the files, finds each link, and pulls out the passage it sits in. It writes the passages onto the page for that code.
It also writes a CSV file, a table that opens in Excel, R or Stata. Each row is one code applied to one passage, with columns for the interview, the code, who applied it, the date, and the model if an LLM proposed it.
Why we built it: control and replicability
The reason we created this skill was because we wanted to be able to experiment with LLM coding, but have full control over the way it is happening, and reach a level of replicability where, when coding the same interview repeatedly, we are getting the same codes every time.
Want to know more? Which data an AI is allowed to read