Generate ideas!
- Copy
backend/.template.env
tobackend/.env
. - Copy the root
.template.env
to.env
and update:OPENAI_API_KEY
: Your OpenAI API key.PATHS_LOGS_DIR
: The absolute path to the logs directory for the project.PATHS_PROJECT_DIR
: The absolute path to the root directory of the project.
- Install direnv.
- Install the latest version of uv using:
curl -LsSf https://astral.sh/uv/install.sh | sh
- Clone the repo (
git clone git@github.com:IDinsight/IdeaGenerator.git
) and cd into the root directory of the repo. - Allow
direnv
to load the environment variables by runningdirenv allow
. cd backend
- Allow
direnv
to load the environment variables by runningdirenv allow
. This should allowdirenv
to load all environment variables for the backend. - Execute
make fresh-env
. This will create a new virtual environment for the backend and install all dependencies. - Execute
source .venv/bin/activate
: This will activate the virtual environment created bymake fresh-env
.
- Allow
- Execute
python src/idea_generator/entries/single_island.py
: This will run the single island mutation demo and will cost approximately$0.40
if you are usinggpt-4o
. - Execute
python src/idea_generator/entries/multi_island.py
: This will run the multi-island mutation demo and will cost approximately$0.80
if you are usinggpt-4o
.
- In the
backend
directory, executedeactivate
. This will exit out of the virtual environment created byuv
.