Skip to content

AIObjectives/moral-graphs-extraction-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heal-Michigan Moral Graphs

TL;DR:

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)

Comparing different types of ethics

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.

image image image

Comparing two people

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.

image image

To start the interface

cd app
npm start

How to re-run the pipeline (if you really want to)

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 !!!!

About

Bruno's Moral Learning Hackathon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published