From a0a9461f791f39e9202273b62ccf4cf16002193b Mon Sep 17 00:00:00 2001 From: Jyong <76649700+JohnJyong@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:58:47 +0800 Subject: [PATCH] Fix/add qdrant timeout default value (#1901) Co-authored-by: jyong --- api/.env.example | 1 + api/config.py | 1 + docker/docker-compose.yaml | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/api/.env.example b/api/.env.example index 5681c7f800bfb8..4d8f6f0d04b8e2 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 1b65bce2aaa743..77824d064eca09 100644 --- a/api/config.py +++ b/api/config.py @@ -36,6 +36,7 @@ '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 ce8480deb11e1b..d7b6df9283851d 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