mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-05 11:01:09 +00:00
doc:faq and kbqa document
This commit is contained in:
@@ -15,6 +15,18 @@ DB-GPT supports a knowledge question-answering module, which aims to create an i
|
||||
* Multi Vector DB
|
||||
```
|
||||
|
||||
```{note}
|
||||
If your DB type is Sqlite, there is nothing to do to build KBQA service database schema.
|
||||
|
||||
If your DB type is Mysql or other DBTYPE, you will build kbqa service database schema.
|
||||
|
||||
### Mysql
|
||||
$ mysql -h127.0.0.1 -uroot -paa12345678 < ./assets/schema/knowledge_management.sql
|
||||
|
||||
or
|
||||
|
||||
execute DBGPT/assets/schema/knowledge_management.sql
|
||||
```
|
||||
|
||||
## Steps to KBQA In DB-GPT
|
||||
|
||||
|
@@ -47,12 +47,24 @@ Set KNOWLEDGE_SEARCH_TOP_SIZE smaller or set KNOWLEDGE_CHUNK_SIZE smaller, and r
|
||||
1.shutdown dbgpt_server(ctrl c)
|
||||
|
||||
2.add column context for table knowledge_space
|
||||
|
||||
```commandline
|
||||
mysql -h127.0.0.1 -uroot -paa12345678
|
||||
```
|
||||
|
||||
3.execute sql ddl
|
||||
|
||||
```commandline
|
||||
mysql> use knowledge_management;
|
||||
mysql> ALTER TABLE knowledge_space ADD COLUMN context TEXT COMMENT "arguments context";
|
||||
```
|
||||
4.restart dbgpt serve
|
||||
|
||||
4.restart dbgpt serve
|
||||
|
||||
##### Q5:Use Mysql, how to use DB-GPT KBQA
|
||||
|
||||
build Mysql KBQA system database schema.
|
||||
|
||||
```bash
|
||||
$ mysql -h127.0.0.1 -uroot -paa12345678 < ./assets/schema/knowledge_management.sql
|
||||
```
|
@@ -2,7 +2,7 @@ Install
|
||||
==================================
|
||||
DB-GPT product is a Web application that you can chat database, chat knowledge, text2dashboard.
|
||||
|
||||
.. image:: ./assets/DB-GPT-Product.jpg
|
||||
.. image:: https://github.com/eosphoros-ai/DB-GPT/assets/13723926/13d68dd5-d052-4976-9aeb-60ae13d63d02
|
||||
|
||||
|
||||
- deploy
|
||||
|
Reference in New Issue
Block a user