mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-06 03:20:41 +00:00
doc:chatdata and chatdb
This commit is contained in:
@@ -2,7 +2,7 @@ ChatData & ChatDB
|
||||
==================================
|
||||
ChatData generates SQL from natural language and executes it. ChatDB involves conversing with metadata from the
|
||||
Database, including metadata about databases, tables, and
|
||||
fields.
|
||||
fields.
|
||||
|
||||
### 1.Choose Datasource
|
||||
|
||||
@@ -17,15 +17,15 @@ you can execute sql script to generate data.
|
||||
|
||||
#### 1.1 Datasource management
|
||||
|
||||

|
||||

|
||||
|
||||
#### 1.2 Connection management
|
||||
|
||||

|
||||

|
||||
|
||||
#### 1.3 Add Datasource
|
||||
|
||||

|
||||

|
||||
|
||||
```{note}
|
||||
now DB-GPT support Datasource Type
|
||||
@@ -34,16 +34,22 @@ now DB-GPT support Datasource Type
|
||||
* Sqlite
|
||||
* DuckDB
|
||||
* Clickhouse
|
||||
* Mssql
|
||||
```
|
||||
|
||||
### 2.ChatData
|
||||
|
||||
##### Preview Mode
|
||||
After successfully setting up the data source, you can start conversing with the database. You can ask it to generate
|
||||
SQL for you or inquire about relevant information on the database's metadata.
|
||||

|
||||

|
||||
|
||||
##### Editor Mode
|
||||
In Editor Mode, you can edit your sql and execute it.
|
||||

|
||||
|
||||
|
||||
### 3.ChatDB
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
|
@@ -2,7 +2,7 @@ KBQA
|
||||
==================================
|
||||
DB-GPT supports a knowledge question-answering module, which aims to create an intelligent expert in the field of databases and provide professional knowledge-based answers to database practitioners.
|
||||
|
||||

|
||||

|
||||
|
||||
## KBQA abilities
|
||||
|
||||
@@ -32,7 +32,7 @@ execute DBGPT/assets/schema/knowledge_management.sql
|
||||
|
||||
#### 1.Create Knowledge Space
|
||||
If you are using Knowledge Space for the first time, you need to create a Knowledge Space and set your name, owner, description.
|
||||

|
||||

|
||||
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@ If you are using Knowledge Space for the first time, you need to create a Knowle
|
||||
DB-GPT now support Multi Knowledge Source, including Text, WebUrl, and Document(PDF, Markdown, Word, PPT, HTML and CSV).
|
||||
After successfully uploading a document for translation, the backend system will automatically read and split and chunk the document, and then import it into the vector database. Alternatively, you can manually synchronize the document. You can also click on details to view the specific document slicing content.
|
||||
##### 2.1 Choose Knowledge Type:
|
||||

|
||||

|
||||
|
||||
##### 2.2 Upload Document:
|
||||

|
||||

|
||||
|
||||
|
||||
#### 3.Chat With Knowledge
|
||||

|
||||

|
||||
|
||||
#### 4.Adjust Space arguments
|
||||
Each knowledge space supports argument customization, including the relevant arguments for vector retrieval and the arguments for knowledge question-answering prompts.
|
||||
##### 4.1 Embedding
|
||||
Embedding Argument
|
||||

|
||||

|
||||
|
||||
```{tip} Embedding arguments
|
||||
* topk:the top k vectors based on similarity score.
|
||||
@@ -66,7 +66,7 @@ Embedding Argument
|
||||
|
||||
##### 4.2 Prompt
|
||||
Prompt Argument
|
||||

|
||||

|
||||
|
||||
```{tip} Prompt arguments
|
||||
* scene:A contextual parameter used to define the setting or environment in which the prompt is being used.
|
||||
|
Reference in New Issue
Block a user