Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update chunkedUpsert.ts #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Dec 3, 2023

  1. Update chunkedUpsert.ts

    The chunkedUpsert function is designed to split an array of PineconeRecord vectors into smaller chunks and upsert (insert or update) each chunk into a Pinecone index. It uses the sliceIntoChunks helper function to create the chunks based on the specified chunkSize.
    
    However, there is a bug in the chunkedUpsert function. Inside the map callback, it should be upserting the chunk rather than the entire vectors array. This is likely the reason why the request size is exceeding the limit, as it's attempting to upsert the entire array of vectors in each iteration instead of just the chunk.
    Yackadaisical committed Dec 3, 2023
    Configuration menu
    Copy the full SHA
    37714fc View commit details
    Browse the repository at this point in the history