Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for import custom Q&A file #12844

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

CN-P5
Copy link
Contributor

@CN-P5 CN-P5 commented Jan 19, 2025

Summary

I need to import some Q&A text,not need LLM to generate results。I add code to support uploading qa files。
Q&A text format:

Q1: 只剩一个心脏了还能活吗?
A1: 能,人本来就只有一个心脏。

Q2: 爸爸再婚,我是不是就有了个新娘?
A2: 不是的,你有了一个继母。"新娘"是指新婚的女方,而你爸爸再婚,他的新婚妻子对你来说是继母。

Q3: 樟脑丸是我吃过最难吃的硬糖有奇怪的味道怎么还有人买
A3: 樟脑丸并不是硬糖,而是一种常见的驱虫药,不能食用。虽然它的味道可能不太好,但是由于其有效的驱虫效果,所以仍然有很多人会购买。

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

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

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment