RAG API search in a specific dataset and on specific documents inside it. #3966

Closed
opened 2026-02-21 18:04:09 -05:00 by yindo · 0 comments
Owner

Originally created by @HoekWax on GitHub (Jun 3, 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).
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing?

The challenge is being able to get segments from a specific dataset or specific documents from the API to then be able to send them in a context for an llm outside or inside dify.

Right now I have call the /hit-testing, a route used by the dify client. This is not very good in the long run

2. Describe the feature you'd like to see

I would like the knowledge API to allow us to fetch segments from a specific datasetId sent in a request and also from specific document ids if we want to filter even more.

3. How will this feature improve your workflow or experience?

This would then be an officially supported feature and it would offer more flexibility for Dify users.

4. Additional context or comments

No response

5. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @HoekWax on GitHub (Jun 3, 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] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? The challenge is being able to get segments from a specific dataset or specific documents from the API to then be able to send them in a context for an llm outside or inside dify. Right now I have call the /hit-testing, a route used by the dify client. This is not very good in the long run ### 2. Describe the feature you'd like to see I would like the knowledge API to allow us to fetch segments from a specific datasetId sent in a request and also from specific document ids if we want to filter even more. ### 3. How will this feature improve your workflow or experience? This would then be an officially supported feature and it would offer more flexibility for Dify users. ### 4. Additional context or comments _No response_ ### 5. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo closed this issue 2026-02-21 18:04:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#3966