guangzhengli / ChatFiles

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

本地运行,supabase创建成功,上传example下的txt文档,提示: Save embedding failed`. #90

Closed SamXP2004 closed 1 year ago

SamXP2004 commented 1 year ago

like this beginning embedding handler open file :public/uploads/8e6a2efa-6587-4ef1-93c3-04939472cf64.txt Error: Error inserting: relation "public.documents" does not exist 404 Not Found at SupabaseVectorStore.addVectors (file:///Users/samxp2021/GitHub/ChatFiles/node_modules/.pnpm/langchain@0.0.94_khulmwsx2qrv6bxkau4r7uqvhi/node_modules/langchain/dist/vectorstores/supabase.js:52:23) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async saveEmbeddings (webpack-internal:///(api)/./utils/vector.ts:52:9) at async handler (webpack-internal:///(api)/./pages/api/embedding.ts:33:9) 。。。 。。。

是不是 supabase要初始化先?

SamXP2004 commented 1 year ago

漏看了一步数据库初始化,已搞定。