Interact your data and environment using the local GPT, no data leaks, 100% privately, 100% security
Go to file
2025-07-17 16:10:19 +08:00
.devcontainer Bugfix(RAG):handle exceptions in aload_document_with_limit results (#2712) 2025-05-22 17:00:03 +08:00
.github ci(SDK): Add 0.7.0 workflow (#2493) 2025-03-20 15:27:44 +08:00
assets docs: update readme (#2760) 2025-06-10 16:07:51 +08:00
configs feat(model): AI/ML API integration (#2844) 2025-07-15 13:17:14 +08:00
docker feat(model): AI/ML API integration (#2844) 2025-07-15 13:17:14 +08:00
docs feat(model): AI/ML API integration (#2844) 2025-07-15 13:17:14 +08:00
examples fix(examples): update client usage to prefer await aclose() in async context" (#2839) 2025-07-13 16:58:46 +08:00
i18n feat(model): Support model icon 2025-03-19 11:51:50 +08:00
packages fix(prompt): resolve KeyError and validation issues with custom prompt templates (#2848) 2025-07-17 16:10:19 +08:00
pilot/meta_data Native data AI application framework based on AWEL+AGENT (#1152) 2024-02-07 17:43:27 +08:00
requirements fix(ChatKnowledge): Fix chat knowledge error (#1753) 2024-07-29 11:13:57 +08:00
scripts feat(model): Proxy multimodal supports (#2641) 2025-04-21 19:36:29 +08:00
tests feat(model): Support Qwen3 embeddings (#2772) 2025-06-14 23:34:48 +08:00
web fix(prompt): resolve KeyError and validation issues with custom prompt templates (#2848) 2025-07-17 16:10:19 +08:00
.devcontainer.json feat(KnowledgeBase):Add Word97-2003 (.doc) Binary File parsing module (#2544) 2025-03-29 11:05:06 +08:00
.dockerignore feat(build): Support docker install 2025-03-12 10:24:22 +08:00
.flake8 feat(model): Support yi proxy LLM (#1303) 2024-03-15 22:15:37 +08:00
.gitignore feat(KnowledgeBase):Add Word97-2003 (.doc) Binary File parsing module (#2544) 2025-03-29 11:05:06 +08:00
.isort.cfg chore: Add pylint for DB-GPT core lib (#1076) 2024-01-16 17:36:26 +08:00
.mypy.ini chore: Fix pylint error (#1915) 2024-08-29 16:37:31 +08:00
.pre-commit-config.yaml fix(model): Fix apiserver error (#2605) 2025-04-10 10:23:49 +08:00
.python-version feat(model): Support reasoning model (#2375) 2025-02-28 14:32:47 +08:00
CODE_OF_CONDUCT Added CODE_OF_CONDUCT file 2023-10-30 23:16:52 +05:30
CONTRIBUTING.md feat(KnowledgeBase):Add Word97-2003 (.doc) Binary File parsing module (#2544) 2025-03-29 11:05:06 +08:00
DISCKAIMER.md chore: add disckaimer (#2274) 2025-01-03 20:51:25 +08:00
docker-compose.yml feat(build): Support docker install 2025-03-12 10:24:22 +08:00
install_help.py feat(agent): More general ReAct Agent (#2556) 2025-03-31 09:38:31 +08:00
LICENSE Initial commit 2023-04-13 22:52:44 +08:00
Makefile feat(model): Proxy multimodal supports (#2641) 2025-04-21 19:36:29 +08:00
MANIFEST.in docs: SMMF introduction and usage (#878) 2023-12-01 12:37:29 +08:00
pyproject.toml chore: tag v0.7.2 (#2771) 2025-06-13 17:24:12 +08:00
README.ja.md docs: update readme style (#2767) 2025-06-12 19:55:27 +08:00
README.md docs: update readme style (#2767) 2025-06-12 19:55:27 +08:00
README.zh.md docs: update readme style (#2767) 2025-06-12 19:55:27 +08:00
uv.lock feat(model): Support GLM4.1-vl model (#2806) 2025-07-03 09:46:42 +08:00

Logo DB-GPT: AI Native Data App Development framework with AWEL and Agents

What is DB-GPT?

🤖 DB-GPT is an open source AI native data app development framework with AWEL(Agentic Workflow Expression Language) and agents.

The purpose is to build infrastructure in the field of large models, through the development of multiple technical capabilities such as multi-model management (SMMF), Text2SQL effect optimization, RAG framework and optimization, Multi-Agents framework collaboration, AWEL (agent workflow orchestration), etc. Which makes large model applications with data simpler and more convenient.

🚀 In the Data 3.0 era, based on models and databases, enterprises and developers can build their own bespoke applications with less code.

Introduction

The architecture of DB-GPT is shown in the following figure:

The core capabilities include the following parts:

  • RAG (Retrieval Augmented Generation): RAG is currently the most practically implemented and urgently needed domain. DB-GPT has already implemented a framework based on RAG, allowing users to build knowledge-based applications using the RAG capabilities of DB-GPT.

  • GBI (Generative Business Intelligence): Generative BI is one of the core capabilities of the DB-GPT project, providing the foundational data intelligence technology to build enterprise report analysis and business insights.

  • Fine-tuning Framework: Model fine-tuning is an indispensable capability for any enterprise to implement in vertical and niche domains. DB-GPT provides a complete fine-tuning framework that integrates seamlessly with the DB-GPT project. In recent fine-tuning efforts, an accuracy rate based on the Spider dataset has been achieved at 82.5%.

  • Data-Driven Multi-Agents Framework: DB-GPT offers a data-driven self-evolving multi-agents framework, aiming to continuously make decisions and execute based on data.

  • Data Factory: The Data Factory is mainly about cleaning and processing trustworthy knowledge and data in the era of large models.

  • Data Sources: Integrating various data sources to seamlessly connect production business data to the core capabilities of DB-GPT.

SubModule

  • DB-GPT-Hub Text-to-SQL workflow with high performance by applying Supervised Fine-Tuning (SFT) on Large Language Models (LLMs).

  • dbgpts dbgpts is the official repository which contains some data apps、AWEL operators、AWEL workflow templates and agents which build upon DB-GPT.

Text2SQL Finetune

LLM Supported
LLaMA
LLaMA-2
BLOOM
BLOOMZ
Falcon
Baichuan
Baichuan2
InternLM
Qwen
XVERSE
ChatGLM2

More Information about Text2SQL finetune

AI-Native Data App



app_chat_v0 6

app_manage_chat_data_v0 6

chat_dashboard_display_v0 6

agent_prompt_awel_v0 6

Installation / Quick Start

Docker Linux macOS Windows

Usage Tutorial

Features

At present, we have introduced several key features to showcase our current capabilities:

  • Private Domain Q&A & Data Processing

    The DB-GPT project offers a range of functionalities designed to improve knowledge base construction and enable efficient storage and retrieval of both structured and unstructured data. These functionalities include built-in support for uploading multiple file formats, the ability to integrate custom data extraction plug-ins, and unified vector storage and retrieval capabilities for effectively managing large volumes of information.

  • Multi-Data Source & GBI(Generative Business intelligence)

    The DB-GPT project facilitates seamless natural language interaction with diverse data sources, including Excel, databases, and data warehouses. It simplifies the process of querying and retrieving information from these sources, empowering users to engage in intuitive conversations and gain insights. Moreover, DB-GPT supports the generation of analytical reports, providing users with valuable data summaries and interpretations.

  • Multi-Agents&Plugins

    It offers support for custom plug-ins to perform various tasks and natively integrates the Auto-GPT plug-in model. The Agents protocol adheres to the Agent Protocol standard.

  • Automated Fine-tuning text2SQL

    We've also developed an automated fine-tuning lightweight framework centred on large language models (LLMs), Text2SQL datasets, LoRA/QLoRA/Pturning, and other fine-tuning methods. This framework simplifies Text-to-SQL fine-tuning, making it as straightforward as an assembly line process. DB-GPT-Hub

  • Privacy and Security

    We ensure the privacy and security of data through the implementation of various technologies, including privatized large models and proxy desensitization.

  • Support Datasources

Image

🌐 AutoDL Image

Contribution

Contributors Wall

Licence

The MIT License (MIT)

DISCKAIMER

Citation

If you want to understand the overall architecture of DB-GPT, please cite Paper and Paper

If you want to learn about using DB-GPT for Agent development, please cite the Paper

@article{xue2023dbgpt,
      title={DB-GPT: Empowering Database Interactions with Private Large Language Models}, 
      author={Siqiao Xue and Caigao Jiang and Wenhui Shi and Fangyin Cheng and Keting Chen and Hongjun Yang and Zhiping Zhang and Jianshan He and Hongyang Zhang and Ganglin Wei and Wang Zhao and Fan Zhou and Danrui Qi and Hong Yi and Shaodong Liu and Faqiang Chen},
      year={2023},
      journal={arXiv preprint arXiv:2312.17449},
      url={https://arxiv.org/abs/2312.17449}
}
@misc{huang2024romasrolebasedmultiagentdatabase,
      title={ROMAS: A Role-Based Multi-Agent System for Database monitoring and Planning}, 
      author={Yi Huang and Fangyin Cheng and Fan Zhou and Jiahui Li and Jian Gong and Hongjun Yang and Zhidong Fan and Caigao Jiang and Siqiao Xue and Faqiang Chen},
      year={2024},
      eprint={2412.13520},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2412.13520}, 
}
@inproceedings{xue2024demonstration,
      title={Demonstration of DB-GPT: Next Generation Data Interaction System Empowered by Large Language Models}, 
      author={Siqiao Xue and Danrui Qi and Caigao Jiang and Wenhui Shi and Fangyin Cheng and Keting Chen and Hongjun Yang and Zhiping Zhang and Jianshan He and Hongyang Zhang and Ganglin Wei and Wang Zhao and Fan Zhou and Hong Yi and Shaodong Liu and Hongjun Yang and Faqiang Chen},
      year={2024},
      booktitle = "Proceedings of the VLDB Endowment",
      url={https://arxiv.org/abs/2404.10209}
}

Contact Information

Thanks to everyone who has contributed to DB-GPT! Your ideas, code, comments, and even sharing them at events and on social platforms can make DB-GPT better. We are working on building a community, if you have any ideas for building the community, feel free to contact us.

  • Github Issues For questions about using GB-DPT, see the CONTRIBUTING.
  • Github Discussions Share your experience or unique apps.
  • Twitter Please feel free to talk to us.

Star History Chart