dify
dify copied to clipboard
The number of segments generated(QA format) is 0
Self Checks
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to file this report (我已阅读并同意 Language Policy).
Dify version
0.3.34
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
After generating a document in template.csv format, and selecting the QA format when submitting the segments, the number of segments generated is 0. Is this because of formatting issues? What should be the correct format?
✔️ Expected Behavior
Correctly parses document content
❌ Actual Behavior
The number of segments generated is 0
Have you finished the whole process, can to make a screenshot of the datasets in this document?
@crazywoola Thanks for your reply,the screenshot files is:
template.csv
Have you finished the whole process, can to make a screenshot of the datasets in this document?
For example template.txt
Q: question 1 A: answer 1 Q: question 2 A: answer 2
Since the document is already in Q&A format, you can turn off the Q&A switch. And use the format above. Also, you can use custom splitter\n
.
For example template.txt
Q: question 1 A: answer 1 Q: question 2 A: answer 2
Since the document is already in Q&A format, you can turn off the Q&A switch. And use the format above. Also, you can use custom splitter
\n
.
Hi @crazywoola ,I've reorganized the contents of the file according to your formatting,
knowledge.txt
The screenshot is as follows:
The number of segments is now correct, but the format of the segment content doesn't seem to be in QA format:
QA format is to generate new questions based on your document segments.