Python is the standard language for machine learning and AI these days. This directory contains various experiments which I may translate into Rust if they prove useful.
This code is intended for people who are comfortable using Python and who want to try various experiments. Using this is going to be harder than using the substudy
command-line tool.
You will need to install asdf and run:
asdf plugin add python
asdf install
pip install pipenv
pipenv install
Once you have installed everything, you can run a shell with:
pipenv shell
You will need to set up a paid OpenAI account and get an API key. Once you have the key, create a file called .env
in this directory and add the following line:
OPENAI_API_KEY="your-key-here"
Each file should have a least a couple of comments showing what it does and how to call it.