You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the following lines then go on to use a mix of [i : i + batch_size] and [i:i_end] to create batches:
# get batch of texts and idslines_batch=texts[i : i+batch_size]
# create ids if not providedifids:
ids_batch=ids[i : i+batch_size]
else:
ids_batch= [str(uuid.uuid4()) forninrange(i, i_end)]
Fortunately, there is a zip function a few lines down that cuts the potentially longer chunks, preventing an error from being raised — yet I don't think think [i: i+batch_size] should be maintained as it's confusing and not explicit
Current implementation of pinecone vec db finds the batches using:
link
But the following lines then go on to use a mix of
[i : i + batch_size]
and[i:i_end]
to create batches:Fortunately, there is a
zip
function a few lines down that cuts the potentially longer chunks, preventing an error from being raised — yet I don't think think[i: i+batch_size]
should be maintained as it's confusing and not explicitRaised a PR here #907
The text was updated successfully, but these errors were encountered: