This works on any SQL database! You might need to play with the prompts in the chains
folder to get it working best for your use case. The world is your oyster!
Read about how this works to learn more.
Make sure to install the dependencies:
# npm
npm install
Then install the Relevance AI SDK, authenticate and deploy the chains.
npm install @relevanceai/chain -g
relevance login
relevance deploy
Add your Relevance region and project to the demo-config.ts
file to power the frontend chain client.
export const REGION = '';
export const PROJECT = '';
Finally, set up an SQL database (I used a Planetscale database for free) and add a .env
file with:
DATABASE_HOST=
DATABASE_USERNAME=
DATABASE_PASSWORD=
DATABASE_URL=
Then run npm run upload
to populate your database with sample data! It inserts 2000 documents at a time, so you can run it more than once if you want more data.
Start the development server on http://localhost:3000
npm run dev