[PR #10874] feat: Add support for custom Q&A in the knowledge base #10873 #26974

Closed
opened 2026-02-21 20:40:37 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/10874

State: closed
Merged: No


Summary

I need to import some Q&A text,not need LLM to generate results for me。
I modified the code to support excel and csv uploading qa files。
The processing logic is that when there are only two columns in csv or excel and qa mode is selected, the LLM will not be called。

Resolves #4664
Resolves #6904
Resolves #7735
Resolves #7430
Resolves #10873

Screenshots

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/10874 **State:** closed **Merged:** No --- # Summary I need to import some Q&A text,not need LLM to generate results for me。 I modified the code to support excel and csv uploading qa files。 The processing logic is that when there are only two columns in csv or excel and qa mode is selected, the LLM will not be called。 Resolves #4664 Resolves #6904 Resolves #7735 Resolves #7430 Resolves #10873 # Screenshots <table> <tr> <td><img src="https://github.com/user-attachments/assets/c814457e-0c71-46e5-bb59-13c1989b70b1" /> </td> <td><img src="https://github.com/user-attachments/assets/8256dc59-5e33-40b2-ba28-1acfe5d11da5" /> </td> </tr> </table> # Checklist > [!IMPORTANT] > Please review the checklist below before submitting your pull request. - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [ ] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:40:37 -05:00
yindo closed this issue 2026-02-21 20:40:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#26974