Closed lijingrs closed 1 month ago
What is the exact problem here?
Are you saying that this _chunked
function doesn't work properly if the given set of points is smaller than the chunk size? If so, could you provide an reproducible example for this.
What is the exact problem here?
Are you saying that this
_chunked
function doesn't work properly if the given set of points is smaller than the chunk size? If so, could you provide an reproducible example for this.
let upsert_points = UpsertPointsBuilder::new( text_collection_name.to_string(), text_point_structs.clone(), ); let _text_result = qdrant_client.upsert_points_chunked(upsert_points,300).await; Executing this code will throw an exception when the length of upsert_points is less than 300.
let points = std::mem::take(&mut request.points);
The implementation of this code snippet looks problematic.
You're totally right. Thank you for diving into it. I'll make sure to release a patch shortly.
We've fixed this in the 1.11.1 patch release, which you can find here: https://github.com/qdrant/rust-client/releases/tag/v1.11.1
Thanks again for the report!