Code for generating synthetic moral graphs.
- OpenAI API key
Set API key in environment:
export OPENAI_API_KEY=<api_key>
Copy the prisma snippet from:
https://vercel.com/institute-for-meaning-alignment/~/stores/postgres/store_hj4DgVFUYDkVLAND/data
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
In order to query the database through Prisma, run:
python -m prisma generate