mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-05 19:11:52 +00:00
feat: Clickhouse Connection (#476)
1.add Clickhouse Connection ``` class ClickhouseConnect(RDBMSDatabase): """Connect Clickhouse Database fetch MetaData Args: Usage: """ ``` 2.chatdata document update 3.README support Windows
This commit is contained in:
@@ -27,6 +27,15 @@ you can execute sql script to generate data.
|
||||
|
||||

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

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

|
||||
|
||||
|
||||
|
@@ -1,10 +1,24 @@
|
||||
Chat DB FAQ
|
||||
==================================
|
||||
##### Q1: What difference between ChatData and 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.
|
||||
|
||||
##### Q2: The suitable llm model currently supported for text-to-SQL is?
|
||||
##### Q1: What difference between ChatData and 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.
|
||||
|
||||
##### Q2: The suitable llm model currently supported for text-to-SQL is?
|
||||
|
||||
Now vicunna-13b-1.5 and llama2-70b is more suitable for text-to-SQL.
|
||||
|
||||
##### Q3: How to fine-tune Text-to-SQL in DB-GPT
|
||||
##### Q3: How to fine-tune Text-to-SQL in DB-GPT
|
||||
|
||||
there is another github project for Text-to-SQL fine-tune (https://github.com/eosphoros-ai/DB-GPT-Hub)
|
||||
|
||||
##### Q4: chatdata with clickhouse clickhouse-sqlalchemy 0.2.4 requires sqlalchemy<1.5,>=1.4.24, but you have sqlalchemy 2.0.20 which is incompatible
|
||||
|
||||
Just set sqlalchemy<1.5,>=1.4.24
|
||||
|
||||
```commandline
|
||||
pip install clickhouse-driver
|
||||
pip install sqlalchemy==1.4.24
|
||||
```
|
Reference in New Issue
Block a user