Unable to automatically perform embedding processing after uploading documents using the API? #8181

Closed
opened 2026-02-21 18:24:22 -05:00 by yindo · 1 comment
Owner

Originally created by @gongshaojie12 on GitHub (Feb 12, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I can upload files normally using the create-by-file method, but I cannot automatically perform the embedding process. I can only manually click "Save and Process" in the "Segmentation Settings" of the Dify interface to perform the embedding process. How can I set it to automatically perform the embedding process after uploading?

Image

✔️ Expected Behavior

It is hoped that after uploading documents using the API, the embedding process can be automatically performed.

Actual Behavior

No response

Originally created by @gongshaojie12 on GitHub (Feb 12, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I can upload files normally using the `create-by-file` method, but I cannot automatically perform the embedding process. I can only manually click "Save and Process" in the "Segmentation Settings" of the Dify interface to perform the embedding process. How can I set it to automatically perform the embedding process after uploading? ![Image](https://github.com/user-attachments/assets/af02c134-7416-45c2-a76e-b4d0513349df) ### ✔️ Expected Behavior It is hoped that after uploading documents using the API, the embedding process can be automatically performed. ### ❌ Actual Behavior _No response_
yindo added the 👻 feat:rag label 2026-02-21 18:24:22 -05:00
yindo closed this issue 2026-02-21 18:24:22 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 12, 2025):

The issue you're experiencing with the automatic embedding process not triggering after document upload via the API might be related to configuration settings or flags that control this behavior. Unfortunately, I couldn't find specific information in the repository about a configuration or flag that enables automatic embedding after document upload.

However, the embedding process is typically managed by the EmbeddingProcess component, which uses the startQueryStatus function to check the indexing status and proceed with embedding [1]. You might want to ensure that this component is correctly set up and that there are no interruptions in its execution.

If the automatic process is not working as expected, you may need to manually trigger the embedding process as a temporary workaround. Additionally, reviewing the server logs for any errors or warnings during the upload and embedding process might provide more insights into the issue.

If you have access to the codebase, you could also check if there are any conditions or prerequisites that need to be met for the embedding process to trigger automatically. This might involve looking into the API's handling of document processing and embedding transitions [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other | Bug Report

@dosubot[bot] commented on GitHub (Feb 12, 2025): <!-- Answer --> The issue you're experiencing with the automatic embedding process not triggering after document upload via the API might be related to configuration settings or flags that control this behavior. Unfortunately, I couldn't find specific information in the repository about a configuration or flag that enables automatic embedding after document upload. However, the embedding process is typically managed by the `EmbeddingProcess` component, which uses the `startQueryStatus` function to check the indexing status and proceed with embedding <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/datasets/create/embedding-process/index.tsx)</sup>. You might want to ensure that this component is correctly set up and that there are no interruptions in its execution. If the automatic process is not working as expected, you may need to manually trigger the embedding process as a temporary workaround. Additionally, reviewing the server logs for any errors or warnings during the upload and embedding process might provide more insights into the issue. If you have access to the codebase, you could also check if there are any conditions or prerequisites that need to be met for the embedding process to trigger automatically. This might involve looking into the API's handling of document processing and embedding transitions <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/jp/guides/knowledge-base/create-knowledge-and-upload-documents/README.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/63b97750-b98f-4d6c-bd3f-7f58cefb8ed6?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/63b97750-b98f-4d6c-bd3f-7f58cefb8ed6?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/63b97750-b98f-4d6c-bd3f-7f58cefb8ed6?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/63b97750-b98f-4d6c-bd3f-7f58cefb8ed6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/63b97750-b98f-4d6c-bd3f-7f58cefb8ed6?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/63b97750-b98f-4d6c-bd3f-7f58cefb8ed6?feedback_type=other) | [Bug Report](https://app.dosu.dev/response-feedback/63b97750-b98f-4d6c-bd3f-7f58cefb8ed6?feedback_type=bug_report)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8181