mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-26 05:23:37 +00:00
Merge branch 'dev' of https://github.com/csunny/DB-GPT into dev
This commit is contained in:
commit
917cf37e9f
2
.gitignore
vendored
2
.gitignore
vendored
@ -129,3 +129,5 @@ dmypy.json
|
|||||||
|
|
||||||
# Pyre type checker
|
# Pyre type checker
|
||||||
.pyre/
|
.pyre/
|
||||||
|
.DS_Store
|
||||||
|
logs
|
18
README.md
18
README.md
@ -3,10 +3,24 @@ A Open Database-GPT Experiment
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
DB-GPT is an experimental open-source application that builds upon the 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 is an experimental open-source application that builds upon the 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.
|
||||||
|
|
||||||
Overall, it appears to be a sophisticated and innovative tool for working with databases. If you have any specific questions about how to use or implement DB-GPT in your work, please let me know and I'll do my best to assist you.
|
Overall, it appears to be a sophisticated and innovative tool for working with databases. If you have any specific questions about how to use or implement DB-GPT in your work, please let me know and I'll do my best to assist you.
|
||||||
|
|
||||||
|
Run on an RTX 4090 GPU (The origin mov not sped up!, [YouTube地址](https://www.youtube.com/watch?v=1PWI6F89LPo))
|
||||||
|
- 运行演示
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- SQL生成示例
|
||||||
|
|
||||||
|
<img src="https://github.com/csunny/DB-GPT/blob/dev/asserts/sql_generate.png" width="600" margin-left="auto" margin-right="auto" >
|
||||||
|
|
||||||
|
- 数据库QA示例
|
||||||
|
|
||||||
|
<img src="https://github.com/csunny/DB-GPT/blob/dev/asserts/DB_QA.png" margin-left="auto" margin-right="auto" width="600">
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
1. Run model server
|
1. Run model server
|
||||||
```
|
```
|
||||||
@ -16,10 +30,10 @@ python vicuna_server.py
|
|||||||
|
|
||||||
2. Run gradio webui
|
2. Run gradio webui
|
||||||
```
|
```
|
||||||
python app.py
|
python webserver.py
|
||||||
```
|
```
|
||||||
|
|
||||||
# Featurs
|
# Featurs
|
||||||
- SQL-Generate
|
- SQL-Generate
|
||||||
- Database-QA Based Knowledge
|
- Database-QA Based Knowledge
|
||||||
- SQL-diagnosis
|
- SQL-diagnosis
|
||||||
|
BIN
asserts/DB_QA.png
Normal file
BIN
asserts/DB_QA.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 243 KiB |
BIN
asserts/sql_generate.png
Normal file
BIN
asserts/sql_generate.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 164 KiB |
BIN
asserts/演示.gif
Normal file
BIN
asserts/演示.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 MiB |
@ -89,8 +89,8 @@ class Conversation:
|
|||||||
|
|
||||||
|
|
||||||
conv_one_shot = Conversation(
|
conv_one_shot = Conversation(
|
||||||
system="A chat between a curious human and an artificial intelligence assistant."
|
system="A chat between a curious human and an artificial intelligence assistant, who very familiar with database related knowledge. "
|
||||||
"The assistant gives helpful, detailed and polite answers to the human's questions. ",
|
"The assistant gives helpful, detailed, professional and polite answers to the human's questions. ",
|
||||||
roles=("Human", "Assistant"),
|
roles=("Human", "Assistant"),
|
||||||
messages=(
|
messages=(
|
||||||
(
|
(
|
||||||
@ -123,8 +123,8 @@ conv_one_shot = Conversation(
|
|||||||
)
|
)
|
||||||
|
|
||||||
conv_vicuna_v1 = Conversation(
|
conv_vicuna_v1 = Conversation(
|
||||||
system = "A chat between a curious user and an artificial intelligence assistant. "
|
system = "A chat between a curious user and an artificial intelligence assistant. who very familiar with database related knowledge. "
|
||||||
"The assistant gives helpful, detailed and polite answers to the user's questions. ",
|
"The assistant gives helpful, detailed, professional and polite answers to the user's questions. ",
|
||||||
roles=("USER", "ASSISTANT"),
|
roles=("USER", "ASSISTANT"),
|
||||||
messages=(),
|
messages=(),
|
||||||
offset=0,
|
offset=0,
|
||||||
|
Loading…
Reference in New Issue
Block a user