OpenAI's chatgpt-retrieval-plugin, but instead of a plugin, it's a standalone app.
My first AI project, I wanted to see how hard it would be and also learn a bit about vector databases on the process.
- Install Python 3.10, if not already installed.
- Install poetry:
pip install poetry
- Create a new virtual environment with Python 3.10:
poetry env use python3.10
- Activate the virtual environment:
poetry shell
- Install app dependencies:
poetry install
- Set the required environment variables:
cp .env.example .env
- Run the API:
poetry run start
- CD into the app directory:
cd app
- Install dependencies:
pnpm install
- Run dev script:
pnpm dev
- CD into the app directory:
cd app
- Run build script:
pnpm build
- Go back to root folder:
cd ..
- Run the API:
poetry run start
API will now serve the app static assets as well.