module
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Jul 18, 2023
License: MIT
Opens a new window with license information.
README
¶
Chat2Data is a tool that uses AI to facilitate interaction with your MySQL, PostgreSQL, SQLite3 databases.
Feature
- 🗣 Easy Interaction: Chat2Data lets you chat with your databases, making it intuitive to use.
- 🔗 Multiple Databases: It supports MySQL, PostgreSQL, SQLite3, and CSV files.
- 🐳 Docker Support: It provides a Docker image for easy deployment.
- 💻 CLI and Web UI: It offers both a command line and a web interface.
- ⚙️ Simple Installation: It's easy to install with Go command.
- 🧠 AI Integration: It leverages OpenAI API for advanced natural language processing.
Preview


Quick Run(Docker)
docker run --rm -it -e OPENAI_API_KEY=xxx bailu1901/chat2data --mysql=root:pwd@tcp(localhost:3306)/mydb
Install
go install github.com/byebyebruce/chat2data/cmd/chat2data@latest
Run
- Config environment variables
- Use local
.env file cp .env.template .env then edit it.
- You can also use
export OPENAI_API_KEY=xxx to specify the environment variables.
- Run CLI(command line interface)
- help
chat2data --help
- mysql
chat2data --mysql=root:pwd@tcp(localhost:3306)/mydb
- postgre
chat2data --postgre=postgres://db_user:mysecretpassword@localhost:5438/test?sslmode=disable
- sqlite3
chat2data --sqlite3=mytest.db
- csv
chat2data --csv=csvfile.csv or chat2data --csv=csvdir
- with env
OPENAI_API_KEY=xxx chat2data --mysql=root:pwd@tcp(localhost:3306)/mydb
- Run Web UI
Build by source
git clone github.com/byebyebruce/chat2data
make build
docker build -t chat2data .
TODO
- Support Docker
- Support Postgre Database
- Support load csv
- Add Web ui
Special Thanks

Directories
¶
Click to show internal directories.
Click to hide internal directories.