Got ResponseHandlingException: timed out when upserting data to Qdrant #718
Unanswered
kennywongck
asked this question in
Q&A
Replies: 1 comment
|
Likely not a client bug. Upserting one point at a time is slow and easy to time out. Also with port 443 you usually want Try something like this: client = QdrantClient(
url=endpoint,
api_key=api_key,
https=True,
prefer_grpc=True,
timeout=120,
)
points = [
models.PointStruct(
id=record["record_id"],
vector=record["vector"],
payload=record,
)
for record in record_list
]
for i in range(0, len(points), 256):
client.upsert(
collection_name=collection_name,
points=points[i:i+256],
)Batching usually fixes it. If it still times out, raise the timeout or use a smaller batch. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I got an error when I try to upsert data to Qdrant, is this a bug of the qdrant-client or issue with my code?
I set the port for qdrant as 443
python version 3.11
qdrant-client==1.10.1
All reactions