-
Notifications
You must be signed in to change notification settings - Fork 289
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
Cannot generate embeddings #44
Comments
got the same issue |
Can you double check that your local |
I'm having the same issue. My keys are correct in the local env, and on the production environment Supabase and Vercel are integrated. But pnpm run embeddings fails consistently. |
After updating supabase, same error as before when attempting a search. Sad news, the search has failed! Please try again. |
And also getting the ts compilation errors on deployment. ./lib/generate-embeddings.ts:334:36 332 | // We use checksum to determine if this page & its sections need to be regenerated
|
As of 19 Sep 2023, 00:09 UTC, Vercel has identified an Increased middleware and edge function failures in pdx1 which causes the error of "Sad news, the search has failed!" to occur. This issue doesn't seem to lie with Supabase because I logged the queries and responses in a backend Supabase table, and it seems that the queries are being sent back and forth from OpenAI just fine. As of right now (04:03 UTC), my front-end is receiving the outputs from OpenAI successfully. I'm not entirely sure what lines 333 to 337 is doing either, but I used this quick fix in my project by replacing lines 333 to 337 with the following: . if (!shouldRefresh && existingPage !== null && existingPage.checksum === checksum) {
const existingParentPage = existingPage.parentPage?.length === 1 ? existingPage.parentPage[0] : undefined; I'm not sure if this is the intended fix, but it should minimally get the project up and running in the meantime. |
@antonioglass Did you ever find a fix? upgrading the supabase-js package and got this error
|
fix this issue by upgrading supabase and node js to v20 |
Apologies, took a break before coming back to this.
These changes were made on my own forked project, so I can't be sure if it would work on this one. |
Line numbers must be mismatched on my end. If you don't mind posting this generate-embeddings.ts code, or at least a side by side of the original lines vs the corrected ones, that would be appreciated. |
Bug report
Describe the bug
Cannot generate embeddings when running
pnpm run embeddings
.To Reproduce
pnpm run embeddings
locally.Expected behavior
Successful generation of embeddings.
System information
The text was updated successfully, but these errors were encountered: