Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 909 Bytes

File metadata and controls

26 lines (17 loc) · 909 Bytes

AI Experiments for Global Bible Tools

Usage

Create an .env file with the following env vars:

  • DATABASE_URL - PSQL connection string to database with gloss data
  • OPENAPI_KEY - The API key for making requests to the GPT model from OpenAI
  • GOOGLE_TRANSLATE_CREDENTIALS - The API key for access the Google Translate API

Run the script with the experiments you want to run:

node src/index.js --target=pol --ref=spa --start=01001001 --end=01001005 --experiments=experiment-1,experiment-2 > results.csv

Short hand:

node src/index.js -t=pol -r=spa -s=01001001 -e=01001005 -x=experiment-1,experiment-2 > results.csv

Experiments

  • google-translate - Uses the Google Translate API with glosses from the ref language.
  • gpt-standards - Uses GPT-4o-mini with glossing standards in the prompt. No glosses from the ref language, examples, or fine tuning are used.