Closed LeoQuote closed 5 days ago
To resolve the validation error requiring TIDB_VECTOR_HOST
when trying to use the Tencent vector database with Dify version 0.6.15, ensure that the configuration for the Tencent vector database is correctly set in your .env
file. Here is an example configuration:
# Vector database configuration
VECTOR_STORE=tencent
# Tencent vector database configuration
TENCENT_VECTOR_DB_URL=http://10.1.10.34
TENCENT_VECTOR_DB_API_KEY=dify
TENCENT_VECTOR_DB_TIMEOUT=30
TENCENT_VECTOR_DB_USERNAME=dify
TENCENT_VECTOR_DB_PASSWORD=dify
TENCENT_VECTOR_DB_SHARD=1
TENCENT_VECTOR_DB_REPLICAS=2
Make sure to set the VECTOR_STORE
variable to tencent
and provide the necessary configuration parameters for the Tencent vector database. This should bypass the need for TIDB_VECTOR_HOST
and other TiDB-specific configurations [1][2].
To continue talking to Dosu, mention @dosu.
Self Checks
Dify version
0.6.15
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
run dify with
VECTOR_STORE
and set the related settings:import document in knowledge base ui.
✔️ Expected Behavior
document imported
❌ Actual Behavior