Skip to content

Commit

Permalink
docs: add batching recommendation to readme (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
joein committed Mar 4, 2024
1 parent da91181 commit 5ba8d99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ import numpy as np
from qdrant_client.models import PointStruct

vectors = np.random.rand(100, 100)
# NOTE: consider splitting the data into chunks to avoid hitting the server's payload size limit
# or use `upload_collection` or `upload_points` methods which handle this for you
# WARNING: uploading points one-by-one is not recommended due to requests overhead
client.upsert(
collection_name="my_collection",
points=[
Expand Down

0 comments on commit 5ba8d99

Please sign in to comment.