mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-01 00:03:29 +00:00
chore:doc ob rag use
This commit is contained in:
parent
9be717c2ef
commit
6736bc09f3
@ -1,12 +1,12 @@
|
|||||||
# OceanBase Vector RAG
|
# OceanBase Vector RAG
|
||||||
|
|
||||||
|
|
||||||
In this example, we will show how to use the Oceanbase Vector as in DB-GPT RAG Storage. Using a graph database to implement RAG can, to some extent, alleviate the uncertainty and interpretability issues brought about by vector database retrieval.
|
In this example, we will show how to use the OceanBase Vector as in DB-GPT RAG Storage. Using a graph database to implement RAG can, to some extent, alleviate the uncertainty and interpretability issues brought about by vector database retrieval.
|
||||||
|
|
||||||
|
|
||||||
### Install Dependencies
|
### Install Dependencies
|
||||||
|
|
||||||
First, you need to install the `dbgpt Oceanbase Vector storage` library.
|
First, you need to install the `dbgpt OceanBase Vector storage` library.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
uv sync --all-packages \
|
uv sync --all-packages \
|
||||||
@ -19,17 +19,17 @@ uv sync --all-packages \
|
|||||||
|
|
||||||
### Prepare OceanBase Vector
|
### Prepare OceanBase Vector
|
||||||
|
|
||||||
Prepare Oceanbase Vector database service, reference[Oceanbase Vector](https://open.oceanbase.com/) .
|
Prepare OceanBase Vector database service, reference[OceanBase Vector](https://open.oceanbase.com/) .
|
||||||
|
|
||||||
|
|
||||||
### OceanBase Configuration
|
### OceanBase Configuration
|
||||||
|
|
||||||
Set rag storage variables below in `configs/dbgpt-proxy-openai.toml` file, let DB-GPT know how to connect to Oceanbase Vector.
|
Set rag storage variables below in `configs/dbgpt-proxy-openai.toml` file, let DB-GPT know how to connect to OceanBase Vector.
|
||||||
|
|
||||||
```
|
```
|
||||||
[rag.storage]
|
[rag.storage]
|
||||||
[rag.storage.vector]
|
[rag.storage.vector]
|
||||||
type = "Oceanbase"
|
type = "oceanbase"
|
||||||
uri = "127.0.0.1"
|
uri = "127.0.0.1"
|
||||||
port = "19530"
|
port = "19530"
|
||||||
#username="dbgpt"
|
#username="dbgpt"
|
||||||
|
Loading…
Reference in New Issue
Block a user