GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sql-agi/DB-GPT-X

BranchesTags
Open more actions menu

Latest commit

 

History

65 Commits
65 Commits

Folders and files

NameName
Last commit message
Last commit date
agents
agents
 
 
configs
configs
 
 
deploy
deploy
 
 
docker
docker
 
 
img
img
 
 
langfusion
langfusion
 
 
memory
memory
 
 
prompts
prompts
 
 
tools
tools
 
 
utils
utils
 
 
web/app
web/app
 
 
.env
.env
 
 
.env_temple
.env_temple
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
Code of conduct.md
Code of conduct.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README_en.md
README_en.md
 
 
api.py
api.py
 
 
chat_db.py
chat_db.py
 
 
cli_demo.py
cli_demo.py
 
 
requirements.txt
requirements.txt
 
 
wait-for-it.sh
wait-for-it.sh
 
 
web_demo.py
web_demo.py
 
 

Repository files navigation

DB-GPT-X

用自然语言管理数据库——替代传统企业 Web 管理后台。

stars forks License: MIT Release Notes Open Issues
👋 加入我们的 微信群

目录

  • 项目介绍
  • 快速上手
    • Docker 部署
    • Web & CLI
    • API 部署
  • 未来计划
  • 联系我们

项目介绍

🤖 DB-GPT-X 是一个开源的数据应用程序开发框架,旨在利用大型语言模型(LLM)技术通过自然语言与数据库进行交互,取代传统的 Web 管理后台。

🌐 目前开放查询权限。完整的增删改查(CRUD)功能正在内部测试中,即将推出。

🚀 在 Data 3.0 时代,DB-GPT-X 让企业和开发者用更少的代码构建自定义应用,专注于复杂的业务逻辑,而非维护管理后台。


快速上手

git clone https://github.com/sql-agi/DB-GPT-X

Docker Deploy

  1. 配置 .env 文件(参考 templates.env_temple)
  2. 填写 OPENAI_API_KEY 和 OPENAI_API_BASE(建议使用官方 API Key)
  3. 切换到 docker 目录:
cd DB-GPT-X/docker
  1. 参照 docker/README.md 执行对应命令

注意: 如需自定义数据库表结构或初始数据,修改 /docker/sql/init.sql 即可。

Web & CLI

环境要求: Python 3.9、Conda

conda create --name db-gpt python=3.9
conda activate db-gpt
pip install -r requirements.txt

配置 .env 文件(参考 templates.env_temple):

变量 是否必填
OPENAI_API_KEY ✅
OPENAI_API_BASE ✅
MYSQL_HOST ✅
MYSQL_PORT ✅
MYSQL_USER ✅
MYSQL_PASSWORD ✅
MYSQL_DATABASE ✅

🔥 强烈建议使用官方 OpenAI API Key,经测试部分中转 Key 效果不稳定。

Web Demo

web-demo

python web_demo.py

程序启动后输出本地地址,在浏览器中打开即可使用。最新版已实现打字机效果,体验大幅提升。

默认 share=False。如需公网访问,在 web_demo.py 中改为 share=True(注意:通过 Gradio 中转会降低打字机响应速度)。

CLI Demo

cli-demo

cli-demo

python cli_demo.py

在命令行中进行交互式对话,输入 quit 退出。

API Deploy

python api.py

默认在本地 8000 端口启动,通过 POST 方法调用:

curl -X POST "http://127.0.0.1:8000/chat/db" \
     -H "Content-Type: application/json" \
     -d '{"input": "你好"}'

返回值:

{
    "reply": "你好!请问有什么可以帮助您的?"
}

未来计划

  • 前端: 更优秀的 UI 界面,支持更多数据库类型及开源大模型
  • 后端: 深度测试复杂 CRUD 场景,增加环境切换、角色权限管理
  • 社区: 持续根据用户反馈优化产品,欢迎感兴趣的开发者加入开源团队

联系我们

项目交流群

微信群二维码

欢迎加入 DB-GPT-X 微信交流群,参与讨论与反馈。

公众号

公众号二维码

欢迎扫码关注官方公众号,获取最新动态。


参考项目

  • LangChain

项目声明

DB-GPT-X 是由 sql-agi 团队独立开发和维护的开源项目。

本项目与 eosphoros-ai/DB-GPT 不存在任何关联、授权、背书或合作关系。

DB-GPT-X 的源代码、架构设计及核心实现均由 sql-agi 团队独立研发和维护。

About

No description, website, or topics provided.

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

243 stars

Watchers

16 watching

Forks

32 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.