Dify uses Markdown (MD) format files for its knowledge base. #9407

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

Originally created by @wang318372 on GitHub (Mar 5, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Provide a description of requested docs changes

Excuse me, Dify uses Markdown (MD) format files for its knowledge base.
I think there might be a bug here. When a section in an MD file is divided using "#" and "##", I understand that if we split according to "#", then this whole section should be one chunk. To maintain the integrity of the chunk, it should include the parts marked with multiple "##". However, judging from the splitting results, Dify treats each "#" and "##" as an independent chunk. I've tried it out. How can I group them together?
As shown in the picture:

请教一下,dify 关于知识库使用了md格式的文件。
感觉这是一个bug,当md文件中的一个章节使用了#和## 进行了分隔的时候。我理解如果按照"#" 进行切割,那么这一段就应该是一个分片,为了保持分片完整性,应该包括了多个"##"的部分。但从切分结果看来,dify会把每个"#"和"##" 看做一个独立的分片,我尝试了一下。如果我想把他分到一起,我要怎么做?

Image

Originally created by @wang318372 on GitHub (Mar 5, 2025). ### 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 report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Provide a description of requested docs changes Excuse me, Dify uses Markdown (MD) format files for its knowledge base. I think there might be a bug here. When a section in an MD file is divided using "#" and "##", I understand that if we split according to "#", then this whole section should be one chunk. To maintain the integrity of the chunk, it should include the parts marked with multiple "##". However, judging from the splitting results, Dify treats each "#" and "##" as an independent chunk. I've tried it out. How can I group them together? As shown in the picture: 请教一下,dify 关于知识库使用了md格式的文件。 感觉这是一个bug,当md文件中的一个章节使用了#和## 进行了分隔的时候。我理解如果按照"#" 进行切割,那么这一段就应该是一个分片,为了保持分片完整性,应该包括了多个"##"的部分。但从切分结果看来,dify会把每个"#"和"##" 看做一个独立的分片,我尝试了一下。如果我想把他分到一起,我要怎么做? ![Image](https://github.com/user-attachments/assets/7f0d3c9f-32e2-44d3-aa97-2a8e801c5fc6)
yindo added the 🐞 bug📚 documentation labels 2026-02-21 18:34:20 -05:00
yindo closed this issue 2026-02-21 18:34:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9407