Feature Request: Support for Rerank and Hybrid Search Options in Document Creation API #6397

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

Originally created by @Angelxiaotao on GitHub (Oct 29, 2024).

Self Checks

  • 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I would like to request an enhancement to the /datasets/{dataset_id}/document/create_by_file API endpoint. Currently, when creating a document through this API, it only allows selection of the Embedding model. To set up a hybrid search with reranking (as shown in the attached screenshot), I have to complete the document creation first and then return to the Dify interface to manually choose the search mode.
Please add support in the /datasets/{dataset_id}/document/create_by_file API to allow setting the search mode (e.g., hybrid search with reranking) directly during the document creation process. This would streamline the setup process and save additional steps.

2. Additional context or comments

Improves efficiency by reducing the need to manually configure the search mode after document creation.
Provides a more seamless experience for users who need to specify search configurations at the time of document creation.
image

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @Angelxiaotao on GitHub (Oct 29, 2024). ### Self Checks - [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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. I would like to request an enhancement to the /datasets/{dataset_id}/document/create_by_file API endpoint. Currently, when creating a document through this API, it only allows selection of the Embedding model. To set up a hybrid search with reranking (as shown in the attached screenshot), I have to complete the document creation first and then return to the Dify interface to manually choose the search mode. Please add support in the /datasets/{dataset_id}/document/create_by_file API to allow setting the search mode (e.g., hybrid search with reranking) directly during the document creation process. This would streamline the setup process and save additional steps. ### 2. Additional context or comments Improves efficiency by reducing the need to manually configure the search mode after document creation. Provides a more seamless experience for users who need to specify search configurations at the time of document creation. ![image](https://github.com/user-attachments/assets/a014ea74-038d-44c2-ac24-5b638644591f) ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:15:33 -05:00
yindo closed this issue 2026-02-21 18:15:34 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 29, 2024):

Hi, @Angelxiaotao. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • Enhancement request for the /datasets/{dataset_id}/document/create_by_file API endpoint.
  • Proposal to allow setting search modes, like hybrid search with reranking, during document creation.
  • Aims to improve workflow efficiency by eliminating the need for post-creation configuration.
  • No comments or additional activities have been made on this issue yet.

Next Steps

  • Please confirm if this issue is still relevant to the latest version of the Dify repository by commenting on the issue.
  • If there is no further activity, the issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Nov 29, 2024): Hi, @Angelxiaotao. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary** - Enhancement request for the `/datasets/{dataset_id}/document/create_by_file` API endpoint. - Proposal to allow setting search modes, like hybrid search with reranking, during document creation. - Aims to improve workflow efficiency by eliminating the need for post-creation configuration. - No comments or additional activities have been made on this issue yet. **Next Steps** - Please confirm if this issue is still relevant to the latest version of the Dify repository by commenting on the issue. - If there is no further activity, the issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6397