Uploading Vector data to Qdrant Server #444
Replies: 9 comments
-
Hi @harshakhmk You can either construct batches on your own and use upsert API or you can rely on qdrant-client and use methods like upload_records or upload_collection
|
Beta Was this translation helpful? Give feedback.
-
Hi @harshakhmk, does it help? |
Beta Was this translation helpful? Give feedback.
-
Hi, I tried upload _records and I was getting pydantic validation errors
|
Beta Was this translation helpful? Give feedback.
-
Could you share a code sample to reproduce? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
it should be a dict, but you are uploading a numpy array there you need to do something like btw, are you sure you want to store vector in the payload? |
Beta Was this translation helpful? Give feedback.
-
Yes, that was the issue, I tried other way to insert data using upsert function, since it cannot insert all vectors at once, I had wrapped insertion of data to server inside a function and called this function for each vector, I had observed huge difference in adding whole collection to database with those two approaches |
Beta Was this translation helpful? Give feedback.
-
But, what will be the batch size with upload_records as we are not explicitly defined |
Beta Was this translation helpful? Give feedback.
-
To speed up things even more you can set One thing to be aware of while using If you don't provide ids explicitly, it will use consequent int ids (like If you call it twice - then on the second time it will overwrite the points which were written before To sum up: if you provide ids explicitly - never mind, if you don't provide ids explicitly - be careful while calling to |
Beta Was this translation helpful? Give feedback.
-
I am using Qdrant Client to upload an array of vector data where each vector length is 785, how to add this bulk of vectors to Qdrant Server using Qdrant Client python package
Beta Was this translation helpful? Give feedback.
All reactions