Skip to content

Commit e79c493

Browse files
authored
adding timeout value (#2857)
1 parent 0b4490a commit e79c493

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

main/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,8 @@ def get_all_config_keys():
830830
name="QDRANT_BATCH_SIZE_BYTES", default=10 * 1024 * 1024
831831
) # default 10 MB limit for batch processing
832832

833+
QDRANT_CLIENT_TIMEOUT = get_int(name="QDRANT_CLIENT_TIMEOUT", default=10)
834+
833835
# toggle to use requests (default for local) or webdriver which renders js elements
834836
EMBEDDINGS_EXTERNAL_FETCH_USE_WEBDRIVER = get_bool(
835837
"EMBEDDINGS_EXTERNAL_FETCH_USE_WEBDRIVER", default=False

vector_search/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def qdrant_client():
5252
api_key=settings.QDRANT_API_KEY,
5353
grpc_port=6334,
5454
prefer_grpc=True,
55+
timeout=settings.QDRANT_CLIENT_TIMEOUT,
5556
)
5657

5758

0 commit comments

Comments
 (0)