Skip to content

RelevanceAI/template-nl-chart-generation

Repository files navigation

Agent that dashboards like an analyst - Relevance AI

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.

Setup

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.

Development Server

Start the development server on http://localhost:3000

npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published