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

Added document chunking #61

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Conversation

fmhall
Copy link
Contributor

@fmhall fmhall commented Sep 11, 2023

When uploading a corpus of documents with more than 8191 tokens, the Pinecone API returns an error.

This PR chunks the documents and sends them in a list.

@ykhli ykhli merged commit 0f659c1 into a16z-infra:main Sep 11, 2023
1 check passed
@fmhall fmhall deleted the mason/support-larger-corpus branch September 11, 2023 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants