diff --git a/api/.env.example b/api/.env.example index 5681c7f800..4d8f6f0d04 100644 --- a/api/.env.example +++ b/api/.env.example @@ -65,6 +65,7 @@ WEAVIATE_BATCH_SIZE=100 # Qdrant configuration, use `http://localhost:6333` for local mode or `https://your-qdrant-cluster-url.qdrant.io` for remote mode QDRANT_URL=http://localhost:6333 QDRANT_API_KEY=difyai123456 +QDRANT_CLIENT_TIMEOUT=20 # Milvus configuration MILVUS_HOST=127.0.0.1 diff --git a/api/config.py b/api/config.py index 1b65bce2aa..77824d064e 100644 --- a/api/config.py +++ b/api/config.py @@ -36,6 +36,7 @@ DEFAULTS = { 'SENTRY_PROFILES_SAMPLE_RATE': 1.0, 'WEAVIATE_GRPC_ENABLED': 'True', 'WEAVIATE_BATCH_SIZE': 100, + 'QDRANT_CLIENT_TIMEOUT': 20, 'CELERY_BACKEND': 'database', 'LOG_LEVEL': 'INFO', 'HOSTED_OPENAI_QUOTA_LIMIT': 200, diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index ce8480deb1..d7b6df9283 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -92,6 +92,8 @@ services: QDRANT_URL: http://qdrant:6333 # The Qdrant API key. QDRANT_API_KEY: difyai123456 + # The Qdrant clinet timeout setting. + QDRANT_CLIENT_TIMEOUT: 20 # Milvus configuration Only available when VECTOR_STORE is `milvus`. # The milvus host. MILVUS_HOST: 127.0.0.1 @@ -170,6 +172,8 @@ services: QDRANT_URL: http://qdrant:6333 # The Qdrant API key. QDRANT_API_KEY: difyai123456 + # The Qdrant clinet timeout setting. + QDRANT_CLIENT_TIMEOUT: 20 # Milvus configuration Only available when VECTOR_STORE is `milvus`. # The milvus host. MILVUS_HOST: 127.0.0.1