KBQA FAQ
Q1: text2vec-large-chinese not found
make sure you have download text2vec-large-chinese embedding model in right way
centos:yum install git-lfs
ubuntu:apt-get install git-lfs -y
macos:brew install git-lfs
cd models
git lfs clone https://huggingface.co/GanymedeNil/text2vec-large-chinese
Q2:How to change Vector DB Type in DB-GPT.
Update .env file and set VECTOR_STORE_TYPE.
DB-GPT currently support Chroma(Default), Milvus(>2.1), Weaviate, OceanBase vector database. If you want to change vector db, Update your .env, set your vector store type, VECTOR_STORE_TYPE=Chroma (now only support Chroma and Milvus(>2.1), if you set Milvus, please set MILVUS_URL and MILVUS_PORT).
If you want to use OceanBase, please first start a docker container via the following command:
docker run --name=ob433 -e MODE=slim -p 2881:2881 -d quay.io/oceanbase/oceanbase-ce:4.3.3.0-100000142024101215
Download the partner package:
pip install --upgrade --quiet pyobvector
Check the connection to OceanBase and set the memory usage ratio for vector data:
from pyobvector import ObVecClient
tmp_client = ObVecClient()
tmp_client.perform_raw_text_sql(
"ALTER SYSTEM ob_vector_memory_limit_percentage = 30"
)