guangzhengli / ChatFiles

Document Chatbot — multiple files. Powered by GPT / Embedding.
MIT License
3.27k stars 488 forks source link

The vercel deployment is successful, but an error occurs when uploading the file: save embedding failed`. #88

Closed alistaitsacle closed 1 year ago

alistaitsacle commented 1 year ago

The vercel deployment is successful, but an error occurs when uploading the file: save embedding failed`.

guangzhengli commented 1 year ago

Hi. Can you provide more detailed logs found in Vercel logs after you upload the file?

chen198328 commented 1 year ago

beginning embedding handler Error: Error inserting: unsupported Unicode escape sequence 400 Bad Request at SupabaseVectorStore.addVectors (file:///var/task/node_modules/langchain/dist/vectorstores/supabase.js:52:23) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async saveEmbeddings (/var/task/.next/server/chunks/248.js:92:9) at async handler (/var/task/.next/server/pages/api/embedding.js:112:9) at async Object.apiResolver (/var/task/node_modules/next/dist/server/api-utils/node.js:372:9) at async NextNodeServer.runApi (/var/task/node_modules/next/dist/server/next-server.js:514:9) at async Object.fn (/var/task/node_modules/next/dist/server/next-server.js:828:35) at async Router.execute (/var/task/node_modules/next/dist/server/router.js:243:32) at async NextNodeServer.runImpl (/var/task/node_modules/next/dist/server/base-server.js:432:29) at async NextNodeServer.handleRequestImpl (/var/task/node_modules/next/dist/server/base-server.js:375:20)

guangzhengli commented 1 year ago

This may be due to errors caused by characters in the uploaded file that are not supported by langchain or supabase.