mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Miss period after parent-child chunk #881
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leslie2046 on GitHub (Dec 18, 2025).
Self Checks
Dify version
1.11.1
Plugin version
0.0.7
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
new 5.txt
✔️ Error log
No response
@dosubot[bot] commented on GitHub (Dec 18, 2025):
The missing period after parent-child chunking is caused by the cleaning logic in the plugin. Specifically, the
_clean_page_contentmethod in theParentChildIndexProcessorclass strips leading periods (both.and。) from each chunk. If the text splitter leaves a period at the start of a chunk, this method removes it, resulting in the missing punctuation you observed. This behavior is hardcoded and affects any language or document format where a chunk starts with a period after splitting. You can see this in the code here.If you need to preserve periods at chunk boundaries, you could modify or remove the line in
_clean_page_contentthat strips leading periods. There are no configuration options for this behavior in the current version.To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other