-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
An error message is displayed after the knowledge base file is uploaded #2772
Comments
Hey there @joginwen! Great to see you around again. Hope you're doing well! Thank you for providing detailed information about the issue you're experiencing. Based on the error logs you've shared, it seems like the error is occurring during the text embedding process. Specifically, the error message This error might be due to the format or content of the uploaded .md file. It's possible that the text embedding function is encountering a list where it expects a string, causing the TypeError. As a first step, I would recommend checking the content of the .md file you're trying to upload. Make sure that it doesn't contain any unusual formatting or data types that might be interpreted as a list during processing. If the issue persists, you might want to try the solutions suggested in similar issues:
Please try these steps and let us know if the issue still persists. We're here to help! Sources
|
After updating the code, I tested it again, and the same error occurred
|
Have you restarted the celery service? @joginwen |
My deployment is based on the docker compose container. After I update the main branch code, I mount the source directory to the inner container /app/api directory, replacing the inner container code docker-compose fragment
docker-compose down Then docker-compose up -d completes the restart and after testing, errors still appear. |
May I ask if you have resolved it? |
No, I upgraded to version 0.5.9 and still got the same error. |
i have the same error and dont know how to fix it |
Upgrade to 0.5.9, the following error is reported when the knowledge base upload document
|
Self Checks
Dify version
0.5.8
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Error message screenshot:
docker-worker-1 container error logs
✔️ Expected Behavior
The knowledge base can be used normally
❌ Actual Behavior
The uploaded document cannot be processed properly
The text was updated successfully, but these errors were encountered: