Parent-Child paragraph chunking not chunking by delimiter #10945

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

Originally created by @LawYeuHan on GitHub (Mar 13, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • 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).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

in knowledge base when setting chunk settings

  1. choose parent-child chunk mode
  2. choose paragraph mode
  3. set delimiter for parent and child

incorrect result:

Image

  • the single line below my delimiter "%%%" becomes a paragraph instead of entire section, and even though my delimiter is not present in next line

✔️ Expected Behavior

i expect everything in my delimiter "%%%" to be in a single paragraph, and child chunk also separate by its own delimeter "###"

   `eg : 
    %%%
    ## url: <my url>
    ## 2 Getting Started SQL Account System
    ### 2.1 How to set Financial Period & System Conversion Date[​](#21-how-to-set-financial-period--system-conversion-date "Direct link to 2.1 How to set Financial Period & System Conversion Date")
    
    1.  **Tools | Options**
        
        ![2](]<image url>)
        
    2.  Select **General Ledger**
        
    3.  Select **Financial Start Period & System Conversion Date**
        
        ![3](]<image url>)
        
    %%%`
  • the entire section should be 1 single paragraph with child chunks

Actual Behavior

got multiple parent chunks instead:

parent chunk 1 :  ## url: <my url>

parent chunk 2:  ## 2 Getting Started SQL Account System

parent chunk 3:  ### 2.1 How to set Financial Period & System Conversion Date[​](#21-how-to-set-financial-period--system-conversion-date "Direct link to 2.1 How to set Financial Period & System Conversion Date")

1.  **Tools | Options**
    
    ![2(]<image url>)
    
2.  Select **General Ledger**
    
3.  Select **Financial Start Period & System Conversion Date**
    
    ![3](]<image url>)
Originally created by @LawYeuHan on GitHub (Mar 13, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [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] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce in knowledge base when setting chunk settings 1. choose parent-child chunk mode 2. choose paragraph mode 3. set delimiter for parent and child incorrect result: ![Image](https://github.com/user-attachments/assets/f8878520-ab54-43fc-a115-49b1093d8e43) - the single line below my delimiter "%%%" becomes a paragraph instead of entire section, and even though my delimiter is not present in next line ### ✔️ Expected Behavior i expect everything in my delimiter "%%%" to be in a single paragraph, and child chunk also separate by its own delimeter "###" `eg : %%% ## url: <my url> ## 2 Getting Started SQL Account System ### 2.1 How to set Financial Period & System Conversion Date[​](#21-how-to-set-financial-period--system-conversion-date "Direct link to 2.1 How to set Financial Period & System Conversion Date") 1. **Tools | Options** ![2](]<image url>) 2. Select **General Ledger** 3. Select **Financial Start Period & System Conversion Date** ![3](]<image url>) %%%` - the entire section should be 1 single paragraph with child chunks ### ❌ Actual Behavior got multiple parent chunks instead: parent chunk 1 : ## url: <my url> parent chunk 2: ## 2 Getting Started SQL Account System parent chunk 3: ### 2.1 How to set Financial Period & System Conversion Date[​](#21-how-to-set-financial-period--system-conversion-date "Direct link to 2.1 How to set Financial Period & System Conversion Date") 1. **Tools | Options** ![2(]<image url>) 2. Select **General Ledger** 3. Select **Financial Start Period & System Conversion Date** ![3](]<image url>)
yindo added the 🐞 bug label 2026-02-21 18:53:01 -05:00
yindo closed this issue 2026-02-21 18:53:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#10945