chore:doc ob rag use

This commit is contained in:
aries_ckt 2025-07-11 22:05:13 +08:00
parent 9be717c2ef
commit 6736bc09f3

View File

@ -1,12 +1,12 @@
# 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
First, you need to install the `dbgpt Oceanbase Vector storage` library.
First, you need to install the `dbgpt OceanBase Vector storage` library.
```bash
uv sync --all-packages \
@ -19,17 +19,17 @@ uv sync --all-packages \
### 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
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.vector]
type = "Oceanbase"
type = "oceanbase"
uri = "127.0.0.1"
port = "19530"
#username="dbgpt"