This repo contains some code and code and screenshots produced duing an AOI hackathon.
The idea was to try and use LLMs to extract different type of "moral graphs" using the transcripts of interviews collecting during AOI's Heal Michigan Project.
These moral graphs aim to provide a a visual summarize if the different values that different participants decided to emphacise during the interviews. The edges of the graph show how different participants seem to connect different values with each other.
We looked at three different kinds of values (deontological, utilitarian, and virtues).
More details:
- we're using GPT-4 to extract moral graphs from the transcripts
- the colors of the dots correspond to different values
- the size of the dots correspond to the score/strength of the value
- you can hover on a dot to look at relevant quotes from original transcript
- you can move the dots around manually (there is no automatic layout algorithm)
The following graphs are for the same interviewee, but using three different set of prompts respectively from ./promts/deontological_ethics
, ./prompts/utilitarian_ethics
, and ./prompts/virtue_ethics
.



The following graphs are for two different participants. Note how they agree on several principles but not all. They put different weights on different things and they draw different edges.


cd app
npm start
Here's how you'd re-run the pipeline after changing the data or the prompts:
cd pipeline
npm i
rm cache/*
OPEN_AI_KEY="...." node main.js # <-- SLOW !!!!