Skip to content

Latest commit

 

History

104 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moral Graph Generation

Code for generating synthetic moral graphs.

Setup

Requirements

  • OpenAI API key

Set API key in environment:

export OPENAI_API_KEY=<api_key>

Env Variables

Copy the prisma snippet from:

https://vercel.com/institute-for-meaning-alignment/~/stores/postgres/store_hj4DgVFUYDkVLAND/data

Python Environment

The project currently uses python 3.10.9. Using other python versions may cause issues.

Make sure you're using the right python version:

pyenv install 3.10.9

pyenv use 3.10.9

Running python --version should return 3.10.9.

Create a python virtual environment:

python -m venv .venv

Activate the environment:

source .venv/bin/activate

Install dependencies:

pip install -r requirements.txt

Prisma

In order to query the database through Prisma, run:

python -m prisma generate

About

Moral Graph Generation

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages