Configure DB-GPT with OceanBase Vector storage so a RAG application can persist embeddings, retrieve document chunks, and run through a local webserver.
What you will build
This guide sets up DB-GPT to use OceanBase Vector as the vector storage layer for a RAG application. The shape is simple: DB-GPT parses documents, creates embeddings, persists vector data in OceanBase, retrieves relevant chunks, and serves the app through the DB-GPT webserver.
The human version: OceanBase becomes the durable retrieval shelf. DB-GPT decides what to put on the shelf and what to pull back for a question.
OceanBase Vector RAG setup
- 1
Install DB-GPT extras
Add base, proxy model, RAG, OceanBase vector storage, and app dependencies.
Why: DB-GPT integrations are packaged as optional extras.
- 2
Prepare OceanBase Vector
Run or connect to the OceanBase Vector service.
Why: Retrieval cannot work until the storage endpoint exists.
- 3
Write storage config
Point DB-GPT at host, port, and credentials.
Why: The app should know exactly which retrieval backend it is using.
- 4
Start DB-GPT
Launch the webserver with the config file.
Why: The server owns document ingestion and chat flows.
- 5
Index documents
Upload or load documents into the knowledge base.
Why: The RAG system needs parsed chunks and embeddings before chat.
- 6
Verify retrieval
Ask questions with known answers and inspect returned context.
Why: Storage success is not the same as answer quality.