pgai-demo repository
Follow these steps to get the project up and running:
- Install pre-commit hooks by
`pre-commit install`-
Get your OpenAI API Key
I. Go to the OpenAI website and sign up for an account.
- You'll need to verify your email address.
II. Navigate to API Keys:
- Once logged in, click on your profile icon (top-right corner).
- Select View API keys from the dropdown.
III. Create a New Key:
- Click the Create new secret key button.
IV. Copy and Save:
- Your API key will be shown only once.
- Store it in a safe place (e.g.,
.env).
-
Copy the example environment file
cp .env.example .env- Make 05-pgai_install.sh executable
chmod +x postgres/05-pgai_install.sh- Build and run the application
docker compose up --build