docs(datasource): integration oracle doc (#2701)

# Description

Add Oracle datasource documentation examples and update duplicate
command of start webserver

# How Has This Been Tested?


# Snapshots:

Include snapshots for easier review.

# Checklist:

- [ ] My code follows the style guidelines of this project
- [x] I have already rebased the commits and make the commit message
conform to the project standard.
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] Any dependent changes have been merged and published in downstream
modules
This commit is contained in:
alanchen 2025-05-16 19:01:23 +08:00 committed by GitHub
parent 11c2ec1fc5
commit c655f55ab4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 56 additions and 14 deletions

View File

@ -10,16 +10,16 @@ Integration Packages
| Provider | Supported | Install Packages |
|-------------|-----------|----------------------|
| MySQL | ✅ | --extra datasource_mysql |
| OceanBase | ✅ | |
| ClickHouse | ✅ | --extra datasource_clickhouse |
| Hive | ✅ | --extra datasource_hive |
| MSSQL | ✅ | --extra datasource_mssql |
| PostgreSQL | ✅ | --extra datasource_postgres |
| ApacheDoris | ✅ | |
| StarRocks | ✅ | --extra datasource_starroks |
| Spark | ✅ | --extra datasource_spark |
| Oracle | ❌ | |
| MySQL | ✅ | --extra datasource_mysql |
| OceanBase | ✅ | |
| ClickHouse | ✅ | --extra datasource_clickhouse |
| Hive | ✅ | --extra datasource_hive |
| MSSQL | ✅ | --extra datasource_mssql |
| PostgreSQL | ✅ | --extra datasource_postgres |
| ApacheDoris | ✅ | |
| StarRocks | ✅ | --extra datasource_starroks |
| Spark | ✅ | --extra datasource_spark |
| Oracle | ✅ | --extra datasource_oracle |
# RAG Storage Providers

View File

@ -21,7 +21,7 @@ Prepare ClickHouse database service, reference-[ClickHouse Installation](https:/
Then run the following command to start the webserver:
```bash
uv run python packages/dbgpt-app/src/dbgpt_app/dbgpt_server.py --config configs/dbgpt-proxy-openai.toml
uv run dbgpt start webserver --config configs/dbgpt-proxy-openai.toml
```
Optionally, you can also use the following command to start the webserver:

View File

@ -25,7 +25,7 @@ Prepare DuckDB database service, reference-[DuckDB Installation](https://duckdb.
Then run the following command to start the webserver:
```bash
uv run python packages/dbgpt-app/src/dbgpt_app/dbgpt_server.py --config configs/dbgpt-proxy-openai.toml
uv run dbgpt start webserver --config configs/dbgpt-proxy-openai.toml
```

View File

@ -23,7 +23,7 @@ Prepare MSSQL database service, reference-[MSSQL Installation](https://docs.micr
Then run the following command to start the webserver:
```bash
uv run python packages/dbgpt-app/src/dbgpt_app/dbgpt_server.py --config configs/dbgpt-proxy-openai.toml
uv run dbgpt start webserver --config configs/dbgpt-proxy-openai.toml
```
Optionally, you can also use the following command to start the webserver:

View File

@ -0,0 +1,38 @@
# Oracle
In this example, we will show how to use the Oracle as in DB-GPT Datasource. Using Oracle to implement Datasource can, to some extent, alleviate the uncertainty and interpretability issues brought about by vector database retrieval.
### Install Dependencies
First, you need to install the `dbgpt oracle datasource` library.
```bash
uv sync --all-packages \
--extra "base" \
--extra "datasource_oracle" \
--extra "rag" \
--extra "storage_chromadb" \
--extra "dbgpts"
```
### Prepare Oracle
Prepare Oracle database service, reference-[Oracle Installation](https://docs.oracle.com/en/database/oracle/oracle-database/index.html).
Then run the following command to start the webserver:
```bash
uv run dbgpt start webserver --config configs/dbgpt-proxy-openai.toml
```
Optionally, you can also use the following command to start the webserver:
```bash
uv run python packages/dbgpt-app/src/dbgpt_app/dbgpt_server.py --config configs/dbgpt-proxy-openai.toml
```
### Oracle Configuration
<p align="left">
<img src={'https://github.com/user-attachments/assets/c285f8c3-9e99-4fab-bd39-ae34206ec54f'} width="1000px"/>
</p>

View File

@ -25,7 +25,7 @@ Prepare Postgres database service, reference-[Postgres Installation](https://www
Then run the following command to start the webserver:
```bash
uv run python packages/dbgpt-app/src/dbgpt_app/dbgpt_server.py --config configs/dbgpt-proxy-openai.toml
uv run dbgpt start webserver --config configs/dbgpt-proxy-openai.toml
```
Optionally, you can also use the following command to start the webserver:

View File

@ -93,6 +93,10 @@ const sidebars = {
type: "doc",
id: "installation/integrations/mssql_install"
},
{
type: "doc",
id: "installation/integrations/oracle_install"
},
]
},
{