Error reported when using knowledge base embedding model text-embedding-3-large
Self Checks
- [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [X] Please do not modify this template :) and fill in all the required fields.
Dify version
0.8.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
An error is reported when using the knowledge base embedding model text-embedding-3-large, but it actually has a token, and switching to other embedding models does not report an error.
✔️ Expected Behavior
Find the reason why the index fails, but it will be fine if you change the model
❌ Actual Behavior
text-embedding-3-large model error
I found some similar discussions and issues that might be relevant to the error you're encountering:
- [openai] Error: argument should be a bytes-like object or ASCII string, not 'list'General Discussion (Open)
- dify reported an error when using openai recall test to be a bytes-like object or ASCll string, not 'list'Help (Open)
- Error occurred when adding Doubao TEXT Embedding model (Closed)
The closed issue was resolved by a pull request: PR 4431 [1][2][3].
For the text-embedding-3-large model, ensure that the input requirements are met:
- Context Size: 8191
- Max Chunks: 32
- Texts: List of strings, capable of batch processing
- User: Optional unique identifier of the user [4][5].
Additionally, Dify has specific error handling mechanisms for embedding models, including credential validation, connection errors, server errors, authentication errors, rate limiting, and bad request errors. These mechanisms ensure that various error conditions are appropriately handled and communicated [6][7].
You might want to check if the input data being passed to the model meets these requirements and if the error handling mechanisms are being triggered correctly. If the issue persists, consider looking into the discussions and the closed issue for more context and potential solutions.
To continue talking to Dosu, mention @dosu.
Is is an official key from OpenAI?
这是来自 OpenAI 的官方密钥吗?
No, it’s the secret key provided by the transfer platform
This is because the third party OpenAI api does not return the correct response in base64. We force it on our side for a better performance.
See duplicated question here. https://github.com/langgenius/dify/issues/7351
There is still no compatibility issue with dify from version 0.6 to version 0.8