Merge branch 'main' into source_embedding
21
Dockerfile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
git \
|
||||||
|
python3 \
|
||||||
|
pip
|
||||||
|
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
EXPOSE 3306
|
||||||
|
EXPOSE 8000
|
||||||
|
|
||||||
|
CMD ["python", "pilot/server/vicuna_server.py"]
|
||||||
|
CMD ["python", "pilot/server/webserver.py"]
|
||||||
|
|
||||||
|
|
13
README.md
@ -1,15 +1,15 @@
|
|||||||
# DB-GPT
|
# DB-GPT
|
||||||
A Open Database-GPT Experiment, A fully localized project.
|
A Open Database-GPT Experiment, interact your data and environment using the local GPT, no data leaks, 100% privately, 100% security.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
一个数据库相关的GPT实验项目, 模型与数据全部本地化部署, 绝对保障数据的隐私安全。 同时此GPT项目可以直接本地部署连接到私有数据库, 进行私有数据处理。
|
一个数据库相关的GPT实验项目, 模型与数据全部本地化部署, 绝对保障数据的隐私安全。 同时此GPT项目可以直接本地部署连接到私有数据库, 进行私有数据处理。
|
||||||
|
|
||||||
[DB-GPT](https://github.com/csunny/DB-GPT) 是一个实验性的开源应用程序,它基于[FastChat](https://github.com/lm-sys/FastChat),并使用[vicuna-13b](https://huggingface.co/Tribbiani/vicuna-13b)作为基础模型。此外,此程序结合了[langchain](https://github.com/hwchase17/langchain)和[llama-index](https://github.com/jerryjliu/llama_index)基于现有知识库进行[In-Context Learning](https://arxiv.org/abs/2301.00234)来对其进行数据库相关知识的增强。它可以进行SQL生成、SQL诊断、数据库知识问答等一系列的工作。
|
[DB-GPT](https://github.com/csunny/DB-GPT) 是一个实验性的开源应用,它基于[FastChat](https://github.com/lm-sys/FastChat),并使用[vicuna-13b](https://huggingface.co/Tribbiani/vicuna-13b)作为基础模型。此外,此程序结合了[langchain](https://github.com/hwchase17/langchain)和[llama-index](https://github.com/jerryjliu/llama_index)基于现有知识库进行[In-Context Learning](https://arxiv.org/abs/2301.00234)来对其进行数据库相关知识的增强。它可以进行SQL生成、SQL诊断、数据库知识问答、数据处理等一系列的工作。
|
||||||
|
|
||||||
|
|
||||||
## 项目方案
|
## 项目方案
|
||||||
<img src="https://github.com/csunny/DB-GPT/blob/main/asserts/pilot.png" width="600" margin-left="auto" margin-right="auto" >
|
<img src="https://github.com/csunny/DB-GPT/blob/main/asserts/DB-GPT.png" width="600" margin-left="auto" margin-right="auto" >
|
||||||
|
|
||||||
[DB-GPT](https://github.com/csunny/DB-GPT) is an experimental open-source application that builds upon the [FastChat](https://github.com/lm-sys/FastChat) model and uses vicuna as its base model. Additionally, it looks like this application incorporates langchain and llama-index embedding knowledge to improve Database-QA capabilities.
|
[DB-GPT](https://github.com/csunny/DB-GPT) is an experimental open-source application that builds upon the [FastChat](https://github.com/lm-sys/FastChat) model and uses vicuna as its base model. Additionally, it looks like this application incorporates langchain and llama-index embedding knowledge to improve Database-QA capabilities.
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ conda env create -f environment.yml
|
|||||||
|
|
||||||
In this project examples, we connect mysql and run SQL-Generate. so you need install mysql local for test. recommand docker
|
In this project examples, we connect mysql and run SQL-Generate. so you need install mysql local for test. recommand docker
|
||||||
```
|
```
|
||||||
docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa123456 -dit mysql:latest
|
docker run --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=aa12345678 -dit mysql:latest
|
||||||
```
|
```
|
||||||
The password just for test, you can change this if necessary
|
The password just for test, you can change this if necessary
|
||||||
|
|
||||||
@ -76,6 +76,9 @@ python llmserver.py
|
|||||||
python webserver.py
|
python webserver.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
4. 基于阿里云部署指南
|
||||||
|
[阿里云部署指南](https://open.oceanbase.com/blog/3278046208)
|
||||||
|
|
||||||
# Featurs
|
# Featurs
|
||||||
- SQL-Generate
|
- SQL-Generate
|
||||||
- Database-QA Based Knowledge
|
- Database-QA Based Knowledge
|
||||||
@ -83,6 +86,8 @@ python webserver.py
|
|||||||
|
|
||||||
总的来说,它是一个用于数据库的复杂且创新的AI工具。如果您对如何在工作中使用或实施DB-GPT有任何具体问题,请联系我, 我会尽力提供帮助, 同时也欢迎大家参与到项目建设中, 做一些有趣的事情。
|
总的来说,它是一个用于数据库的复杂且创新的AI工具。如果您对如何在工作中使用或实施DB-GPT有任何具体问题,请联系我, 我会尽力提供帮助, 同时也欢迎大家参与到项目建设中, 做一些有趣的事情。
|
||||||
|
|
||||||
|
<img src="https://github.com/csunny/DB-GPT/blob/main/asserts/wechat.jpg" width="400" margin-left="auto" margin-right="auto" >
|
||||||
|
|
||||||
# Contribute
|
# Contribute
|
||||||
[Contribute](https://github.com/csunny/DB-GPT/blob/main/CONTRIBUTING)
|
[Contribute](https://github.com/csunny/DB-GPT/blob/main/CONTRIBUTING)
|
||||||
# Licence
|
# Licence
|
||||||
|
19
SECURITY.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Security Policy
|
||||||
|
|
||||||
|
## Supported Versions
|
||||||
|
|
||||||
|
Use this section to tell people about which versions of your project are
|
||||||
|
currently being supported with security updates.
|
||||||
|
|
||||||
|
| Version | Supported |
|
||||||
|
| ------- | ------------------ |
|
||||||
|
| v0.0.4 | :no new features |
|
||||||
|
| v0.0.3 | :documents QA |
|
||||||
|
| v0.0.2 | :sql generator |
|
||||||
|
| v0.0.1 | :minst runable |
|
||||||
|
|
||||||
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
|
Use this section to tell people how to report a vulnerability.
|
||||||
|
|
||||||
|
we will build somethings small.
|
BIN
asserts/DB-GPT.png
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
asserts/wechat.jpg
Normal file
After Width: | Height: | Size: 323 KiB |
BIN
assets/DB-GPT.png
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
assets/DB_QA.png
Normal file
After Width: | Height: | Size: 243 KiB |
BIN
assets/SQLGEN.png
Normal file
After Width: | Height: | Size: 297 KiB |
BIN
assets/VectorDBQA.png
Normal file
After Width: | Height: | Size: 560 KiB |
BIN
assets/exeable.png
Normal file
After Width: | Height: | Size: 277 KiB |
BIN
assets/pilot.png
Normal file
After Width: | Height: | Size: 78 KiB |
0
assets/readme.md
Normal file
BIN
assets/sql_generate.png
Normal file
After Width: | Height: | Size: 164 KiB |
BIN
assets/wechat.jpg
Normal file
After Width: | Height: | Size: 323 KiB |
BIN
assets/演示.gif
Normal file
After Width: | Height: | Size: 3.0 MiB |
14
docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
version: '3.9'
|
||||||
|
|
||||||
|
services:
|
||||||
|
db-gpt:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
image: db-gpt:latest
|
||||||
|
container_name: db-gpt
|
||||||
|
ports:
|
||||||
|
- 8000:8000
|
||||||
|
- 3306:3306
|
||||||
|
restart: unless-stopped
|
||||||
|
read-only: true
|