Mohsen Mahmoodzadeh
Mohsen Mahmoodzadeh

Reputation: 180

The differences between Qdrant upload_records and upsert methods?

I am new to the Qdrant vector database and its literature. As I understand, for uploading data to the Qdrant client database, we use uploading methods such as upsert and upload_records but I did not get when should use each one.

Can anyone clarify the usage and any other recommendations about them?

Upvotes: 2

Views: 2402

Answers (1)

Tim Visée
Tim Visée

Reputation: 3258

This is specific to the Qdrant Python client, other clients don't have the upload_records function.

upsert() matches the point upsertion endpoint in the Qdrant API1. It allows you to upload a batch of points, like other clients.

upload_records() is a helper function with a similar purpose. Instead of giving it a batch of points, you can provide any Iterable holding Records. It is easier to work with and automatically takes care of batching for you.

enter image description here Source: https://python-client.qdrant.tech/qdrant_client.client_base.html?highlight=upload_records#qdrant_client.client_base.QdrantBase.upload_records


1 https://qdrant.tech/documentation/concepts/points/#upload-points

Upvotes: 2

Related Questions