lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
42.08k stars 9.49k forks source link

[Bug] #3636

Closed learnbio closed 1 month ago

learnbio commented 1 month ago

📦 Environment

Vercel

📌 Version

v1.13.2

💻 Operating System

Windows

🌐 Browser

Edge

🐛 Bug Description

上传PDF文档后向量化失败。vercel日志报错如下 embeddingChunks error error: expected 1024 dimensions, not 1536 at /var/task/.next/server/chunks/71439.js:9:28956 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async concurrency (/var/task/.next/server/app/trpc/async/[trpc]/route.js:1:5573) at async /var/task/.next/server/chunks/6476.js:63:290984 { length: 94, severity: 'ERROR', code: '22000', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'vector.c', line: '77', routine: 'CheckExpectedDim' }

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

lobehubbot commented 1 month ago

👀 @learnbio

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

arvinxx commented 1 month ago

你的模型不是 text-embedding-3 系列的吧,换成3系列的就好了。

lobehubbot commented 1 month ago

✅ @learnbio

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Your model is not of the text-embedding-3 series. Just change it to the 3 series.

learnbio commented 1 month ago

你的模型不是 text-embedding-3 系列的吧,换成3系列的就好了。

向量模型为默认,中转站后台显示使用了text-embedding-3-small。 image

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Your model is not of the text-embedding-3 series. Just change it to the 3 series.

The vector model is the default, and text-embedding-3-small is used for the transfer station background display. image