An agentic AI application for chatting with existing relational databases
1.0K
An agentic AI application for chatting with existing relational databases. Github repo at https://github.com/dhanilan/dbchat
docker pull dhanilan/dbchat
docker run -p 5173:5173 -p 8000:8000 dhanilan/dbchat
default database to save connections and conversation is mongo at mongodb://localhost:27017/dbchat
if you want to save them at specific mongo database pass it as an env
docker run -p 5173:5173 -p 8000:8000 -e DB_URL=mongodb://host.docker.internal:27017/dbchat dhanilan/dbchat
if you want to run spider dataset from https://yale-lily.github.io/spider
docker run -p 5173:5173 -p 8000:8000 -e DB_URL=mongodb://host.docker.internal:27017/dbchat -e ATTACH_SPIDER_DATASET=1 dhanilan/dbchat
The docker compose also comes with a chinook database for testing. You can use it by adding a connection to the chinook database in the UI
use postgresql+psycopg2://postgres:postgres@chinook:5143/chinook as the connection string
update the docker-compose.yml with the required envs if neccessary and run
docker-compose up -d
Built with Autogen.

Dev container contains all the necessary deps , mongodb storing the schema and chat history , conversations, settings etc and also a chinook database in postgres for playing around
pip install -r requirements.txt
cd src/ui && npm i
cd src/ui && npm run dev
cd src && uvicorn api.main:app
By default opens in http://localhost:5173/
Goto setting to save the OPEN AI API key
postgresql+psycopg2://postgres:postgres@localhost:5432/chinook
Content type
Image
Digest
sha256:1565d5186…
Size
613.5 MB
Last updated
over 2 years ago
docker pull dhanilan/dbchat