LLM-based system for database diagnosis, research paper & tool APIs
Top 51.9% on sourcepulse
DB-GPT is an LLM-based system designed to act as a database administrator (DBA), automating the diagnosis and resolution of database anomalies. It targets database professionals and engineers by providing an intelligent assistant capable of understanding documentation, utilizing tools, and generating analysis reports for database issues.
How It Works
DB-GPT employs a multi-stage LLM-based diagnosis mechanism, including task dispatching, concurrent diagnosis, cross-review, and report generation. It leverages a knowledge base for Q&A and diagnosis, integrating with monitoring tools like Prometheus and Alertmanager, and databases like PostgreSQL. The system supports adaptive alignment to user preferences through feedback mechanisms, refining diagnosis patterns stored in a vector database.
Quick Start & Requirements
pip3 install -r requirements.txt
.pg_stat_statements
, pg_hint_plan
, hypopg
extensions), Git LFS for model downloads.m3e-base
, Qwen-1_8B-Chat
) and configuring paths in model_config.py
. Docker deployment is available for monitoring and database components.Highlighted Details
.docx
documents and tool APIs for index selection and query rewriting.Maintenance & Community
The project is actively developed by Tsinghua University's Database Group and has received recognition as a Top 100 Open Project and inclusion in VLDB 2024. Community engagement is encouraged via WeChat.
Licensing & Compatibility
The repository does not explicitly state a license in the README. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The project is undergoing significant upgrades, with some features marked as "todo" or in development (e.g., human feedback integration, support for more databases). The LLM-based diagnosis mechanism is still being refined.
5 months ago
1 day