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

ValueError when run ingest, about submit embedding #1040

Closed
CoderSHYJ opened this issue Sep 22, 2023 · 2 comments
Closed

ValueError when run ingest, about submit embedding #1040

CoderSHYJ opened this issue Sep 22, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@CoderSHYJ
Copy link

When I run ingest.py with the example, I got
ValueError:
Cannot submit more than 166 embeddings at once.
Please submit your embeddings in batches of size
166 or less.
It seems related to the length of file, when I try some shorter text, it works.
How to fix it

@CoderSHYJ CoderSHYJ added the bug Something isn't working label Sep 22, 2023
@codespearhead
Copy link

When I run ingest.py with the example, I got ValueError: Cannot submit more than 166 embeddings at once. Please submit your embeddings in batches of size 166 or less. It seems related to the length of file, when I try some shorter text, it works. How to fix it

That seems to be a limitation of SQLite.

Try this, and it that works, please close the issue 😄

@imartinez
Copy link
Collaborator

Fixed in #999 following what @codespearhead mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants