Quickstart
DB-GPT supports the installation and use of various open-source and closed-source models. Different models have different requirements for environment and resources. If local model deployment is required, GPU resources are necessary. The API proxy model requires relatively few resources and can be deployed and started on a CPU machine.
note
- Detailed installation and deployment tutorials can be found in Installation.
- This page only introduces deployment based on ChatGPT proxy and local GLM model.
Environment Preparation
Download Source Code
提示
Download DB-GPT
git clone https://github.com/eosphoros-ai/DB-GPT.git
Environment Setup
- The default database uses SQLite, so there is no need to install a database in the default startup mode. If you need to use other databases, please refer to the advanced tutorials below. Starting from version 0.7.0, DB-GPT uses uv for environment and package management, providing faster and more stable dependency management.
note
There are some ways to install uv:
- Command (macOS And Linux)
- PyPI
- Other
curl -LsSf https://astral.sh/uv/install.sh | sh
Install uv using pipx.
python -m pip install --upgrade pip
python -m pip install --upgrade pipx
python -m pipx ensurepath
pipx install uv --global
You can see more installation methods on the uv installation
Then, you can run uv --version
to check if uv is installed successfully.
uv --version
Deploy DB-GPT
提示
If you are in the China region, you can add --index-url=https://pypi.tuna.tsinghua.edu.cn/simple at the end of the command.Like this:
uv sync --all-packages \
--extra "base" \
--extra "proxy_openai" \
--extra "rag" \
--extra "storage_chromadb" \
--extra "dbgpts" \
--index-url=https://pypi.tuna.tsinghua.edu.cn/simple