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

Better error messaging #7

Open
wolfieorama opened this issue Jul 11, 2024 · 1 comment
Open

Better error messaging #7

wolfieorama opened this issue Jul 11, 2024 · 1 comment
Assignees

Comments

@wolfieorama
Copy link

wolfieorama commented Jul 11, 2024

With the free version of voyageai, const embeddings = await voyageEmbeddings.embedDocuments(pageContents); will fail with the following error:

Error during bootstrap procedure: TypeError: Cannot read properties of undefined (reading '0')
    at VoyageEmbeddings.embedDocuments (webpack-internal:///(rsc)/./node_modules/@langchain/community/dist/embeddings/voyage.js:92:46)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

May be more straight forward to message this differently and let users know that a paid account is required

@zackproser
Copy link
Collaborator

@wolfieorama Thank you for filing this! I agree with you completely, that should definitely provide a better error message.

@zackproser zackproser self-assigned this Sep 10, 2024
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

No branches or pull requests

2 participants