Summarize context and generate new query before retrieval knowledge #2983

Closed
opened 2026-02-21 17:52:22 -05:00 by yindo · 0 comments
Owner

Originally created by @sinomoe on GitHub (May 7, 2024).

Originally assigned to: @VincePotato on GitHub.

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).
  • Pleas do not modify this template :) and fill in all the required fields.

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

I was building a RAG bot using agent workflow and wanted to retrieve knowledge based on context and user input during Knowledge Retrieval, but I found that the Knowledge Retrieval node does not have contextual summarization capabilities, which causes Knowledge Retrieval to return unexpected results

2. Describe the feature you'd like to see

eg.

User: who is alex?
Knowledge Retrieval: who is alex?
Knowledge Retrieval Response: [chunks]
User: what did he major in?
Knowledge Retrieval (summarize previous context and user input) : what did alex major in?
Knowledge Retrieval Response: [chunks]

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

Make the results of knowledge retrieval more accurate and avoid generating incorrect answers

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 @sinomoe on GitHub (May 7, 2024). Originally assigned to: @VincePotato on GitHub. ### 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] Pleas do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? I was building a RAG bot using agent workflow and wanted to retrieve knowledge based on context and user input during Knowledge Retrieval, but I found that the Knowledge Retrieval node does not have contextual summarization capabilities, which causes Knowledge Retrieval to return unexpected results ### 2. Describe the feature you'd like to see eg. User: who is alex? Knowledge Retrieval: who is alex? Knowledge Retrieval Response: [chunks] User: what did he major in? Knowledge Retrieval *(summarize previous context and user input)* : what did alex major in? Knowledge Retrieval Response: [chunks] ### 3. How will this feature improve your workflow or experience? Make the results of knowledge retrieval more accurate and avoid generating incorrect answers ### 4. Additional context or comments _No response_ ### 5. Can you help us with this feature? - [X] I am interested in contributing to this feature.
yindo added the 💪 enhancement🤖 feat:agent labels 2026-02-21 17:52:22 -05:00
yindo closed this issue 2026-02-21 17:52:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2983