Skip to content
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] 自定义embedding模型为智谱清言,但是依旧无法进行向量化 #4486

Closed
CCMAYNOTXX opened this issue Oct 25, 2024 · 8 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@CCMAYNOTXX
Copy link

📦 Environment

Docker

📌 Version

1.23,0

💻 Operating System

Other Linux

🌐 Browser

Edge

🐛 Bug Description

由于deepbricks的API不支持embedding,我按照issue方法使用智谱清言模型,但是依旧无法进行向量化,openrouter里也没有可用的embedding模型
微信图片编辑_20241025232255
微信图片_20241025232754

📷 Recurrence Steps

centos,docker部署

🚦 Expected Behavior

请求一个可以正常使用知识库的方法,或者其他更靠谱的api提供商

📝 Additional Information

No response

@CCMAYNOTXX CCMAYNOTXX added the 🐛 Bug Something isn't working | 缺陷 label Oct 25, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Oct 25, 2024
@lobehubbot
Copy link
Member

👀 @CCMAYNOTXX

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Oct 25, 2024

Hello @CCMAYNOTXX! I'm here to help you with any bugs, questions, or contributions. Let's work together to solve the issue you're facing.

The issue you're experiencing seems to be related to the integration of the Zhipu AI model for embeddings within the lobe-chat framework. Here are a few steps you can take to troubleshoot and potentially resolve the problem:

  1. Check Configuration: Ensure that the configuration for the Zhipu AI model is correctly set up in your environment variables or configuration files. Verify that all necessary API keys and endpoints are correctly specified.

  2. API Endpoint: The 404 error suggests that the API endpoint might be incorrect. Double-check the endpoint URL for the Zhipu AI model to ensure it is accurate and accessible.

  3. Provider Configuration: Make sure that the provider settings in your configuration file are correctly pointing to Zhipu AI and not defaulting to another provider like OpenAI, which seems to be mentioned in the error message.

  4. Logs and Debugging: Review the logs for any additional error messages or stack traces that might provide more context on the issue. This can help identify if the problem is with the request format or the provider configuration.

  5. Alternative Providers: If the Zhipu AI model continues to be problematic, consider testing with other supported AI providers to see if they meet your needs for embeddings.

If these steps do not resolve the issue, you may need to consult the documentation for the Zhipu AI model or reach out to their support for further assistance.

To continue talking to Dosu, mention @dosu.

@SpeedupMaster
Copy link
Contributor

等这个 #4370 PR吧,API 我现在也用的是这两家。embedding API我用的头顶冒火

@lobehubbot
Copy link
Member

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


Wait for this #4370 PR, I am also using these two APIs now. The embedding API I use [Head of Fire] (https://burn.hair/)

@LovelyGuYiMeng
Copy link
Contributor

LovelyGuYiMeng commented Oct 26, 2024

目前没有自定义embedding模型的方式,issues中的方法是不正确的
未来会更新自定义embedding模型的方式

@lobehubbot
Copy link
Member

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


There is currently no way to customize the embedding model, and the method in issues is incorrect.

@arvinxx
Copy link
Contributor

arvinxx commented Oct 29, 2024

duplicate of #3785

@arvinxx arvinxx closed this as completed Oct 29, 2024
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Oct 29, 2024
@lobehubbot
Copy link
Member

@CCMAYNOTXX

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Archived in project
Development

No branches or pull requests

5 participants