doc:faq and kbqa document

This commit is contained in:
aries_ckt
2023-08-18 15:07:01 +08:00
parent 70a091364f
commit 0ff6fc880d
9 changed files with 233 additions and 157 deletions

View File

@@ -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

View File

@@ -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
```

View File

@@ -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