To run the example locally you need to:
- Sign up at OpenAI's Developer Platform
- Go to OpenAI's dashboard and create an API KEY
- Set the required OpenAI environment variable as the token value as shown the example env file but in a new file called
.env.local
- Run vercel Postgres
yarn
to install the required dependenciesyarn dev
to launch the development server- POST http://localhost:3000/api/store-data to store the data in the local Chroma
- start chatting with the bot at http://localhost:3000/