-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
[Bug] 使用gemini text-embedding-004模型对文件进行向量化失败 #5137
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Hey @curry-he, I'm here to help you with any bugs, questions, or contributions you have! Let's work together to solve this issue. The error you're encountering with the Gemini text-embedding-004 model in Lobe Chat seems to be related to a vector dimension mismatch, as indicated by the To resolve this issue, you might want to:
If these steps do not resolve the issue, you may need to delve deeper into the logs or consult additional documentation related to the model or the Lobe Chat framework. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
📦 Environment
Vercel
📌 Version
lobe-chat-database
💻 Operating System
Windows
🌐 Browser
Chrome
🐛 Bug Description
使用gemini text-embedding-004模型对文件进行向量化失败
我在one-api中将text-embedding-3-small重定向到了text-embedding-004模型,后端text-embedding-004请求成功,但是lobechat显示向量化失败,以下是对应的截图
部署在huggignface的gemini text-embedding-004请求成功截图
lobechat向量化失败截图
lobechat对应的error log
embeddingChunks error {
message: '{"length":93,"name":"error","severity":"ERROR","code":"22000","file":"vector.c","line":"72","routine":"CheckExpectedDim"}',
name: 'EmbeddingError'
}
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: